File tiff3.spec of Package tiff3
#
# spec file for package tiff
#
# Copyright (c) 2015 SUSE LINUX Products GmbH, Nuernberg, Germany.
#
# All modifications and additions to the file contributed by third parties
# remain the property of their copyright owners, unless otherwise agreed
# upon. The license for this file, and modifications and additions to the
# file, is the same license as for the pristine package itself (unless the
# license for the pristine package is not an Open Source License, in which
# case the license is the MIT License). An "Open Source License" is a
# license that conforms to the Open Source Definition (Version 1.9)
# published by the Open Source Initiative.
# Please submit bugfixes or comments via http://bugs.opensuse.org/
#
Name: tiff3
Version: 3.8.2.1
Release: 0
Summary: Tools for Converting from and to the Tiff Format
License: HPND
Group: Productivity/Graphics/Convertors
#
Url: http://www.remotesensing.org/libtiff/
Source: tiff-3.8.2.tar.bz2
Source1: jpegint.h
Patch2: tiff-3.8.2-seek.patch
Patch3: tiff-3.8.2-tiff2pdf.patch
Patch4: tiff-3.8.2-tiffsplit-CVE-2006-2656.patch
Patch5: tiff-3.8.2-tif_lzw.c-CVE-2008-2327.patch
Patch6: tiff-3.8.2-tif_lzw.c-CVE-2008-2327-2.patch
Patch7: tiff-am.patch
Patch8: tiff-3.8.2-bnc444079.patch
Patch9: tiff-3.8.2-lzw-CVE-2009-2285.patch
Patch10: tiff-3.8.2-CVE-2009-2347.patch
Patch11: tiff-3.8.2-CVE-2010-1411.patch
Patch12: tiff-3.8.2-CVE-2011-0192.patch
Patch13: tiff-3.8.2-CVE-2011-0191.patch
Patch14: tiff-3.8.2-tiff2pdf-colors.patch
Patch15: tiff-3.8.2-CVE-2011-1167.patch
Patch16: tiff-3.8.2-CVE-2010-4665.patch
Patch17: tiff-3.8.2-CVE-2012-1173.patch
Patch18: tiff-3.8.2-CVE-2012-2113.patch
Patch19: tiff-3.8.2-CVE-2012-2088.patch
Patch20: tiff-3.8.2-CVE-2012-3401.patch
Patch21: tiff-3.8.2-bnc788741-mem-crash.patch
Patch22: tiff-3.8.2-CVE-2012-4447.patch
Patch23: tiff-3.8.2-CVE-2012-4564.patch
Patch24: tiff-3.8.2-CVE-2012-5581.patch
Patch25: tiff-3.8.2-CVE-2013-1961.patch
Patch26: tiff-3.8.2-CVE-2013-1960.patch
Patch27: tiff-3.8.2-CVE-2013-4232.patch
Patch28: tiff-3.8.2-CVE-2013-4231.patch
Patch29: tiff-3.8.2-CVE-2013-4244.patch
Patch30: tiff-3.8.2-CVE-2013-4243.patch
BuildRequires: autoconf
BuildRequires: automake
BuildRequires: gcc-c++
BuildRequires: libjpeg-devel
BuildRequires: libtool
BuildRequires: zlib-devel
BuildRoot: %{_tmppath}/%{name}-%{version}-build
%description
This package contains the library and support programs for the TIFF
image format.
%package -n libtiff3
Summary: The Tiff Library (with JPEG and compression support)
Group: System/Libraries
Provides: libtiff = %{version}
%description -n libtiff3
This package includes the tiff libraries. To link a program with
libtiff, you will have to add -ljpeg and -lz to include the necessary
libjpeg and libz in the linking process.
%prep
%setup -q -n tiff-3.8.2
%patch2
%patch3
%patch4
%patch5
%patch6
%patch7
%patch8
%patch9
%patch10 -p1
%patch11 -p1
%patch12
%patch13
%patch14 -p1
%patch15
%patch16
%patch17
%patch18
%patch19
%patch20
%patch21 -p1
%patch22
%patch23
%patch24 -p1
%patch25
%patch26 -p1
%patch27
%patch28
%patch29
%patch30
find -type d -name "CVS" | xargs rm -rfv
find -type d | xargs chmod 755
%build
rm m4/ltversion.m4 m4/ltsugar.m4 m4/ltoptions.m4 m4/libtool.m4
autoreconf --force --install -v
CFLAGS="%{optflags} -fno-strict-aliasing -fstack-protector" \
./configure --prefix=/usr --mandir=%{_mandir} --libdir=%{_libdir} --disable-static
make %{?_smp_mflags}
%install
mkdir -p %{buildroot}%{_libdir}
install -m 755 libtiff/.libs/libtiff.so.3.8.2 %{buildroot}%{_libdir}
ln -s libtiff.so.3.8.2 %{buildroot}%{_libdir}/libtiff.so.3
%post -n libtiff3 -p /sbin/ldconfig
%postun -n libtiff3 -p /sbin/ldconfig
%files -n libtiff3
%defattr(-,root,root)
%doc README COPYRIGHT
%{_libdir}/*.so.*
%changelog