%define name libtiff %define version 3.6.1 %define release 12.6.20060mdk %define lib_version 3.6.1 %define lib_major 3 %define lib_name_orig %mklibname tiff %define lib_name %{lib_name_orig}%{lib_major} Summary: A library of functions for manipulating TIFF format image files Name: %{name} Version: %{version} Release: %{release} License: BSD-like Group: System/Libraries URL: http://www.libtiff.org/ Source0: ftp://ftp.remotesensing.org/pub/libtiff/tiff-v%{version}.tar.bz2 Source1: ftp://ftp.remotesensing.org/pub/libtiff/pics-%{version}.tar.bz2 Patch0: tiff-v3.6-shlib.patch.bz2 Patch1: %{name}-3.6.1-codecs.patch.bz2 Patch2: %{name}-3.5.5-stupid_cd_output.patch.bz2 Patch3: %{name}-3.5.5-buildroot.patch.bz2 Patch4: tiff-v3.6.1-64bit.patch.bz2 Patch5: tiff-v3.5.7-x86_64.patch.bz2 Patch6: tiff-v3.5.7-deps.patch.bz2 Patch7: libtiff-3.6.1-hylafax-decoding.patch.bz2 Patch8: libtiff-3.6.1-tiffsplit_range.patch.bz2 # security fixes Patch100: libtiff-3.6.1-alt-bound.patch.bz2 Patch101: libtiff-3.6.1-chris-bound.patch.bz2 Patch102: libtiff-3.5.7-bound-fix2.patch.bz2 Patch103: libtiff-3.6.x-iDefense.patch.bz2 Patch104: libtiff-3.6.x-CAN-2005-2452.patch.bz2 Patch105: libtiff-3.6.1-CVE-2005-1544.patch Patch106: tiff-3.6.1-libtiff_bug_1065.patch Patch107: tiff-3.6.1-libtiff_bug_1102_1.patch Patch108: tiff-3.6.1-libtiff_bug_1102_2.patch Patch109: tiff-3.6.1-libtiff_bug_1102_3.patch Patch110: tiff-3.6.1-tif_dir_double_free.patch Patch111: tiff-3.6.1-tiffgt.patch Patch112: tiffsplit-overflow.patch.bz2 Patch113: tiff.tiff2pdf-octal-printf.patch Patch114: tiff-v3.6.1-CVE-2006-3459-thru-3465.patch BuildRequires: libjpeg-devel BuildRequires: zlib-devel BuildRoot: %{_tmppath}/%{name}-%{version}-root %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. %package progs Summary: Binaries needed to manipulate TIFF format image files Group: Graphics Requires: %{lib_name} = %{version} Obsoletes: libtiff3-progs Provides: libtiff3-progs = %{version}-%{release} %description progs This package provides binaries needed to manipulate TIFF format image files. %package -n %{lib_name} Summary: A library of functions for manipulating TIFF format image files Group: System/Libraries Obsoletes: %{name} Provides: %{name} = %{version}-%{release} %description -n %{lib_name} 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. %package -n %{lib_name}-devel Summary: Development tools for programs which will use the libtiff library Group: Development/C Requires: %{lib_name} = %{version} Obsoletes: %{name}-devel Provides: %{name}-devel = %{version}-%{release} Provides: tiff-devel = %{version}-%{release} %description -n %{lib_name}-devel This package contains the header files and .so libraries for developing programs which will manipulate TIFF format image files using the libtiff library. %package -n %{lib_name}-static-devel Summary: Static libraries for programs which will use the libtiff library Group: Development/C Requires: %{lib_name}-devel = %{version} Provides: %{name}-static-devel = %{version}-%{release} Provides: tiff-static-devel = %{version}-%{release} %description -n %{lib_name}-static-devel This package contains the static libraries for developing programs which will manipulate TIFF format image files using the libtiff library. %prep %setup -q -n tiff-v%{version} -a 1 %patch0 -p1 -b .shlib %patch1 -p1 -b .codecs %patch2 -p1 -b .cd %patch3 -p1 -b .buildroot %patch4 -p1 -b .64bit %patch5 -p1 -b .x86_64 %patch6 -p1 -b .deps %patch7 -p1 -b .hylafax %patch8 -p1 -b .range # security fixes %patch100 -p1 -b .alt-bound %patch101 -p1 -b .chris-bound %patch102 -p1 -b .bound-fix2 %patch103 -p1 -b .idefense %patch104 -p1 -b .can-2004-2452 %patch105 -p1 -b .cve-2005-1544 %patch106 -p1 -b .bug_1065 %patch107 -p1 -b .bug_1102_1 %patch108 -p1 -b .bug_1102_2 %patch109 -p1 -b .bug_1102_3 %patch110 -p1 -b .double_free %patch111 -p1 -b .tiffgt %patch112 -p1 -b .cve-2006-2656 %patch113 -p1 -b .cve-2006-2193 %patch114 -p1 -b .cve-2006-3459-thru-3465 ln -s pics-* pics %build find . -type 'd' -name 'CVS' | xargs rm -fr perl -pi -e 's|(DIR_.*)="?/usr/lib"?|\1="%{_libdir}"|' config.site %{?__cputoolize: %{__cputoolize}} ./configure --target=%{_target_platform} \ --with-GCOPTS="$RPM_OPT_FLAGS" << EOF no %{_bindir} %{_libdir} %{_includedir} %{_mandir} %{_defaultdocdir}/%{name}-progs-%{version} bsd-source-cat yes EOF cd libtiff ln -s libtiff.so.%{lib_version} libtiff.so cd .. %make make test %install rm -rf %{buildroot} mkdir -p %{buildroot}/{%{_bindir},%{_datadir}} %makeinstall install -m0755 %{name}/%{name}.so.%{lib_version} %{buildroot}%{_libdir}/ ln -snf %{name}.so.%{lib_version} %{buildroot}%{_libdir}/%{name}.so.%{lib_major} ln -snf %{name}.so.%{lib_version} %{buildroot}%{_libdir}/%{name}.so install -m0644 libtiff/tiffiop.h %{buildroot}%{_includedir}/ install -m0644 libtiff/port.h %{buildroot}%{_includedir}/ install -m0644 libtiff/tif_dir.h %{buildroot}%{_includedir}/ # multiarch policy %multiarch_includes %{buildroot}%{_includedir}/port.h %post -n %{lib_name} -p /sbin/ldconfig %postun -n %{lib_name} -p /sbin/ldconfig %clean rm -rf %{buildroot} %files progs %defattr(-,root,root,-) #%doc Readme %{_bindir}/* %{_mandir}/man1/* %files -n %{lib_name} %defattr(-,root,root,-) #%doc Readme %{_libdir}/*.so.* %files -n %{lib_name}-devel %defattr(-,root,root,-) %doc COPYRIGHT README TODO VERSION html %{_includedir}/* %{_libdir}/*.so %{_mandir}/man3/* %files -n %{lib_name}-static-devel %defattr(-,root,root,-) %doc COPYRIGHT README TODO VERSION %{_libdir}/*.a %changelog * Thu Jul 27 2006 Stew Benedict <sbenedict@mandriva.com> 3.6.1-12.6.20060mdk - redo P114, catch bad EstimateStripByteCounts (backport some bits from 3.8.2) - also its CVE-2006-3459 thru 3465, not 3464 * Wed Jul 19 2006 Stew Benedict <sbenedict@mandriva.com> 3.6.1-12.5.20060mdk - P114: security for for CVE-2006-3459 thru CVE-2006-3464 * Tue Jun 13 2006 Stew Benedict <sbenedict@mandriva.com> 3.6.1-12.4.20060mdk - P113: security fix for CVE-2006-2193 * Mon Jun 05 2006 Stew Benedict <sbenedict@mandriva.com> 3.6.1-12.3.20060mdk - P112: security fix for CVE-2006-2656 * Fri Apr 28 2006 Vincent Danen <vdanen@mandriva.com> 3.6.1-12.2.20060mdk - P106-P111: security fixes taken from SUSE to fix CVE-2006-2024, CVE-2006-2025, CVE-2006-2026 * Thu Feb 2 2006 Vincent Danen <vdanen@mandriva.com> 3.6.1-12.1.20060mdk - P105: security fix for CVE-2005-1544 * Thu Aug 18 2005 Olivier Blin <oblin@mandriva.com> 3.6.1-12mdk - from Stew Benedict: security update for CAN-2005-2452 (P104) * Wed Mar 23 2005 Olivier Blin <oblin@mandrakesoft.com> 3.6.1-11mdk - Patch8: fix man page about tiffsplit filename range (CVS, #12071) * Tue Mar 22 2005 Olivier Blin <oblin@mandrakesoft.com> 3.6.1-10mdk - update Patch103: do not abort if an unknown tag is found (#13125) * Thu Mar 10 2005 Christiaan Welvaart <cjw@daneel.dyndns.org> 3.6.1-9mdk - build fix: do not pass cflags to make * Mon Feb 28 2005 Gwenole Beauchesne <gbeauchesne@mandrakesoft.com> 3.6.1-8mdk - cross-endian multiarch fixes * Tue Jan 25 2005 Frederic Lepied <flepied@mandrakesoft.com> 3.6.1-7mdk - parallel build - really fix MDKSA-2005:001 * Tue Jan 25 2005 Michael Scherer <misc@mandrake.org> 3.6.1-6mdk - security fix ( patch #102 ) * Tue Oct 26 2004 Oden Eriksson <oeriksson@mandrakesoft.com> 3.6.1-5mdk - added security fixes for buffer and integer overflows (P100 & P101) * Thu Oct 7 2004 Olivier Blin <blino@mandrake.org> 3.6.1-4mdk - fix Hylafax decoding, see : http://bugs.hylafax.org/bugzilla/show_bug.cgi?id=500 * Sun Sep 12 2004 Oden Eriksson <oeriksson@mandrakesoft.com> 3.6.1-3mdk - add missing headers - misc spec file fixes * Thu May 27 2004 Buchan Milne <bgmilne@linux-mandrake.com> 3.6.1-2mdk - Merge back changes I clobbered - rediff P0,P1,P4 * Mon May 14 2004 Buchan Milne <bgmilne@linux-mandrake.com> 3.6.1-1mdk - 3.6.1 * Thu Oct 9 2003 Gwenole Beauchesne <gbeauchesne@mandrakesoft.com> 3.5.7-11mdk - build libtiff with -lm * Wed Jul 30 2003 Gwenole Beauchesne <gbeauchesne@mandrakesoft.com> 3.5.7-10mdk - mkbliname, cputoolize, fixlets * Tue Jul 8 2003 Guillaume Cottenceau <gc@mandrakesoft.com> 3.5.7-9mdk - rebuild for new devel provides * Fri May 23 2003 Stefan van der Eijk <stefan@eijk.nu> 3.5.7-8mdk - rebuild * Mon May 05 2003 Stefan van der Eijk <stefan@eijk.nu> 3.5.7-7mdk - fix %%doc (comment out "Readme") * Fri Oct 11 2002 Gwenole Beauchesne <gbeauchesne@mandrakesoft.com> 3.5.7-6mdk - Update Patch4 (64bit) and check for standard _LP64 define. - Patch5: Add check for x86_64 untill gcc is fixed to make it LP64 too. * Sun Jul 7 2002 Gwenole Beauchesne <gbeauchesne@mandrakesoft.com> 3.5.7-5mdk - Correctly set DIR_{JPEG,GZ}LIB * Thu May 16 2002 Yves Duret <yduret@mandrakesoft.com> 3.5.7-4mdk - 9.0 lib policy: added %libname-static-devel * Mon May 06 2002 Gwenole Beauchesne <gbeauchesne@mandrakesoft.com> 3.5.7-3mdk - Automated rebuild in gcc3.1 environment * Sun Apr 21 2002 Yves Duret <yduret@mandrakesoft.com> 3.5.7-2mdk - fix dangling symlinks (found by Alexander Skwar <ASkwar@digitalprojects.com>) * Tue Mar 19 2002 Yves Duret <yduret@mandrakesoft.com> 3.5.7-1mdk - version 3.5.7 - use %%libname everywhere, more macros - fix build - sync with connectiva - provides %%version-%%release * Mon Oct 22 2001 Yves Duret <yduret@mandrakesoft.com> 3.5.5-8mdk - rebuild for sir rpmlint : fix dir perm * Tue Jul 10 2001 Stefan van der Eijk <stefan@eijk.nu> 3.5.5-8mdk - BuildRequires: libjpeg-devel - BuildRequires: zlib-devel - Buildroot --> BuildRoot * Tue Jun 19 2001 Yves Duret <yduret@mandrakesoft.com> 3.5.5-7mdk - nopin rpmlint (c) un wolof from Ouro Sogui * Wed Mar 07 2001 Giuseppe Ghibò <ghibo@mandrakesoft.com> 3.5.5-6mdk - added patch for JPEG and ZIP codecs, as well as "steve" and "test" patches from RedHat. Now ImageMagick Jpeg/PNG -> TIF conversion works. - added man pages. * Sat Jan 20 2001 Giuseppe Ghibò <ghibo@mandrakesoft.com> 3.5.5-5mdk - tools dynamic linked now. - real optization. * Tue Dec 26 2000 Yves Duret <yduret@mandrakesoft.com> 3.5.5-4mdk - changed Copyright: into BSD-like instead of distributable * Sun Dec 17 2000 David BAUDENS <baudens@mandrakesoft.com> 3.5.5-3mdk - Use %%_tmppath for BuildRoot - Use %%make macro - Libdification - Remove CVS stuff * Wed Jul 19 2000 Thierry Vignaud <tvignaud@mandrakesoft.com> 3.5.5-2mdk - fix URL - use new macros - BM - let spechelper do the strip & compress job * Mon Jun 26 2000 Alexandre Dussart <adussart@mandrakesoft.com> 3.5.5-1mdk - 3.5.5 - Removed obsolete patch(check for libc6). - Rewrittent some spec section to be more generic. - Updated shlib patch. - Removed LIBVER define. * Tue Apr 18 2000 Warly <warly@linux-mandrake.com> 3.4-10mdk - New group * Sun Oct 31 1999 Axalon Bloodstone <axalon@linux-mandrake.com> - Enable SMP check/build - Use good macro (old one may have bziped whole dirs) - defattr * Mon Jul 12 1999 Axalon Bloodstone <axalon@linux-mandrake.com> - bzip manpages * Tue May 11 1999 Bernhard Rosenkraenzer <bero@mandrakesoft.com> - Mandrake adaptions * Sun Mar 21 1999 Cristian Gafton <gafton@redhat.com> - auto rebuild in the new build environment (release 6) * Wed Jan 13 1999 Cristian Gafton <gafton@redhat.com> - build for glibc 2.1 * Wed Jun 10 1998 Prospector System <bugs@redhat.com> - translations modified for de * Wed Jun 10 1998 Michael Fulbright <msf@redhat.com> - rebuilt against fixed jpeg libs (libjpeg-6b) * Thu May 07 1998 Prospector System <bugs@redhat.com> - translations modified for de, fr, tr * Mon Oct 13 1997 Donnie Barnes <djb@redhat.com> - new version to replace the one from libgr - patched for glibc - added shlib support