2006-12-19 00:18:03 +01:00
|
|
|
#
|
|
|
|
# spec file for package tiff (Version 3.8.2)
|
|
|
|
#
|
2009-01-09 02:04:57 +01:00
|
|
|
# Copyright (c) 2009 SUSE LINUX Products GmbH, Nuernberg, Germany.
|
2006-12-19 00:18:03 +01:00
|
|
|
#
|
2008-09-05 20:56:16 +02:00
|
|
|
# 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.
|
|
|
|
|
2006-12-19 00:18:03 +01:00
|
|
|
# Please submit bugfixes or comments via http://bugs.opensuse.org/
|
|
|
|
#
|
|
|
|
|
|
|
|
|
2008-04-10 15:35:22 +02:00
|
|
|
|
2006-12-19 00:18:03 +01:00
|
|
|
Name: tiff
|
2007-07-23 21:30:20 +02:00
|
|
|
BuildRequires: gcc-c++ libjpeg-devel zlib-devel
|
2009-07-03 17:02:46 +02:00
|
|
|
License: MIT License (or similar)
|
2006-12-19 00:18:03 +01:00
|
|
|
Group: Productivity/Graphics/Convertors
|
2008-04-10 15:35:22 +02:00
|
|
|
AutoReqProv: on
|
2009-01-09 02:04:57 +01:00
|
|
|
# bug437293
|
|
|
|
%ifarch ppc64
|
|
|
|
Obsoletes: tiff-64bit
|
|
|
|
%endif
|
|
|
|
#
|
2008-04-10 15:35:22 +02:00
|
|
|
Url: http://www.remotesensing.org/libtiff/
|
2006-12-19 00:18:03 +01:00
|
|
|
Version: 3.8.2
|
2009-10-02 23:28:01 +02:00
|
|
|
Release: 144
|
2006-12-19 00:18:03 +01:00
|
|
|
Summary: Tools for Converting from and to the Tiff Format
|
|
|
|
Source: tiff-%{version}.tar.bz2
|
|
|
|
Source1: jpegint.h
|
|
|
|
Source2: README.SUSE
|
|
|
|
Patch2: tiff-%{version}-seek.patch
|
|
|
|
Patch3: tiff-%{version}-tiff2pdf.patch
|
|
|
|
Patch4: tiff-%{version}-tiffsplit-CVE-2006-2656.patch
|
2008-09-05 20:56:16 +02:00
|
|
|
Patch5: tiff-%{version}-tif_lzw.c-CVE-2008-2327.patch
|
|
|
|
Patch6: tiff-%{version}-tif_lzw.c-CVE-2008-2327-2.patch
|
2008-09-08 01:39:20 +02:00
|
|
|
Patch7: tiff-am.patch
|
2009-02-12 23:04:23 +01:00
|
|
|
Patch8: tiff-3.8.2-bnc444079.patch
|
2009-07-03 17:02:46 +02:00
|
|
|
Patch9: tiff-3.8.2-lzw-CVE-2009-2285.patch
|
2009-10-02 23:28:01 +02:00
|
|
|
Patch10: tiff-%{version}-CVE-2009-2347.patch
|
2006-12-19 00:18:03 +01:00
|
|
|
BuildRoot: %{_tmppath}/%{name}-%{version}-build
|
|
|
|
|
|
|
|
%description
|
|
|
|
This package contains the library and support programs for the TIFF
|
|
|
|
image format.
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
Authors:
|
|
|
|
--------
|
|
|
|
Sam Leffler <sam@engr.sgi.com>
|
|
|
|
|
2007-07-23 21:30:20 +02:00
|
|
|
%package -n libtiff3
|
2009-07-03 17:02:46 +02:00
|
|
|
License: PERMISSIVE-OSI-COMPLIANT ; MIT License (or similar)
|
2006-12-19 00:18:03 +01:00
|
|
|
Summary: The Tiff Library (with JPEG and compression support)
|
|
|
|
Group: System/Libraries
|
2007-07-27 15:59:33 +02:00
|
|
|
Provides: libtiff = %{version}
|
|
|
|
Obsoletes: libtiff <= %{version}
|
2008-04-10 15:35:22 +02:00
|
|
|
AutoReqProv: on
|
2009-01-09 02:04:57 +01:00
|
|
|
# bug437293
|
|
|
|
%ifarch ppc64
|
2009-01-14 18:00:19 +01:00
|
|
|
Obsoletes: libtiff-64bit
|
2009-01-09 02:04:57 +01:00
|
|
|
%endif
|
|
|
|
#
|
2006-12-19 00:18:03 +01:00
|
|
|
|
2007-07-23 21:30:20 +02:00
|
|
|
%description -n libtiff3
|
2006-12-19 00:18:03 +01:00
|
|
|
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.
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
Authors:
|
|
|
|
--------
|
|
|
|
Sam Leffler <sam@engr.sgi.com>
|
|
|
|
|
|
|
|
%package -n libtiff-devel
|
2009-07-03 17:02:46 +02:00
|
|
|
License: PERMISSIVE-OSI-COMPLIANT
|
2006-12-19 00:18:03 +01:00
|
|
|
Summary: Development Tools for Programs which will use the libtiff Library
|
|
|
|
Group: Development/Libraries/C and C++
|
2007-07-23 21:30:20 +02:00
|
|
|
Requires: libtiff3 = %{version} libjpeg-devel zlib-devel libstdc++-devel glibc-devel
|
2009-01-09 02:04:57 +01:00
|
|
|
# bug437293
|
|
|
|
%ifarch ppc64
|
|
|
|
Obsoletes: tiff-devel-64bit
|
|
|
|
%endif
|
|
|
|
#
|
2006-12-19 00:18:03 +01:00
|
|
|
|
|
|
|
%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
|
|
|
|
%patch2
|
|
|
|
%patch3
|
|
|
|
%patch4
|
2008-09-05 20:56:16 +02:00
|
|
|
%patch5
|
|
|
|
%patch6
|
2008-09-08 01:39:20 +02:00
|
|
|
%patch7
|
2009-02-12 23:04:23 +01:00
|
|
|
%patch8
|
2009-07-03 17:02:46 +02:00
|
|
|
%patch9
|
2009-10-02 23:28:01 +02:00
|
|
|
%patch10 -p1
|
2006-12-19 00:18:03 +01:00
|
|
|
cp %{S:1} libtiff
|
|
|
|
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="$RPM_OPT_FLAGS -fno-strict-aliasing -fstack-protector" \
|
2007-07-23 21:30:20 +02:00
|
|
|
./configure --prefix=/usr --mandir=%{_mandir} --libdir=%{_libdir} --disable-static
|
2006-12-19 00:18:03 +01:00
|
|
|
make
|
|
|
|
|
|
|
|
%install
|
|
|
|
mkdir -p $RPM_BUILD_ROOT/{%{_mandir}/{man1,man3},usr/{bin,lib,include}}
|
|
|
|
make install DESTDIR=$RPM_BUILD_ROOT
|
|
|
|
for f in `find $RPM_BUILD_ROOT/%{_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 %{S:2} .
|
|
|
|
rm -rf $RPM_BUILD_ROOT/usr/share/doc/tiff*
|
2007-07-23 21:30:20 +02:00
|
|
|
rm -f $RPM_BUILD_ROOT/%{_libdir}/*.la
|
2009-10-02 23:28:01 +02:00
|
|
|
find html -name "Makefile*" | xargs rm
|
2006-12-19 00:18:03 +01:00
|
|
|
|
2007-07-23 21:30:20 +02:00
|
|
|
%post -n libtiff3 -p /sbin/ldconfig
|
2006-12-19 00:18:03 +01:00
|
|
|
|
2007-07-23 21:30:20 +02:00
|
|
|
%postun -n libtiff3 -p /sbin/ldconfig
|
2006-12-19 00:18:03 +01:00
|
|
|
|
|
|
|
%clean
|
|
|
|
rm -rf $RPM_BUILD_ROOT
|
|
|
|
|
|
|
|
%files
|
|
|
|
%defattr(-,root,root)
|
|
|
|
/usr/bin/*
|
|
|
|
%doc html
|
|
|
|
%doc README COPYRIGHT
|
|
|
|
%doc %{_mandir}/man1/*
|
|
|
|
|
2007-07-23 21:30:20 +02:00
|
|
|
%files -n libtiff3
|
2006-12-19 00:18:03 +01:00
|
|
|
%defattr(-,root,root)
|
|
|
|
%doc README COPYRIGHT README.SUSE
|
|
|
|
%{_libdir}/*.so.*
|
|
|
|
|
|
|
|
%files -n libtiff-devel
|
|
|
|
%defattr(-,root,root)
|
|
|
|
/usr/include/*
|
|
|
|
%{_libdir}/*.so
|
|
|
|
%doc %{_mandir}/man3/*
|
|
|
|
|
2007-07-23 21:30:20 +02:00
|
|
|
%changelog
|