Petr Gajdos
75ad3872a9
* Add some TIFF/FX support in libtiff. * Fix bug rewriting image tiles in a compressed file. * Fix read past end of data buffer. * etc., see ChangeLog - removed upstreamed patches: * bigendian.patch * dont-fancy-upsampling.patch * CVE-2012-3401.patch - new patch: * test-jpeg-turbo.patch * CVE-2012-4564.patch [bnc#787892] OBS-URL: https://build.opensuse.org/package/show/graphics/tiff?expand=0&rev=51
148 lines
3.9 KiB
RPMSpec
148 lines
3.9 KiB
RPMSpec
#
|
|
# spec file for package tiff
|
|
#
|
|
# Copyright (c) 2012 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: tiff
|
|
BuildRequires: gcc-c++
|
|
BuildRequires: libjpeg-devel
|
|
BuildRequires: libtool
|
|
%if 0%{?suse_version} > 1030
|
|
BuildRequires: lzma-devel
|
|
%endif
|
|
%if 0%{?suse_version} <= 1000
|
|
BuildRequires: pkgconfig
|
|
%endif
|
|
%if 0%{?suse_version} > 1000
|
|
BuildRequires: pkg-config
|
|
%endif
|
|
BuildRequires: zlib-devel
|
|
# bug437293
|
|
%ifarch ppc64
|
|
Obsoletes: tiff-64bit
|
|
%endif
|
|
%if 0%{?suse_version} > 1210
|
|
BuildRequires: libjbig-devel
|
|
%endif
|
|
Version: 4.0.3
|
|
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-%{version}.tar.bz2
|
|
Source2: README.SUSE
|
|
Source3: baselibs.conf
|
|
Patch0: tiff-%{version}-test-jpeg-turbo.patch
|
|
Patch1: tiff-%{version}-seek.patch
|
|
Patch2: tiff-%{version}-tiff2pdf-colors.patch
|
|
Patch3: tiff-%{version}-CVE-2012-4564.patch
|
|
# FYI: this issue is solved another way
|
|
# http://bugzilla.maptools.org/show_bug.cgi?id=1985#c1
|
|
# Patch9: tiff-%{version}-lzw-CVE-2009-2285.patch
|
|
BuildRoot: %{_tmppath}/%{name}-%{version}-build
|
|
|
|
%description
|
|
This package contains the library and support programs for the TIFF
|
|
image format.
|
|
|
|
%package -n libtiff5
|
|
Summary: The Tiff Library (with JPEG and compression support)
|
|
Group: System/Libraries
|
|
Provides: libtiff = %{version}
|
|
# bug437293
|
|
%ifarch ppc64
|
|
Obsoletes: libtiff-64bit
|
|
%endif
|
|
#
|
|
|
|
%description -n libtiff5
|
|
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.
|
|
|
|
%package -n libtiff-devel
|
|
Summary: Development Tools for Programs which will use the libtiff Library
|
|
Group: Development/Libraries/C and C++
|
|
Requires: glibc-devel
|
|
Requires: libstdc++-devel
|
|
Requires: libtiff5 = %{version}
|
|
# bug437293
|
|
%ifarch ppc64
|
|
Obsoletes: tiff-devel-64bit
|
|
%endif
|
|
#
|
|
|
|
%description -n libtiff-devel
|
|
This package contains the header files and static libraries for
|
|
developing programs which will manipulate TIFF format image files using
|
|
the libtiff library.
|
|
|
|
%prep
|
|
%setup -q
|
|
%patch0 -p1
|
|
%patch1 -p1
|
|
%patch2 -p1
|
|
%patch3
|
|
|
|
%build
|
|
%configure --disable-static --with-pic
|
|
make %{?_smp_mflags}
|
|
|
|
%install
|
|
mkdir -p %{buildroot}/{%{_mandir}/{man1,man3},usr/{bin,lib,include}}
|
|
%makeinstall
|
|
for f in `find %{buildroot}/%{_mandir} -type f -print ` ; do
|
|
if [ `wc -l <$f` -eq 1 ] && grep -q "^\.so " $f ; then
|
|
linkto=`sed -e "s|^\.so ||" $f`
|
|
[ -f "`dirname $f`/$linkto" ] && ln -sf "$linkto" $f
|
|
fi
|
|
done
|
|
|
|
cp %{SOURCE2} .
|
|
rm -rf %{buildroot}%{_datadir}/doc/tiff*
|
|
rm -f %{buildroot}/%{_libdir}/*.la
|
|
find html -name "Makefile*" | xargs rm
|
|
|
|
%check
|
|
cd test
|
|
make %{?_smp_mflags} check
|
|
|
|
%post -n libtiff5 -p /sbin/ldconfig
|
|
|
|
%postun -n libtiff5 -p /sbin/ldconfig
|
|
|
|
%files
|
|
%defattr(-,root,root)
|
|
%{_bindir}/*
|
|
%doc html
|
|
%doc README COPYRIGHT VERSION ChangeLog TODO RELEASE-DATE
|
|
%doc %{_mandir}/man1/*
|
|
|
|
%files -n libtiff5
|
|
%defattr(-,root,root)
|
|
%doc README COPYRIGHT README.SUSE
|
|
%{_libdir}/*.so.*
|
|
|
|
%files -n libtiff-devel
|
|
%defattr(-,root,root)
|
|
%{_includedir}/*
|
|
%{_libdir}/*.so
|
|
%{_libdir}/pkgconfig/*.pc
|
|
%doc %{_mandir}/man3/*
|
|
|
|
%changelog
|