Summary: A library of functions for manipulating TIFF format image files. Name: libtiff Version: 3.5.7 Release: 3 License: IBM_ILA Group: System Environment/Libraries Source0: http://www.libtiff.org/tiff-v%{version}.tar.gz Source1: IBM_ILA Patch0: libtiff-3.5.7-alt-bound.patch Patch1: libtiff-3.5.7-up-ChopUpSingleUncompressedStrip.patch Patch2: libtiff-3.5.7-chris-bound.patch Patch3: libtiff-3.5.7-alt-bound2.patch Prefix: %{_prefix} URL: http://www.libtiff.org/ BuildRoot: /var/tmp/%{name}-root BuildRequires: zlib-devel zlib libjpeg-devel libjpeg %define LIBVER 3.5 %define stdlib lib %define liblink ../.. %define DIRS . %define DEFCC cc %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 %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-v%{version} %patch0 -p1 -b .alt-bound %patch1 -p1 -b .up-ChopUpSingleUncompressedStrip.patch %patch2 -p1 -b .chris-bound %patch3 -p1 -b .alt-bound2 # Add license info cat $RPM_SOURCE_DIR/IBM_ILA > LICENSE cat COPYRIGHT >> LICENSE %build # Use the default compiler for this platform - gcc otherwise if [[ -z "$CC" ]] then if test "X`type %{DEFCC} 2>/dev/null`" != 'X'; then export CC=%{DEFCC} else export CC=gcc fi fi if [[ "$CC" != "gcc" ]] then export RPM_OPT_FLAGS=`echo $RPM_OPT_FLAGS | sed 's:-fsigned-char::'` fi for dir in %{DIRS}; do cd $dir; if [[ $dir != "." ]]; then export CC="$CC64"; fi if [[ $dir = "." ]]; then INSTDIR=%{_prefix}; else INSTDIR=/%{PKG64}%{_prefix}; fi ./configure --with-GCOPTS="-O2 -s" << EOF no $RPM_BUILD_ROOT$INSTDIR/bin $RPM_BUILD_ROOT$INSTDIR/lib $RPM_BUILD_ROOT$INSTDIR/include $RPM_BUILD_ROOT$INSTDIR/man $RPM_BUILD_ROOT/var/local/httpd/htdocs/tiff bsd-source-cat yes EOF make done %install rm -rf $RPM_BUILD_ROOT # Potential loop if building 64-bit libraries for IA64 for dir in %{DIRS}; do cd $dir; if [[ $dir = "." ]]; then INSTDIR=%{_prefix}; else INSTDIR=/%{PKG64}%{_prefix}; fi for dir in usr/%{stdlib} usr/include usr/bin \ .$INSTDIR/lib .$INSTDIR/include .$INSTDIR/bin .$INSTDIR/man/man1 do mkdir -p $RPM_BUILD_ROOT/$dir done make install cd libtiff install -m644 libtiff.a $RPM_BUILD_ROOT$INSTDIR/lib done strip $RPM_BUILD_ROOT%{prefix}/bin/* || : ( cd $RPM_BUILD_ROOT for dir in bin include do mkdir -p usr/$dir cd usr/$dir ln -sf ../..%{prefix}/$dir/* . cd - done mkdir -p usr/%{stdlib} cd usr/%{stdlib} ln -sf %{liblink}%{prefix}/lib/* . ) %clean rm -rf $RPM_BUILD_ROOT %files %defattr(0755,root,root) %doc LICENSE %{_prefix}/bin/* /usr/bin/* %ifarch ppc || %ifarch rs6000 %{_prefix}/lib/libtiff.a /usr/%{stdlib}/libtiff.a %else %{_prefix}/lib/libtiff.so* /usr/%{stdlib}/libtiff.so* %endif %files devel %defattr(-,root,root) %doc COPYRIGHT README TODO VERSION html/* LICENSE %{_prefix}/include/* /usr/include/* %{_prefix}/man/man1/* %{_prefix}/man/man3/* %changelog * Fri Oct 15 2004 Philip K. Warren - 3.5.7-3 - Add security fixes for CAN-2004-0803, CAN-2004-0804, CAN-2004-0886. * Fri Nov 22 2002 David Clissold - Add IBM ILA license. * Fri Feb 08 2002 Marc Stephenson - New version * Wed Apr 18 2001 David Clissold - Binaries weren't being stripped * Sun Apr 08 2001 David Clissold - Add patch for config file for LIBRARY path configuration * Thu Mar 22 2001 Marc Stephenson - Build both 32- and 64-bit libraries * Thu Mar 08 2001 Marc Stephenson - Add logic for default compiler - Rebuild against new shared objects * Thu Feb 22 2001 aixtoolbox - Account for different standard lib location in IA64 32-bit ABI * Fri Oct 27 2000 pkgmgr - Modify for AIX Freeware distribution * 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