|
@@ -4,7 +4,7 @@ Summary: A library of functions for manipulating TIFF format image files.
|
|
|
Summary(ja): TIFF フォーマットの画像ファイルを扱うライブラリ
|
|
|
Name: libtiff
|
|
|
Version: 4.0.1
|
|
|
-Release: 1%{_dist_release}
|
|
|
+Release: 2%{_dist_release}
|
|
|
License: distributable
|
|
|
Group: System Environment/Libraries
|
|
|
Source0: http://www.libtiff.org/tiff-%{version}.tar.gz
|
|
@@ -14,6 +14,11 @@ Patch1: libtiff-CVE-2012-1173.patch
|
|
|
BuildRoot: %{_tmppath}/%{name}-%{version}-root
|
|
|
BuildRequires: zlib-devel libjpeg-devel
|
|
|
%define LIBVER %(echo %{version} | cut -f-2 -d.)
|
|
|
+%ifarch x86_64
|
|
|
+Provides: libtiff.so.4()(64bit)
|
|
|
+%else
|
|
|
+Provides: libtiff.so.4
|
|
|
+%endif
|
|
|
|
|
|
Vendor: Project Vine
|
|
|
Distribution: Vine Linux
|
|
@@ -70,6 +75,7 @@ Summary: A library of functions for manipulating TIFF format image files.
|
|
|
Group: System Environment/Libraries
|
|
|
Requires: zlib libjpeg
|
|
|
Requires: %{name} = %{version}
|
|
|
+Provides: libtiff.so.4
|
|
|
%description -n compat32-%{name}
|
|
|
The libtiff package contains a library of functions for manipulating
|
|
|
TIFF (Tagged Image File Format) image format files. TIFF is a widely
|
|
@@ -109,8 +115,9 @@ rm -fr $RPM_BUILD_ROOT
|
|
|
%makeinstall
|
|
|
rm -rf $RPM_BUILD_ROOT/usr/share/doc/tiff-%{version}
|
|
|
|
|
|
-# fix libdir in .la
|
|
|
-perl -pi -e "s,$RPM_BUILD_ROOT,,g" $RPM_BUILD_ROOT%{_libdir}/libtiff*.la
|
|
|
+ln -sf libtiff.so.5 $RPM_BUILD_ROOT%{_libdir}/libtiff.so.4
|
|
|
+
|
|
|
+rm $RPM_BUILD_ROOT%{_libdir}/libtiff*.la
|
|
|
|
|
|
|
|
|
%post -p /sbin/ldconfig
|
|
@@ -139,6 +146,7 @@ rm -rf $RPM_BUILD_ROOT
|
|
|
%{_includedir}/*
|
|
|
%{_libdir}/libtiff*.so
|
|
|
%{_libdir}/libtiff*.a
|
|
|
+%{_libdir}/pkgconfig/*.pc
|
|
|
%{_mandir}/man3/*
|
|
|
|
|
|
## to build compat32 for x86_64 architecture support
|
|
@@ -155,6 +163,10 @@ rm -rf $RPM_BUILD_ROOT
|
|
|
|
|
|
|
|
|
%changelog
|
|
|
+* Fri May 18 2012 Daisuke SUZUKI <daisuke@linux.or.jp> 4.0.1-2
|
|
|
+- add libtiff.so.4 for compatibility
|
|
|
+- add pkgconfig file
|
|
|
+
|
|
|
* Fri May 18 2012 Daisuke SUZUKI <daisuke@linux.or.jp> 4.0.1-1
|
|
|
- new upstream release
|
|
|
- add patch1 to fix CVE-2012-1173
|