1 |
%define major 5 |
2 |
%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 |
Version: 4.2.0 |
9 |
%define subrel 13 |
10 |
Release: %mkrel 1 |
11 |
License: BSD-like |
12 |
Group: System/Libraries |
13 |
URL: http://www.simplesystems.org/%{name}/ |
14 |
Source0: https://download.osgeo.org/%{name}/tiff-%{version}.tar.gz |
15 |
#Source0: https://gitlab.com/#{name}/#{name}/-/archive/master/#{name}-master.tar.bz2 |
16 |
# |
17 |
# Security Patches |
18 |
# P100 -> ... |
19 |
# |
20 |
Patch100: libtiff-CVE-2014-8128.patch |
21 |
Patch101: libtiff-CVE-2015-7554.patch |
22 |
Patch102: libtiff-CVE-2018-12900.patch |
23 |
Patch103: libtiff-CVE-2018-19210.patch |
24 |
Patch104: libtiff-CVE-2022-22844.patch |
25 |
Patch105: libtiff-CVE-2022-0561.patch |
26 |
Patch106: libtiff-CVE-2022-0562.patch |
27 |
Patch107: 232282fd8f9c21eefe8d2d2b96cdbbb172fe7b7c.patch |
28 |
Patch108: 32ea0722ee68f503b7a3f9b2d557acb293fc8cde.patch |
29 |
Patch109: 88d79a45a31c74cba98c697892fed5f7db8b963a.patch |
30 |
Patch110: a1c933dabd0e1c54a412f3f84ae0aa58115c6067.patch |
31 |
Patch111: a95b799f65064e4ba2e2dfc206808f86faf93e85.patch |
32 |
Patch112: 40b00cfb32256d377608b4d4cd30fac338d0a0bc.patch |
33 |
Patch113: 87f580f39011109b3bb5f6eca13fac543a542798.patch |
34 |
Patch114: c1ae29f9ebacd29b7c3e0c7db671af7db3584bc2.patch |
35 |
Patch115: b4e79bfa0c7d2d08f6f1e7ec38143fc8cb11394a.patch |
36 |
Patch116: libtiff-CVE-2022-2056_2057_2058.patch |
37 |
# CVE-2022-34526 |
38 |
Patch117: 275735d0354e39c0ac1dc3c0db2120d6f31d1990.patch |
39 |
Patch118: 07d79fcac2ead271b60e32aeb80f7b4f3be9ac8c.patch |
40 |
Patch119: tiff-CVE-2022-2519,CVE-2022-2520,CVE-2022-2521.patch |
41 |
Patch120: bd94a9b383d8755a27b5a1bc27660b8ad10b094c.patch |
42 |
Patch121: CVE-2022-3599.patch |
43 |
Patch122: CVE-2022-3626_3627.patch |
44 |
Patch123: 227500897dfb07fb7d27f7aa570050e62617e3be.patch |
45 |
Patch124: d1b6b9c1b3cae2d9e37754506c1ad8f4f7b646b5.patch |
46 |
BuildRequires: jbig-devel |
47 |
BuildRequires: pkgconfig(libjpeg) |
48 |
BuildRequires: pkgconfig(freeglut) |
49 |
BuildRequires: pkgconfig(zlib) |
50 |
BuildRequires: pkgconfig(liblzma) |
51 |
BuildRequires: pkgconfig(libzstd) |
52 |
BuildRequires: pkgconfig(libwebp) |
53 |
|
54 |
%description |
55 |
The libtiff package contains a library of functions for manipulating TIFF |
56 |
(Tagged Image File Format) image format files. TIFF is a widely used file |
57 |
format for bitmapped images. TIFF files usually end in the .tif extension |
58 |
and they are often quite large. |
59 |
|
60 |
%package progs |
61 |
Summary: Binaries needed to manipulate TIFF format image files |
62 |
Group: Graphics/Utilities |
63 |
Requires: %{libname} = %{version} |
64 |
Obsoletes: libtiff3-progs |
65 |
Provides: libtiff3-progs = %{version}-%{release} |
66 |
|
67 |
%description progs |
68 |
This package provides binaries needed to manipulate TIFF format image files. |
69 |
|
70 |
%package -n %{libname} |
71 |
Summary: A library of functions for manipulating TIFF format image files |
72 |
Group: System/Libraries |
73 |
Obsoletes: %{name} < %{version} |
74 |
Provides: %{name} = %{version}-%{release} |
75 |
|
76 |
%description -n %{libname} |
77 |
The libtiff package contains a library of functions for manipulating TIFF |
78 |
(Tagged Image File Format) image format files. TIFF is a widely used file |
79 |
format for bitmapped images. TIFF files usually end in the .tif extension |
80 |
and they are often quite large. |
81 |
|
82 |
%package -n %{develname} |
83 |
Summary: Development tools for programs which will use the libtiff library |
84 |
Group: Development/C |
85 |
Requires: %{libname} = %{version} |
86 |
Provides: %{name}-devel = %{version}-%{release} |
87 |
Provides: tiff-devel = %{version}-%{release} |
88 |
Obsoletes: %{mklibname tiff 3 -d} |
89 |
|
90 |
%description -n %{develname} |
91 |
This package contains the header files and .so libraries for developing |
92 |
programs which will manipulate TIFF format image files using the libtiff |
93 |
library. |
94 |
|
95 |
%package -n %{staticdevelname} |
96 |
Summary: Static libraries for programs which will use the libtiff library |
97 |
Group: Development/C |
98 |
Requires: %{develname} = %{version} |
99 |
Provides: %{name}-static-devel = %{version}-%{release} |
100 |
Provides: tiff-static-devel = %{version}-%{release} |
101 |
Obsoletes: %{mklibname tiff 3 -d -s} |
102 |
|
103 |
%description -n %{staticdevelname} |
104 |
This package contains the static libraries for developing |
105 |
programs which will manipulate TIFF format image files using the libtiff |
106 |
library. |
107 |
|
108 |
%prep |
109 |
%setup -q -n tiff-%{version} |
110 |
#setup -q -n #{name}-master |
111 |
%patch100 -p0 |
112 |
%patch101 -p1 |
113 |
%patch102 -p1 |
114 |
%patch103 -p1 |
115 |
%patch104 -p1 |
116 |
%patch105 -p1 |
117 |
%patch106 -p1 |
118 |
%patch107 -p1 |
119 |
%patch108 -p1 |
120 |
%patch109 -p1 |
121 |
%patch110 -p1 |
122 |
%patch111 -p1 |
123 |
%patch112 -p1 |
124 |
%patch113 -p1 |
125 |
%patch114 -p1 |
126 |
%patch115 -p1 |
127 |
%patch116 -p1 |
128 |
%patch117 -p1 |
129 |
%patch118 -p1 |
130 |
%patch119 -p1 |
131 |
%patch120 -p1 |
132 |
%patch121 -p1 |
133 |
%patch122 -p1 |
134 |
%patch123 -p1 |
135 |
%patch124 -p1 |
136 |
%build |
137 |
./autogen.sh |
138 |
%configure --enable-static --with-docdir=%{_datadir}/doc/%{develname} --enable-ld-version-script |
139 |
%make_build |
140 |
|
141 |
%check |
142 |
LD_LIBRARY_PATH=$PWD:$LD_LIBRARY_PATH make check |
143 |
|
144 |
%install |
145 |
%make_install |
146 |
|
147 |
rm -f %{buildroot}%{_libdir}/*.la |
148 |
|
149 |
# remove man pages for programs that are not provided anymore |
150 |
rm -f %{buildroot}%{_mandir}/man1/rgb2ycbcr.1* |
151 |
rm -f %{buildroot}%{_mandir}/man1/thumbnail.1* |
152 |
|
153 |
# multiarch policy |
154 |
%multiarch_includes %{buildroot}%{_includedir}/tiffconf.h |
155 |
|
156 |
%files progs |
157 |
%{_bindir}/* |
158 |
%{_mandir}/man1/* |
159 |
|
160 |
%files -n %{libname} |
161 |
%{_libdir}/*.so.%{major}{,.*} |
162 |
|
163 |
%files -n %{develname} |
164 |
%doc %{_datadir}/doc/%{develname} |
165 |
%{_includedir}/*.h* |
166 |
%{multiarch_includedir}/tiffconf.h |
167 |
%{_libdir}/*.so |
168 |
%{_libdir}/pkgconfig/*.pc |
169 |
%{_mandir}/man3/* |
170 |
|
171 |
%files -n %{staticdevelname} |
172 |
%{_libdir}/*.a |