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
|
|
|
#
|
2015-02-26 15:02:29 +01:00
|
|
|
# Copyright (c) 2015 SUSE LINUX 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
|
2015-12-08 18:29:05 +01:00
|
|
|
Version: 4.0.6
|
2015-08-04 11:54:51 +02:00
|
|
|
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: http://download.osgeo.org/libtiff/tiff-%{version}.tar.gz
|
|
|
|
Source2: README.SUSE
|
|
|
|
Source3: baselibs.conf
|
|
|
|
Patch0: tiff-4.0.3-seek.patch
|
|
|
|
# http://bugzilla.maptools.org/show_bug.cgi?id=2442
|
|
|
|
Patch1: tiff-4.0.3-compress-warning.patch
|
2012-01-10 05:08:48 +01:00
|
|
|
BuildRequires: gcc-c++
|
|
|
|
BuildRequires: libjpeg-devel
|
|
|
|
BuildRequires: libtool
|
2015-08-04 11:54:51 +02:00
|
|
|
BuildRequires: zlib-devel
|
|
|
|
# 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
|
2012-05-29 18:32:59 +02:00
|
|
|
%if 0%{?suse_version} > 1030
|
2012-03-29 11:52:36 +02:00
|
|
|
BuildRequires: lzma-devel
|
2012-05-29 18:32:59 +02:00
|
|
|
%endif
|
|
|
|
%if 0%{?suse_version} <= 1000
|
|
|
|
BuildRequires: pkgconfig
|
|
|
|
%endif
|
|
|
|
%if 0%{?suse_version} > 1000
|
2012-03-29 11:52:36 +02:00
|
|
|
BuildRequires: pkg-config
|
2012-05-29 18:32:59 +02:00
|
|
|
%endif
|
2009-01-09 02:04:57 +01:00
|
|
|
# bug437293
|
|
|
|
%ifarch ppc64
|
|
|
|
Obsoletes: tiff-64bit
|
|
|
|
%endif
|
2012-05-29 18:32:59 +02:00
|
|
|
%if 0%{?suse_version} > 1210
|
|
|
|
BuildRequires: libjbig-devel
|
|
|
|
%endif
|
2006-12-19 00:18:03 +01:00
|
|
|
|
|
|
|
%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}
|
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
|
2012-04-02 10:31:28 +02:00
|
|
|
Requires: libtiff5 = %{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-11-05 14:22:09 +01:00
|
|
|
%patch0 -p1
|
|
|
|
%patch1 -p1
|
2006-12-19 00:18:03 +01:00
|
|
|
|
|
|
|
%build
|
2015-08-04 11:54:51 +02:00
|
|
|
CFLAGS="%{optflags} -fPIE"
|
2011-08-05 23:38:28 +02:00
|
|
|
%configure --disable-static --with-pic
|
2014-12-23 16:18:37 +01:00
|
|
|
make %{?_smp_mflags} LDFLAGS="-pie"
|
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}}
|
2015-08-04 11:54:51 +02:00
|
|
|
make DESTDIR=%{buildroot} install %{?_smp_mflags}
|
2012-01-10 05:08:48 +01:00
|
|
|
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*
|
2015-08-04 11:54:51 +02:00
|
|
|
find %{buildroot} -type f -name "*.la" -delete -print
|
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
|
2015-08-04 11:54:51 +02:00
|
|
|
%{_mandir}/man1/*
|
2006-12-19 00:18:03 +01:00
|
|
|
|
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
|
2015-08-04 11:54:51 +02:00
|
|
|
%{_mandir}/man3/*
|
2006-12-19 00:18:03 +01:00
|
|
|
|
2007-07-23 21:30:20 +02:00
|
|
|
%changelog
|