1 |
fwang |
186081 |
%define major 5 |
2 |
pterjan |
5546 |
%define libname %mklibname tiff %{major} |
3 |
|
|
%define develname %mklibname tiff -d |
4 |
|
|
%define staticdevelname %mklibname tiff -d -s |
5 |
|
|
|
6 |
|
|
Summary: A library of functions for manipulating TIFF format image files |
7 |
|
|
Name: libtiff |
8 |
fwang |
210740 |
Version: 4.0.1 |
9 |
luigiwalser |
327675 |
%define subrel 5 |
10 |
luigiwalser |
228674 |
Release: %mkrel 2 |
11 |
pterjan |
5546 |
License: BSD-like |
12 |
|
|
Group: System/Libraries |
13 |
|
|
URL: http://www.remotesensing.org/libtiff/ |
14 |
|
|
Source0: ftp://ftp.remotesensing.org/pub/libtiff/tiff-%{version}.tar.gz |
15 |
luigiwalser |
228674 |
Patch1: tiff-4.0.1-CVE-2012-1173.diff |
16 |
luigiwalser |
267046 |
Patch2: tiff-4.0.1-CVE-2012-2113.diff |
17 |
luigiwalser |
272693 |
Patch3: tiff-4.0.2-CVE-2012-3401.diff |
18 |
luigiwalser |
309477 |
Patch4: tiff-4.0.1-CVE-2012-4447.diff |
19 |
luigiwalser |
318243 |
Patch5: tiff-4.0.3-CVE-2012-4564.diff |
20 |
luigiwalser |
327675 |
Patch6: tiff-4.0.1-CVE-2012-5581.diff |
21 |
pterjan |
5546 |
BuildRequires: jbig-devel |
22 |
|
|
BuildRequires: libjpeg-devel |
23 |
fwang |
146947 |
BuildRequires: freeglut-devel |
24 |
pterjan |
5546 |
BuildRequires: zlib-devel |
25 |
fwang |
186081 |
BuildRequires: lzma-devel |
26 |
pterjan |
5546 |
|
27 |
|
|
%description |
28 |
|
|
The libtiff package contains a library of functions for manipulating TIFF |
29 |
|
|
(Tagged Image File Format) image format files. TIFF is a widely used file |
30 |
|
|
format for bitmapped images. TIFF files usually end in the .tif extension |
31 |
|
|
and they are often quite large. |
32 |
|
|
|
33 |
|
|
%package progs |
34 |
|
|
Summary: Binaries needed to manipulate TIFF format image files |
35 |
|
|
Group: Graphics |
36 |
|
|
Requires: %{libname} = %{version} |
37 |
|
|
Obsoletes: libtiff3-progs |
38 |
|
|
Provides: libtiff3-progs = %{version}-%{release} |
39 |
|
|
|
40 |
|
|
%description progs |
41 |
|
|
This package provides binaries needed to manipulate TIFF format image files. |
42 |
|
|
|
43 |
|
|
%package -n %{libname} |
44 |
|
|
Summary: A library of functions for manipulating TIFF format image files |
45 |
|
|
Group: System/Libraries |
46 |
fwang |
186081 |
Obsoletes: %{name} < %{version} |
47 |
pterjan |
5546 |
Provides: %{name} = %{version}-%{release} |
48 |
|
|
|
49 |
|
|
%description -n %{libname} |
50 |
|
|
The libtiff package contains a library of functions for manipulating TIFF |
51 |
|
|
(Tagged Image File Format) image format files. TIFF is a widely used file |
52 |
|
|
format for bitmapped images. TIFF files usually end in the .tif extension |
53 |
|
|
and they are often quite large. |
54 |
|
|
|
55 |
|
|
%package -n %{develname} |
56 |
|
|
Summary: Development tools for programs which will use the libtiff library |
57 |
|
|
Group: Development/C |
58 |
|
|
Requires: %{libname} = %{version} |
59 |
|
|
Provides: %{name}-devel = %{version}-%{release} |
60 |
|
|
Provides: tiff-devel = %{version}-%{release} |
61 |
|
|
Obsoletes: %{mklibname tiff 3 -d} |
62 |
|
|
|
63 |
|
|
%description -n %{develname} |
64 |
|
|
This package contains the header files and .so libraries for developing |
65 |
|
|
programs which will manipulate TIFF format image files using the libtiff |
66 |
|
|
library. |
67 |
|
|
|
68 |
|
|
%package -n %{staticdevelname} |
69 |
|
|
Summary: Static libraries for programs which will use the libtiff library |
70 |
|
|
Group: Development/C |
71 |
|
|
Requires: %{develname} = %{version} |
72 |
|
|
Provides: %{name}-static-devel = %{version}-%{release} |
73 |
|
|
Provides: tiff-static-devel = %{version}-%{release} |
74 |
|
|
Obsoletes: %{mklibname tiff 3 -d -s} |
75 |
|
|
|
76 |
|
|
%description -n %{staticdevelname} |
77 |
|
|
This package contains the static libraries for developing |
78 |
|
|
programs which will manipulate TIFF format image files using the libtiff |
79 |
|
|
library. |
80 |
|
|
|
81 |
|
|
%prep |
82 |
|
|
%setup -q -n tiff-%{version} |
83 |
luigiwalser |
228674 |
%patch1 -p1 -b .CVE-2012-1173 |
84 |
luigiwalser |
267046 |
%patch2 -p1 -b .CVE-2012-2113 |
85 |
luigiwalser |
272693 |
%patch3 -p1 -b .CVE-2012-3401 |
86 |
luigiwalser |
309477 |
%patch4 -p1 -b .CVE-2012-4447 |
87 |
luigiwalser |
318243 |
%patch5 -p0 -b .CVE-2012-4564 |
88 |
luigiwalser |
327675 |
%patch6 -p1 -b .CVE-2012-5581 |
89 |
pterjan |
5546 |
|
90 |
|
|
%build |
91 |
fwang |
210744 |
%configure2_5x --enable-static --with-docdir=%{_datadir}/doc/%{develname} --enable-ld-version-script |
92 |
pterjan |
5546 |
%make |
93 |
|
|
|
94 |
|
|
%check |
95 |
|
|
make check |
96 |
|
|
|
97 |
|
|
%install |
98 |
fwang |
186081 |
%makeinstall_std |
99 |
pterjan |
5546 |
|
100 |
fwang |
146947 |
rm -f %{buildroot}%{_libdir}/*.la |
101 |
|
|
|
102 |
pterjan |
5546 |
# multiarch policy |
103 |
|
|
%multiarch_includes %{buildroot}%{_includedir}/tiffconf.h |
104 |
|
|
|
105 |
|
|
%files progs |
106 |
|
|
%{_bindir}/* |
107 |
|
|
%{_mandir}/man1/* |
108 |
|
|
|
109 |
|
|
%files -n %{libname} |
110 |
pterjan |
88881 |
%{_libdir}/*.so.%{major}* |
111 |
pterjan |
5546 |
|
112 |
|
|
%files -n %{develname} |
113 |
fwang |
186081 |
%doc %{_datadir}/doc/%{develname} |
114 |
pterjan |
5546 |
%{_includedir}/*.h* |
115 |
|
|
%{multiarch_includedir}/tiffconf.h |
116 |
|
|
%{_libdir}/*.so |
117 |
fwang |
186081 |
%{_libdir}/pkgconfig/*.pc |
118 |
pterjan |
5546 |
%{_mandir}/man3/* |
119 |
|
|
|
120 |
|
|
%files -n %{staticdevelname} |
121 |
|
|
%doc COPYRIGHT README TODO VERSION |
122 |
|
|
%{_libdir}/*.a |