Accepting request 648715 from home:scarabeus_iv:branches:graphics
- Support only SLE12+ and remove the no longer needed conditions OBS-URL: https://build.opensuse.org/request/show/648715 OBS-URL: https://build.opensuse.org/package/show/graphics/tiff?expand=0&rev=131
This commit is contained in:
parent
477879b0e1
commit
dbdcd8bdbf
@ -1,3 +1,8 @@
|
|||||||
|
-------------------------------------------------------------------
|
||||||
|
Tue Nov 13 10:20:45 UTC 2018 - Tomáš Chvátal <tchvatal@suse.com>
|
||||||
|
|
||||||
|
- Support only SLE12+ and remove the no longer needed conditions
|
||||||
|
|
||||||
-------------------------------------------------------------------
|
-------------------------------------------------------------------
|
||||||
Tue Nov 13 08:18:54 UTC 2018 - Petr Gajdos <pgajdos@suse.com>
|
Tue Nov 13 08:18:54 UTC 2018 - Petr Gajdos <pgajdos@suse.com>
|
||||||
|
|
||||||
|
42
tiff.spec
42
tiff.spec
@ -18,14 +18,13 @@
|
|||||||
|
|
||||||
%define asan_build 0
|
%define asan_build 0
|
||||||
%define debug_build 0
|
%define debug_build 0
|
||||||
|
|
||||||
Name: tiff
|
Name: tiff
|
||||||
Version: 4.0.10
|
Version: 4.0.10
|
||||||
Release: 0
|
Release: 0
|
||||||
Summary: Tools for Converting from and to the Tagged Image File Format
|
Summary: Tools for Converting from and to the Tagged Image File Format
|
||||||
License: HPND
|
License: HPND
|
||||||
Group: Productivity/Graphics/Convertors
|
Group: Productivity/Graphics/Convertors
|
||||||
Url: http://www.simplesystems.org/libtiff/
|
URL: http://www.simplesystems.org/libtiff/
|
||||||
Source: http://download.osgeo.org/libtiff/tiff-%{version}.tar.gz
|
Source: http://download.osgeo.org/libtiff/tiff-%{version}.tar.gz
|
||||||
Source2: README.SUSE
|
Source2: README.SUSE
|
||||||
Source3: baselibs.conf
|
Source3: baselibs.conf
|
||||||
@ -36,26 +35,12 @@ Patch1: tiff-4.0.3-compress-warning.patch
|
|||||||
# https://gitlab.com/libtiff/libtiff/merge_requests/44
|
# https://gitlab.com/libtiff/libtiff/merge_requests/44
|
||||||
Patch2: tiff-CVE-2018-12900.patch
|
Patch2: tiff-CVE-2018-12900.patch
|
||||||
BuildRequires: gcc-c++
|
BuildRequires: gcc-c++
|
||||||
|
BuildRequires: libjbig-devel
|
||||||
BuildRequires: libjpeg-devel
|
BuildRequires: libjpeg-devel
|
||||||
BuildRequires: libtool
|
BuildRequires: libtool
|
||||||
BuildRequires: zlib-devel
|
|
||||||
BuildRoot: %{_tmppath}/%{name}-%{version}-build
|
|
||||||
%if 0%{?suse_version} > 1030
|
|
||||||
BuildRequires: lzma-devel
|
BuildRequires: lzma-devel
|
||||||
%endif
|
|
||||||
%if 0%{?suse_version} <= 1000
|
|
||||||
BuildRequires: pkgconfig
|
BuildRequires: pkgconfig
|
||||||
%endif
|
BuildRequires: pkgconfig(zlib)
|
||||||
%if 0%{?suse_version} > 1000
|
|
||||||
BuildRequires: pkg-config
|
|
||||||
%endif
|
|
||||||
# bug437293
|
|
||||||
%ifarch ppc64
|
|
||||||
Obsoletes: tiff-64bit
|
|
||||||
%endif
|
|
||||||
%if 0%{?suse_version} > 1210
|
|
||||||
BuildRequires: libjbig-devel
|
|
||||||
%endif
|
|
||||||
|
|
||||||
%description
|
%description
|
||||||
This package contains the library and support programs for the TIFF
|
This package contains the library and support programs for the TIFF
|
||||||
@ -65,11 +50,6 @@ image format.
|
|||||||
Summary: The Tiff Library (with JPEG and compression support)
|
Summary: The Tiff Library (with JPEG and compression support)
|
||||||
Group: System/Libraries
|
Group: System/Libraries
|
||||||
Provides: libtiff = %{version}
|
Provides: libtiff = %{version}
|
||||||
# bug437293
|
|
||||||
%ifarch ppc64
|
|
||||||
Obsoletes: libtiff-64bit
|
|
||||||
%endif
|
|
||||||
#
|
|
||||||
|
|
||||||
%description -n libtiff5
|
%description -n libtiff5
|
||||||
This package includes the tiff libraries. To link a program with
|
This package includes the tiff libraries. To link a program with
|
||||||
@ -82,11 +62,6 @@ Group: Development/Libraries/C and C++
|
|||||||
Requires: glibc-devel
|
Requires: glibc-devel
|
||||||
Requires: libstdc++-devel
|
Requires: libstdc++-devel
|
||||||
Requires: libtiff5 = %{version}
|
Requires: libtiff5 = %{version}
|
||||||
# bug437293
|
|
||||||
%ifarch ppc64
|
|
||||||
Obsoletes: tiff-devel-64bit
|
|
||||||
%endif
|
|
||||||
#
|
|
||||||
|
|
||||||
%description -n libtiff-devel
|
%description -n libtiff-devel
|
||||||
This package contains the header files and static libraries for
|
This package contains the header files and static libraries for
|
||||||
@ -112,7 +87,7 @@ make %{?_smp_mflags} LDFLAGS="-pie"
|
|||||||
|
|
||||||
%install
|
%install
|
||||||
mkdir -p %{buildroot}/{%{_mandir}/{man1,man3},usr/{bin,lib,include}}
|
mkdir -p %{buildroot}/{%{_mandir}/{man1,man3},usr/{bin,lib,include}}
|
||||||
make DESTDIR=%{buildroot} install %{?_smp_mflags}
|
%make_install
|
||||||
for f in `find %{buildroot}/%{_mandir} -type f -print ` ; do
|
for f in `find %{buildroot}/%{_mandir} -type f -print ` ; do
|
||||||
if [ `wc -l <$f` -eq 1 ] && grep -q "^\.so " $f ; then
|
if [ `wc -l <$f` -eq 1 ] && grep -q "^\.so " $f ; then
|
||||||
linkto=`sed -e "s|^\.so ||" $f`
|
linkto=`sed -e "s|^\.so ||" $f`
|
||||||
@ -141,23 +116,20 @@ for i in tools test; do
|
|||||||
done
|
done
|
||||||
|
|
||||||
%post -n libtiff5 -p /sbin/ldconfig
|
%post -n libtiff5 -p /sbin/ldconfig
|
||||||
|
|
||||||
%postun -n libtiff5 -p /sbin/ldconfig
|
%postun -n libtiff5 -p /sbin/ldconfig
|
||||||
|
|
||||||
%files
|
%files
|
||||||
%defattr(-,root,root)
|
|
||||||
%{_bindir}/*
|
%{_bindir}/*
|
||||||
%doc html
|
%doc html
|
||||||
%doc README.md COPYRIGHT VERSION ChangeLog TODO RELEASE-DATE
|
%doc README.md VERSION ChangeLog TODO RELEASE-DATE
|
||||||
%{_mandir}/man1/*
|
%{_mandir}/man1/*
|
||||||
|
|
||||||
%files -n libtiff5
|
%files -n libtiff5
|
||||||
%defattr(-,root,root)
|
%license COPYRIGHT
|
||||||
%doc README.md COPYRIGHT README.SUSE
|
%doc README.md README.SUSE
|
||||||
%{_libdir}/*.so.*
|
%{_libdir}/*.so.*
|
||||||
|
|
||||||
%files -n libtiff-devel
|
%files -n libtiff-devel
|
||||||
%defattr(-,root,root)
|
|
||||||
%{_includedir}/*
|
%{_includedir}/*
|
||||||
%{_libdir}/*.so
|
%{_libdir}/*.so
|
||||||
%{_libdir}/pkgconfig/*.pc
|
%{_libdir}/pkgconfig/*.pc
|
||||||
|
Loading…
Reference in New Issue
Block a user