%ifos darwin %define __defattr %defattr(-,root,wheel) %define __soext dylib %else %define __defattr %defattr(-,root,root) %define __soext so %endif Summary: A library of functions for manipulating TIFF format image files. Name: libtiff Version: 3.7.1 Release: 6a License: distributable Group: System Environment/Libraries Source0: http://www.libtiff.org/tiff-%{version}.tar.gz Patch0: libtiff-v3.6.1-64bit.patch Patch1: libtiff-3.5.7-dump.patch # http://bugzilla.remotesensing.org/show_bug.cgi?id=718, fixed in 3.7.2 Patch2: libtiff-3.7.1-extrasamples.patch Patch3: libtiff-3.7.1-mktemp.patch # http://bugzilla.remotesensing.org/show_bug.cgi?id=843, fixed in 3.7.3 Patch4: libtiff-3.7.1-persample.patch URL: http://www.libtiff.org/ BuildRoot: %{_tmppath}/%{name}-root BuildRequires: zlib-devel zlib libjpeg-devel libjpeg Requires: zlib libjpeg %define LIBVER %(echo %{version} | cut -f-2 -d.) %description The libtiff package contains a library of functions for manipulating TIFF (Tagged Image File Format) image format files. TIFF is a widely used file format for bitmapped images. TIFF files usually end in the .tif extension and they are often quite large. The libtiff package should be installed if you need to manipulate TIFF format image files. %package devel Summary: Development tools for programs which will use the libtiff library. Group: Development/Libraries Requires: libtiff = %{version} %description devel This package contains the header files and static libraries for developing programs which will manipulate TIFF format image files using the libtiff library. If you need to develop programs which will manipulate TIFF format image files, you should install this package. You'll also need to install the libtiff package. %prep %setup -q -n tiff-%{version} %patch0 -p1 -b .64bit %patch1 -p1 -b .dump %patch2 -p1 -b .extrasamples %patch3 -p1 -b .mktemp %patch4 -p1 -b .persample %build %configure make make check %install rm -fr $RPM_BUILD_ROOT %makeinstall rm $RPM_BUILD_ROOT%{_libdir}/*.la rm -rf $RPM_BUILD_ROOT%{_datadir}/doc %post -p /sbin/ldconfig %postun -p /sbin/ldconfig %clean rm -rf $RPM_BUILD_ROOT %files %defattr(-,root,root) %doc COPYRIGHT README RELEASE-DATE VERSION %{_bindir}/* %ifnos darwin %{_libdir}/libtiff.%{__soext}.* %else %{_libdir}/libtiff.*.%{__soext} %endif %{_mandir}/man1/* %files devel %defattr(-,root,root) %doc TODO ChangeLog html %{_includedir}/* %{_libdir}/libtiff.%{__soext} %{_libdir}/libtiff.a %{_mandir}/man3/* %changelog * Sat May 20 2005 Keisuke Fujii - 3.7.1-6a - 1st build on MacOS X 10.4. * Fri May 6 2005 Matthias Clasen - 3.7.1-6 - Fix a stack overflow * Wed Mar 2 2005 Matthias Clasen - 3.7.1-5 - Don't use mktemp * Wed Mar 2 2005 Matthias Clasen - 3.7.1-4 - Rebuild with gcc4 * Wed Jan 5 2005 Matthias Clasen - 3.7.1-3 - Drop the largefile patch again - Fix a problem with the handling of alpha channels - Fix an integer overflow in tiffdump (#143576) * Wed Dec 22 2004 Matthias Clasen - 3.7.1-2 - Readd the largefile patch (#143560) * Wed Dec 22 2004 Matthias Clasen - 3.7.1-1 - Upgrade to 3.7.1 - Remove upstreamed patches - Remove specfile cruft - make check * Thu Oct 14 2004 Matthias Clasen 3.6.1-7 - fix some integer and buffer overflows (#134853, #134848) * Tue Oct 12 2004 Matthias Clasen 3.6.1-6 - fix http://bugzilla.remotesensing.org/show_bug.cgi?id=483 * Mon Sep 27 2004 Rik van Riel 3.6.1-4 - compile using RPM_OPT_FLAGS (bz #133650) * Tue Jun 15 2004 Elliot Lee - rebuilt * Thu May 20 2004 Matthias Clasen 3.6.1-2 - Fix and use the makeflags patch * Wed May 19 2004 Matthias Clasen 3.6.1-1 - Upgrade to 3.6.1 - Adjust patches - Don't install tiffgt man page (#104864) * Tue Mar 02 2004 Elliot Lee - rebuilt * Sat Feb 21 2004 Florian La Roche - really add symlink to shared lib by running ldconfig at compile time * Fri Feb 13 2004 Elliot Lee - rebuilt * Thu Oct 09 2003 Florian La Roche - link shared lib against -lm (Jakub Jelinek) * Thu Sep 25 2003 Jeremy Katz 3.5.7-13 - rebuild to fix gzipped file md5sum (#91281) * Wed Jun 04 2003 Elliot Lee - rebuilt * Tue Feb 11 2003 Phil Knirsch 3.5.7-11 - Fixed rebuild problems. * Tue Feb 04 2003 Florian La Roche - add symlink to shared lib * Wed Jan 22 2003 Tim Powers - rebuilt * Thu Dec 12 2002 Tim Powers 3.5.7-8 - rebuild on all arches * Mon Aug 19 2002 Phil Knirsch 3.5.7-7 - Added LFS support (#71593) * Tue Jun 25 2002 Phil Knirsch 3.5.7-6 - Fixed wrong exit code of tiffcp app (#67240) * Fri Jun 21 2002 Tim Powers - automated rebuild * Thu May 23 2002 Tim Powers - automated rebuild * Wed May 15 2002 Phil Knirsch - Fixed segfault in fax2tiff tool (#64708). * Mon Feb 25 2002 Phil Knirsch - Fixed problem with newer bash versions setting CDPATH (#59741) * Tue Feb 19 2002 Phil Knirsch - Update to current release 3.5.7 * Wed Jan 09 2002 Tim Powers - automated rebuild * Tue Aug 28 2001 Phil Knirsch - Fixed ia64 problem with tiffinfo. Was general 64 bit arch problem where s390x and ia64 were missing (#52129). * Tue Jun 26 2001 Philipp Knirsch - Hopefully final symlink fix * Thu Jun 21 2001 Than Ngo - add missing libtiff symlink * Fri Mar 16 2001 Crutcher Dunnavant - killed tiff-to-ps.fpi filter * Wed Feb 28 2001 Philipp Knirsch - Fixed missing devel version dependancy. * Tue Dec 19 2000 Philipp Knirsch - rebuild * Tue Aug 7 2000 Crutcher Dunnavant - added a tiff-to-ps.fpi filter for printing * Thu Jul 13 2000 Prospector - automatic rebuild * Thu Jul 13 2000 Nalin Dahyabhai - apply Peter Skarpetis's fix for the 32-bit conversion * Mon Jul 3 2000 Nalin Dahyabhai - make man pages non-executable (#12811) * Mon Jun 12 2000 Nalin Dahyabhai - remove CVS repo info from data directories * Thu May 18 2000 Nalin Dahyabhai - fix build rooting - fix syntax error in configure script - move man pages to %{_mandir} * Wed May 17 2000 Nalin Dahyabhai - rebuild for an errata release * Wed Mar 29 2000 Nalin Dahyabhai - update to 3.5.5, which integrates our fax2ps fixes and the glibc fix * Tue Mar 28 2000 Nalin Dahyabhai - fix fax2ps swapping height and width in the bounding box * Mon Mar 27 2000 Nalin Dahyabhai - move man pages from devel package to the regular one - integrate Frank Warmerdam's fixed .fax handling code (keep until next release of libtiff) - fix fax2ps breakage (bug #8345) * Sat Feb 05 2000 Nalin Dahyabhai - set MANDIR=man3 to make multifunction man pages friendlier * Mon Jan 31 2000 Nalin Dahyabhai - fix URLs * Fri Jan 28 2000 Nalin Dahyabhai - link shared library against libjpeg and libz * Tue Jan 18 2000 Nalin Dahyabhai - enable zip and jpeg codecs - change defattr in normal package to 0755 - add defattr to -devel package * Wed Dec 22 1999 Bill Nottingham - update to 3.5.4 * Sun Mar 21 1999 Cristian Gafton - auto rebuild in the new build environment (release 6) * Wed Jan 13 1999 Cristian Gafton - build for glibc 2.1 * Wed Jun 10 1998 Prospector System - translations modified for de * Wed Jun 10 1998 Michael Fulbright - rebuilt against fixed jpeg libs (libjpeg-6b) * Thu May 07 1998 Prospector System - translations modified for de, fr, tr * Mon Oct 13 1997 Donnie Barnes - new version to replace the one from libgr - patched for glibc - added shlib support