2 Summary: Library of functions for manipulating TIFF format image files
5 Group: System/Libraries
7 URL: http://www.libtiff.org/
8 Source0: ftp://ftp.remotesensing.org/pub/libtiff/tiff-%{version}.tar.gz
9 Requires(post): /sbin/ldconfig
10 Requires(postun): /sbin/ldconfig
11 BuildRequires: pkgconfig(zlib)
12 BuildRequires: libjpeg-devel
16 The libtiff package contains a library of functions for manipulating
17 TIFF (Tagged Image File Format) image format files. TIFF is a widely
18 used file format for bitmapped images. TIFF files usually end in the
19 .tif extension and they are often quite large.
21 The libtiff package should be installed if you need to manipulate TIFF
27 Summary: Development tools for programs which will use the libtiff library
28 Group: Development/Libraries
29 Requires: %{name} = %{version}-%{release}
32 This package contains the header files and documentation necessary for
33 developing programs which will manipulate TIFF format image files
34 using the libtiff library.
36 If you need to develop programs which will manipulate TIFF format
37 image files, you should install this package. You'll also need to
38 install the libtiff package.
43 %setup -q -n tiff-%{version}
50 export CFLAGS="%{optflags} -fno-strict-aliasing"
53 %configure --disable-static
67 # remove what we didn't want installed
68 rm -rf $RPM_BUILD_ROOT%{_datadir}/doc/
70 # no libGL dependency, please
71 rm -f $RPM_BUILD_ROOT%{_bindir}/tiffgt
72 rm -f $RPM_BUILD_ROOT%{_mandir}/man1/tiffgt.1
73 rm -f html/man/tiffgt.1.html
75 # no sgi2tiff or tiffsv, either
76 rm -f $RPM_BUILD_ROOT%{_bindir}/sgi2tiff
77 rm -f $RPM_BUILD_ROOT%{_mandir}/man1/sgi2tiff.1
78 rm -f html/man/sgi2tiff.1.html
79 rm -f $RPM_BUILD_ROOT%{_bindir}/tiffsv
80 rm -f $RPM_BUILD_ROOT%{_mandir}/man1/tiffsv.1
81 rm -f html/man/tiffsv.1.html
83 # don't include documentation Makefiles, they are a multilib hazard
84 find html -name 'Makefile*' | xargs rm
90 %post -p /sbin/ldconfig
92 %postun -p /sbin/ldconfig
99 %defattr(-,root,root,-)
101 %defattr(-,root,root,0755)
102 %doc COPYRIGHT README RELEASE-DATE VERSION
104 %{_libdir}/libtiff.so.*
105 %{_libdir}/libtiffxx.so.*
106 %doc %{_mandir}/man1/*
111 %defattr(-,root,root,-)
113 %defattr(-,root,root,0755)
114 %doc TODO ChangeLog html
116 %{_libdir}/libtiff.so
117 %{_libdir}/libtiffxx.so
118 %doc %{_mandir}/man3/*