| 1 | Summary: Library of functions for manipulating TIFF format image files
|
|---|
| 2 | Name: libtiff-legacy
|
|---|
| 3 | Version: 3.9.5
|
|---|
| 4 | Release: 2%{?dist}
|
|---|
| 5 |
|
|---|
| 6 | License: libtiff
|
|---|
| 7 | Group: System Environment/Libraries
|
|---|
| 8 | URL: http://www.remotesensing.org/libtiff/
|
|---|
| 9 | Vendor: bww bitwise works GmbH
|
|---|
| 10 |
|
|---|
| 11 | #define svn_url e:/trees/libtiff/trunk
|
|---|
| 12 | %define svn_url http://svn.netlabs.org/repos/ports/libtiff/trunk
|
|---|
| 13 | %define svn_rev 675
|
|---|
| 14 |
|
|---|
| 15 | Source: %{name}-%{version}%{?svn_rev:-r%{svn_rev}}.zip
|
|---|
| 16 |
|
|---|
| 17 | BuildRequires: zlib-devel libjpeg-devel pkgconfig
|
|---|
| 18 | #BuildRequires: libtool automake autoconf
|
|---|
| 19 | Obsoletes: libtiff <= 3.9.5
|
|---|
| 20 |
|
|---|
| 21 | %description
|
|---|
| 22 | The libtiff package contains a library of functions for manipulating
|
|---|
| 23 | TIFF (Tagged Image File Format) image format files. TIFF is a widely
|
|---|
| 24 | used file format for bitmapped images. TIFF files usually end in the
|
|---|
| 25 | .tif extension and they are often quite large.
|
|---|
| 26 |
|
|---|
| 27 | The libtiff package should be installed if you need to manipulate TIFF
|
|---|
| 28 | format image files.
|
|---|
| 29 |
|
|---|
| 30 | %package devel
|
|---|
| 31 | Summary: Development tools for programs which will use the libtiff library
|
|---|
| 32 | Group: Development/Libraries
|
|---|
| 33 | Requires: %{name} = %{version}-%{release}
|
|---|
| 34 | Requires: pkgconfig
|
|---|
| 35 | Obsoletes: libtiff-devel <= 3.9.5
|
|---|
| 36 |
|
|---|
| 37 | %description devel
|
|---|
| 38 | This package contains the header files and documentation necessary for
|
|---|
| 39 | developing programs which will manipulate TIFF format image files
|
|---|
| 40 | using the libtiff library.
|
|---|
| 41 |
|
|---|
| 42 | If you need to develop programs which will manipulate TIFF format
|
|---|
| 43 | image files, you should install this package. You'll also need to
|
|---|
| 44 | install the libtiff package.
|
|---|
| 45 |
|
|---|
| 46 | %package static
|
|---|
| 47 | Summary: Static TIFF image format file library
|
|---|
| 48 | Group: Development/Libraries
|
|---|
| 49 | Requires: %{name}-devel = %{version}-%{release}
|
|---|
| 50 | Obsoletes: libtiff-static <= 3.9.5
|
|---|
| 51 |
|
|---|
| 52 | %description static
|
|---|
| 53 | The libtiff-static package contains the statically linkable version of libtiff.
|
|---|
| 54 | Linking to static libraries is discouraged for most applications, but it is
|
|---|
| 55 | necessary for some boot packages.
|
|---|
| 56 |
|
|---|
| 57 | %package tools
|
|---|
| 58 | Summary: Command-line utility programs for manipulating TIFF files
|
|---|
| 59 | Group: Development/Libraries
|
|---|
| 60 | Requires: %{name} = %{version}-%{release}
|
|---|
| 61 | Obsoletes: libtiff-tools <= 3.9.5
|
|---|
| 62 |
|
|---|
| 63 | %description tools
|
|---|
| 64 | This package contains command-line programs for manipulating TIFF format
|
|---|
| 65 | image files using the libtiff library.
|
|---|
| 66 |
|
|---|
| 67 | %debug_package
|
|---|
| 68 |
|
|---|
| 69 | %prep
|
|---|
| 70 | %if %{?svn_rev:%(sh -c 'if test -f "%{_sourcedir}/%{name}-%{version}-r%{svn_rev}.zip" ; then echo 1 ; else echo 0 ; fi')}%{?!svn_rev):0}
|
|---|
| 71 | %setup -q
|
|---|
| 72 | %else
|
|---|
| 73 | %setup -n "%{name}-%{version}" -Tc
|
|---|
| 74 | svn export %{?svn_rev:-r %{svn_rev}} %{svn_url} . --force
|
|---|
| 75 | rm -f "%{_sourcedir}/%{name}-%{version}%{?svn_rev:-r%{svn_rev}}.zip"
|
|---|
| 76 | (cd .. && zip -SrX9 "%{_sourcedir}/%{name}-%{version}%{?svn_rev:-r%{svn_rev}}.zip" "%{name}-%{version}")
|
|---|
| 77 | %endif
|
|---|
| 78 |
|
|---|
| 79 | # Use build system's libtool.m4, not the one in the package.
|
|---|
| 80 | #autogen.sh
|
|---|
| 81 |
|
|---|
| 82 | %build
|
|---|
| 83 | export LDFLAGS="-Zbin-files -Zhigh-mem -Zomf -Zargs-wild -Zargs-resp"
|
|---|
| 84 | export CFLAGS="%{optflags} -fno-strict-aliasing"
|
|---|
| 85 | %configure --enable-cxx=no PATH=`cmd.exe /c "echo %PATH%" | sed -e 's@\\\\@/@g'` PATH_SEPARATOR=';' \
|
|---|
| 86 | CC=gcc CXX=g++ AWK=gawk LIBEXT="LIB" OBJEXT=o RM=rm.exe PERL=perl.exe \
|
|---|
| 87 | AR=ar.exe RANLIB=echo ac_cv_path_STRIP='echo ' ac_cv_emxos2='yes' \
|
|---|
| 88 | ac_cv_libext='lib' ac_executable_extensions=".exe" ac_cpp=g++.exe
|
|---|
| 89 |
|
|---|
| 90 |
|
|---|
| 91 | make %{?_smp_mflags}
|
|---|
| 92 |
|
|---|
| 93 | %install
|
|---|
| 94 | rm -rf $RPM_BUILD_ROOT
|
|---|
| 95 |
|
|---|
| 96 | make DESTDIR=$RPM_BUILD_ROOT install
|
|---|
| 97 |
|
|---|
| 98 | cp -p libtiff/*.dll %{buildroot}%{_libdir}
|
|---|
| 99 | cp -p libtiff/.libs/tiff.a %{buildroot}%{_libdir}
|
|---|
| 100 | cp -p libtiff/.libs/tiff.lib %{buildroot}%{_libdir}
|
|---|
| 101 | cp -p libtiff/.libs/tiff_s.a %{buildroot}%{_libdir}
|
|---|
| 102 |
|
|---|
| 103 | # remove what we didn't want installed
|
|---|
| 104 | rm $RPM_BUILD_ROOT%{_libdir}/*.la
|
|---|
| 105 | rm -rf $RPM_BUILD_ROOT%{_datadir}/doc/
|
|---|
| 106 |
|
|---|
| 107 | # no libGL dependency, please
|
|---|
| 108 | rm -f $RPM_BUILD_ROOT%{_bindir}/tiffgt
|
|---|
| 109 | rm -f $RPM_BUILD_ROOT%{_mandir}/man1/tiffgt.1
|
|---|
| 110 | rm -f html/man/tiffgt.1.html
|
|---|
| 111 |
|
|---|
| 112 | # no sgi2tiff or tiffsv, either
|
|---|
| 113 | rm -f $RPM_BUILD_ROOT%{_bindir}/sgi2tiff
|
|---|
| 114 | rm -f $RPM_BUILD_ROOT%{_mandir}/man1/sgi2tiff.1
|
|---|
| 115 | rm -f html/man/sgi2tiff.1.html
|
|---|
| 116 | rm -f $RPM_BUILD_ROOT%{_bindir}/tiffsv
|
|---|
| 117 | rm -f $RPM_BUILD_ROOT%{_mandir}/man1/tiffsv.1
|
|---|
| 118 | rm -f html/man/tiffsv.1.html
|
|---|
| 119 |
|
|---|
| 120 |
|
|---|
| 121 | %clean
|
|---|
| 122 | rm -rf $RPM_BUILD_ROOT
|
|---|
| 123 |
|
|---|
| 124 |
|
|---|
| 125 | %files
|
|---|
| 126 | %defattr(-,root,root,0755)
|
|---|
| 127 | %doc COPYRIGHT README RELEASE-DATE VERSION
|
|---|
| 128 | %{_libdir}/tiff*.dll
|
|---|
| 129 |
|
|---|
| 130 | %files devel
|
|---|
| 131 | %defattr(-,root,root,0755)
|
|---|
| 132 | %doc TODO ChangeLog html
|
|---|
| 133 | %{_includedir}/*
|
|---|
| 134 | %{_libdir}/tiff.a
|
|---|
| 135 | %{_libdir}/tiff.lib
|
|---|
| 136 | #%{_libdir}/tiffxx.a
|
|---|
| 137 | %{_mandir}/man3/*
|
|---|
| 138 |
|
|---|
| 139 | %files static
|
|---|
| 140 | %defattr(-,root,root,0755)
|
|---|
| 141 | %{_libdir}/*.a
|
|---|
| 142 |
|
|---|
| 143 | %files tools
|
|---|
| 144 | %defattr(-,root,root,0755)
|
|---|
| 145 | %{_bindir}/*.exe
|
|---|
| 146 | %{_mandir}/man1/*
|
|---|
| 147 |
|
|---|
| 148 | %changelog
|
|---|
| 149 | * Wed Jan 13 2016 Silvan Scherrer <silvan.scherrer@aroa.ch> 3.9.5-2
|
|---|
| 150 | - adjusted debug package creation to latest rpm macros
|
|---|
| 151 | - done as legacy package, as new libtiff differs in dll name
|
|---|
| 152 |
|
|---|
| 153 | * Thu Apr 17 2014 yd
|
|---|
| 154 | - first public build.
|
|---|