2006-12-19 00:18:03 +01:00
|
|
|
#
|
2011-04-01 09:07:17 +02:00
|
|
|
# spec file for package tiff
|
2006-12-19 00:18:03 +01:00
|
|
|
#
|
2012-01-10 05:08:48 +01:00
|
|
|
# Copyright (c) 2012 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/
|
|
|
|
#
|
|
|
|
|
2012-03-29 11:52:36 +02:00
|
|
|
|
2006-12-19 00:18:03 +01:00
|
|
|
Name: tiff
|
2012-01-10 05:08:48 +01:00
|
|
|
BuildRequires: gcc-c++
|
|
|
|
BuildRequires: libjpeg-devel
|
|
|
|
BuildRequires: libtool
|
2012-03-29 11:52:36 +02:00
|
|
|
BuildRequires: lzma-devel
|
|
|
|
BuildRequires: pkg-config
|
2012-01-10 05:08:48 +01:00
|
|
|
BuildRequires: zlib-devel
|
2009-01-09 02:04:57 +01:00
|
|
|
# bug437293
|
|
|
|
%ifarch ppc64
|
|
|
|
Obsoletes: tiff-64bit
|
|
|
|
%endif
|
2012-03-29 11:41:00 +02:00
|
|
|
Version: 4.0.1
|
2012-03-29 11:52:36 +02:00
|
|
|
Release: 0
|
2012-03-29 11:41:00 +02:00
|
|
|
Summary: Tools for Converting from and to the Tiff Format
|
2012-03-29 11:52:36 +02:00
|
|
|
License: HPND
|
|
|
|
Group: Productivity/Graphics/Convertors
|
2012-01-10 05:08:48 +01:00
|
|
|
#
|
2012-03-29 11:41:00 +02:00
|
|
|
Url: http://www.remotesensing.org/libtiff
|
2006-12-19 00:18:03 +01:00
|
|
|
Source: tiff-%{version}.tar.bz2
|
|
|
|
Source2: README.SUSE
|
2010-02-19 16:34:57 +01:00
|
|
|
Source3: baselibs.conf
|
2012-03-29 11:52:36 +02:00
|
|
|
Patch2: tiff-%{version}-seek.patch
|
2010-04-28 22:33:34 +02:00
|
|
|
Patch3: tiff-%{version}-tiff2pdf-colors.patch
|
2010-09-06 15:07:10 +02:00
|
|
|
Patch9: tiff-%{version}-dont-fancy-upsampling.patch
|
2010-03-16 14:09:34 +01:00
|
|
|
# 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
|
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.
|
|
|
|
|
2012-03-29 11:41:00 +02:00
|
|
|
%package -n libtiff5
|
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}
|
2011-08-05 23:38:28 +02:00
|
|
|
Obsoletes: libtiff < %{version}
|
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
|
|
|
|
2012-03-29 11:41:00 +02:00
|
|
|
%description -n libtiff5
|
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.
|
|
|
|
|
|
|
|
%package -n libtiff-devel
|
|
|
|
Summary: Development Tools for Programs which will use the libtiff Library
|
|
|
|
Group: Development/Libraries/C and C++
|
2012-01-10 05:08:48 +01:00
|
|
|
Requires: glibc-devel
|
|
|
|
Requires: libstdc++-devel
|
|
|
|
Requires: libtiff3 = %{version}
|
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
|
2012-01-10 05:08:48 +01:00
|
|
|
%setup -q
|
2012-03-29 11:52:36 +02:00
|
|
|
%patch2 -p1
|
2010-04-28 22:33:34 +02:00
|
|
|
%patch3 -p1
|
2010-09-06 15:07:10 +02:00
|
|
|
%patch9 -p1
|
2006-12-19 00:18:03 +01:00
|
|
|
|
|
|
|
%build
|
2011-08-05 23:38:28 +02:00
|
|
|
%configure --disable-static --with-pic
|
2010-02-19 16:34:57 +01:00
|
|
|
make %{?_smp_mflags}
|
2006-12-19 00:18:03 +01:00
|
|
|
|
|
|
|
%install
|
2012-01-10 05:08:48 +01:00
|
|
|
mkdir -p %{buildroot}/{%{_mandir}/{man1,man3},usr/{bin,lib,include}}
|
|
|
|
%make_install
|
|
|
|
for f in `find %{buildroot}/%{_mandir} -type f -print ` ; do
|
2006-12-19 00:18:03 +01:00
|
|
|
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
|
2012-03-29 11:52:36 +02:00
|
|
|
|
2012-01-10 05:08:48 +01:00
|
|
|
cp %{SOURCE2} .
|
|
|
|
rm -rf %{buildroot}%{_datadir}/doc/tiff*
|
|
|
|
rm -f %{buildroot}/%{_libdir}/*.la
|
2009-10-02 23:28:01 +02:00
|
|
|
find html -name "Makefile*" | xargs rm
|
2006-12-19 00:18:03 +01:00
|
|
|
|
2012-03-29 11:52:36 +02:00
|
|
|
%check
|
|
|
|
cd test
|
|
|
|
make %{?_smp_mflags} check
|
|
|
|
|
2012-03-29 11:41:00 +02:00
|
|
|
%post -n libtiff5 -p /sbin/ldconfig
|
2006-12-19 00:18:03 +01:00
|
|
|
|
2012-03-29 11:41:00 +02:00
|
|
|
%postun -n libtiff5 -p /sbin/ldconfig
|
2006-12-19 00:18:03 +01:00
|
|
|
|
|
|
|
%files
|
|
|
|
%defattr(-,root,root)
|
2012-01-10 05:08:48 +01:00
|
|
|
%{_bindir}/*
|
2006-12-19 00:18:03 +01:00
|
|
|
%doc html
|
2010-03-22 13:51:54 +01:00
|
|
|
%doc README COPYRIGHT VERSION ChangeLog TODO RELEASE-DATE
|
2006-12-19 00:18:03 +01:00
|
|
|
%doc %{_mandir}/man1/*
|
|
|
|
|
2012-03-29 11:41:00 +02:00
|
|
|
%files -n libtiff5
|
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)
|
2012-01-10 05:08:48 +01:00
|
|
|
%{_includedir}/*
|
2006-12-19 00:18:03 +01:00
|
|
|
%{_libdir}/*.so
|
2012-03-29 11:41:00 +02:00
|
|
|
%{_libdir}/pkgconfig/*.pc
|
2006-12-19 00:18:03 +01:00
|
|
|
%doc %{_mandir}/man3/*
|
|
|
|
|
2007-07-23 21:30:20 +02:00
|
|
|
%changelog
|