2 #BuildRequires: libjbig-devel
6 Summary: Tools for Converting from and to the Tiff Format
7 Url: http://www.remotesensing.org/libtiff
8 Group: Productivity/Graphics/Convertors
9 Source: tiff-%{version}.tar.bz2
10 Source3: baselibs.conf
11 Patch2: tiff-%{version}-seek.patch
12 Patch3: tiff-%{version}-tiff2pdf-colors.patch
13 Patch9: tiff-%{version}-dont-fancy-upsampling.patch
14 Patch10: tiff-bigendian.patch
15 Patch11: tiff-%{version}-CVE-2012-3401.patch
16 BuildRequires: gcc-c++
17 BuildRequires: libjpeg8-devel
18 BuildRequires: libtool
19 BuildRequires: lzma-devel
20 BuildRequires: pkg-config
21 BuildRequires: pkgconfig(zlib)
22 BuildRoot: %{_tmppath}/%{name}-%{version}-build
25 This package contains the library and support programs for the TIFF
29 Summary: The Tiff Library (with JPEG and compression support)
30 Group: System/Libraries
32 %description -n libtiff
33 This package includes the tiff libraries. To link a program with
34 libtiff, you will have to add -ljpeg and -lz to include the necessary
35 libjpeg and libz in the linking process.
37 %package -n libtiff-devel
38 Summary: Development Tools for Programs which will use the libtiff Library
39 Group: Development/Libraries/C and C++
41 Requires: libstdc++-devel
42 Requires: libtiff = %{version}
44 %description -n libtiff-devel
45 This package contains the header files and static libraries for
46 developing programs which will manipulate TIFF format image files using
58 %configure --disable-static --with-pic
62 mkdir -p %{buildroot}/{%{_mandir}/{man1,man3},usr/{bin,lib,include}}
64 for f in `find %{buildroot}/%{_mandir} -type f -print ` ; do
65 if [ `wc -l <$f` -eq 1 ] && grep -q "^\.so " $f ; then
66 linkto=`sed -e "s|^\.so ||" $f`
67 [ -f "`dirname $f`/$linkto" ] && ln -sf "$linkto" $f
71 rm -rf %{buildroot}%{_datadir}/doc/tiff*
72 rm -f %{buildroot}/%{_libdir}/*.la
73 find html -name "Makefile*" | xargs rm
78 %post -n libtiff -p /sbin/ldconfig
80 %postun -n libtiff -p /sbin/ldconfig
90 %files -n libtiff-devel
93 %{_libdir}/pkgconfig/*.pc