Summary: A library of functions for manipulating TIFF format image files. Name: libtiff Version: 3.6.1 Release: 2 License: IBM_ILA Group: System Environment/Libraries Source0: http://www.libtiff.org/tiff-v%{version}.tar.gz Source1: IBM_ILA Patch0: libtiff-3.6.1-alt-bound.patch Patch1: libtiff-3.6.1-chris-bound.patch Patch2: libtiff-3.6.1-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 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. This package also requires the libtiff package. %prep %setup -q -n tiff-v%{version} %patch0 -p1 -b .alt-bound %patch1 -p1 -b .chris-bound %patch2 -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::'` export CFLAGS="$RPM_OPT_FLAGS -qcpluscmt -DUSING_VISUALAGE" fi INSTDIR=%{_prefix} ./configure --with-GCOPTS="-s $CFLAGS" << EOF no $RPM_BUILD_ROOT/%{prefix}/bin $RPM_BUILD_ROOT/%{prefix}/lib $RPM_BUILD_ROOT/%{prefix}/include $RPM_BUILD_ROOT/%{prefix}/man $RPM_BUILD_ROOT/var/local/httpd/htdocs/tiff bsd-source-cat yes EOF make %install rm -rf $RPM_BUILD_ROOT INSTDIR=%{_prefix} for dir in usr/lib 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 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/lib cd usr/lib ln -sf ../..%{prefix}/lib/* . ) %clean rm -rf $RPM_BUILD_ROOT %files %defattr(0755,root,system) %doc LICENSE %{_prefix}/bin/* /usr/bin/* %{_prefix}/lib/libtiff.a /usr/lib/libtiff.a %files devel %defattr(-,root,system) %doc COPYRIGHT README TODO VERSION html/* LICENSE %{_prefix}/include/* /usr/include/* %{_prefix}/man/man1/* %{_prefix}/man/man3/* %changelog * Thu Nov 18 2004 David Clissold 3.6.1-2 - Rebuilt 3.6.1 with security fixes noted in entry below. * Fri Oct 15 2004 Philip K. Warren - 3.5.7-3 - Add security fixes for CAN-2004-0803, CAN-2004-0804, CAN-2004-0886. * Mon Apr 19 2004 David Clissold 3.6.1-1 - Update to version 3.6.1 * 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