]> git.pld-linux.org Git - packages/libtiff.git/blob - libtiff.spec
upstream fixes for CVE-2013-4231, CVE-2013-4232
[packages/libtiff.git] / libtiff.spec
1 #
2 # Conditional build:
3 %bcond_without  opengl  # do not build OpenGL viewer
4 %bcond_with     jpeg12  # dual 8/12-bit libjpeg mode
5 #
6 Summary:        Library for handling TIFF files
7 Summary(de.UTF-8):      Library zum Verwalten von TIFF-Dateien
8 Summary(fr.UTF-8):      Bibliothèque de gestion des fichiers TIFF
9 Summary(pl.UTF-8):      Biblioteka do manipulacji plikami w formacie TIFF
10 Summary(tr.UTF-8):      TIFF dosyalarını işleme kitaplığı
11 Name:           libtiff
12 Version:        4.0.3
13 Release:        4
14 License:        BSD-like
15 Group:          Libraries
16 Source0:        http://download.osgeo.org/libtiff/tiff-%{version}.tar.gz
17 # Source0-md5:  051c1068e6a0627f461948c365290410
18 Patch0:         %{name}-glut.patch
19 Patch1:         %{name}-CVE-2012-4447.patch
20 Patch2:         %{name}-CVE-2012-4564.patch
21 Patch3:         %{name}-CVE-2013-1960.patch
22 Patch4:         %{name}-CVE-2013-1961.patch
23 Patch5:         %{name}-CVE-2013-4231.patch
24 Patch6:         %{name}-CVE-2013-4232.patch
25 URL:            http://www.remotesensing.org/libtiff/
26 %{?with_opengl:BuildRequires:  OpenGL-glut-devel}
27 BuildRequires:  autoconf >= 2.64
28 BuildRequires:  automake >= 1:1.11
29 BuildRequires:  jbigkit-devel
30 BuildRequires:  libjpeg-devel
31 %{?with_jpeg12:BuildRequires:   libjpeg12-devel}
32 BuildRequires:  libstdc++-devel
33 BuildRequires:  libtool >= 2:2.2
34 %{?with_opengl:BuildRequires:   xorg-lib-libX11-devel}
35 BuildRequires:  xz-devel
36 BuildRequires:  zlib-devel
37 BuildRoot:      %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
38
39 %define         _noautoreqdep   libGL.so.1 libGLU.so.1
40
41 %description
42 This package is a library of functions that manipulate TIFF images.
43
44 %description -l de.UTF-8
45 Eine Library von Funktionen zur Manipulation von TIFFs.
46
47 %description -l fr.UTF-8
48 Bibliothèque de fonctions pour manipuler des images TIFF.
49
50 %description -l pl.UTF-8
51 Ten pakiet zawiera bibliotekę pozwalającą manipulować plikami w
52 formacie TIFF.
53
54 %description -l tr.UTF-8
55 Bu paket TIFF resimlerini işleyen fonksiyonlardan oluşan bir
56 kitaplıktır.
57
58 %package devel
59 Summary:        Header files for developing programs using libtiff
60 Summary(de.UTF-8):      Header zur Entwicklung von Programmen unter Verwendung von libtiff
61 Summary(pl.UTF-8):      Pliki nagłówkowe do biblioteki libtiff
62 Group:          Development/Libraries
63 Requires:       %{name} = %{version}-%{release}
64 Requires:       jbigkit-devel
65 Requires:       libjpeg-devel
66 %{?with_jpeg12:Requires:        libjpeg12-devel}
67 Requires:       xz-devel
68 Requires:       zlib-devel
69
70 %description devel
71 This package is all you need to develop programs that manipulate tiff
72 images.
73
74 %description devel -l de.UTF-8
75 Dieses Paket enthält alles, was Sie zum Entwickeln von Programmen zum
76 Bearbeiten von tiff-Bildern benötigen.
77
78 %description devel -l fr.UTF-8
79 Ce package contient tout le nécessaire pour réaliser des programmes
80 manipulant des images au format tiff.
81
82 %description devel -l pl.UTF-8
83 Pakiet ten zawiera wszystko co potrzebujesz przy pisaniu programów
84 operujących na formacie tiff.
85
86 %description devel -l tr.UTF-8
87 tiff resimlerini işleyen programlar yazmak için gerekli dosyalar bu
88 pakette yer alır.
89
90 %package static
91 Summary:        Static version libtiff library
92 Summary(pl.UTF-8):      Biblioteka statyczna libtiff
93 Group:          Development/Libraries
94 Requires:       %{name}-devel = %{version}-%{release}
95
96 %description static
97 Static libtiff library.
98
99 %description static -l pl.UTF-8
100 Statyczna biblioteka libtiff.
101
102 %package cxx
103 Summary:        libtiff C++ streams library
104 Summary(pl.UTF-8):      Biblioteka strumieni C++ dla libtiff
105 Group:          Libraries
106 Requires:       %{name} = %{version}-%{release}
107
108 %description cxx
109 libtiff C++ streams library.
110
111 %description cxx -l pl.UTF-8
112 Biblioteka strumieni C++ dla libtiff.
113
114 %package cxx-devel
115 Summary:        libtiff C++ streams API
116 Summary(pl.UTF-8):      API strumieni C++ dla libtiff
117 Group:          Development/Libraries
118 Requires:       %{name}-cxx = %{version}-%{release}
119 Requires:       %{name}-devel = %{version}-%{release}
120 Requires:       libstdc++-devel
121
122 %description cxx-devel
123 libtiff C++ streams API.
124
125 %description cxx-devel -l pl.UTF-8
126 API strumieni C++ dla libtiff.
127
128 %package cxx-static
129 Summary:        libtiff C++ streams static library
130 Summary(pl.UTF-8):      Statyczna biblioteka strumieni C++ dla libtiff
131 Group:          Development/Libraries
132 Requires:       %{name}-cxx-devel = %{version}-%{release}
133
134 %description cxx-static
135 libtiff C++ streams static library.
136
137 %description cxx-static -l pl.UTF-8
138 Statyczna biblioteka strumieni C++ dla libtiff.
139
140 %package progs
141 Summary:        Simple clients for manipulating tiff images
142 Summary(de.UTF-8):      Einfachen Clients zur Manipulation von tiff
143 Summary(fr.UTF-8):      Clients simples pour manipuler de telles images
144 Summary(pl.UTF-8):      Kilka prostych programów do manipulowania na plikach tiff
145 Group:          Applications/Graphics
146 Requires:       %{name} = %{version}-%{release}
147
148 %description progs
149 Simple clients for manipulating tiff images.
150
151 %description progs -l de.UTF-8
152 Einfachen Clients zur Manipulation von tiff.
153
154 %description progs -l fr.UTF-8
155 Clients simples pour manipuler de telles images.
156
157 %description progs -l pl.UTF-8
158 Kilka prostych programów do manipulowania na plikach tiff.
159
160 %package progs-gl
161 Summary:        tiffgt - OpenGL-based tiff viewer
162 Summary(pl.UTF-8):      tiffgt - program do oglądania plików tiff oparty o OpenGL
163 Group:          Applications/Graphics
164 Requires:       %{name} = %{version}-%{release}
165
166 %description progs-gl
167 tiffgt - OpenGL-based tiff viewer.
168
169 %description progs-gl -l pl.UTF-8
170 tiffgt - program do oglądania plików tiff oparty o OpenGL.
171
172 %prep
173 %setup -q -n tiff-%{version}
174 %patch0 -p1
175 %patch1 -p1
176 %patch2 -p1
177 %patch3 -p1
178 %patch4 -p1
179 %patch5 -p1
180 %patch6 -p1
181
182 %build
183 %{__libtoolize}
184 %{__aclocal} -I m4
185 %{__autoconf}
186 %{__autoheader}
187 %{__automake}
188 %configure \
189         %{!?with_opengl:--without-x} \
190         %{?with_jpeg12:--enable-jpeg12 --with-jpeg12-include-dir=%{_includedir}/libjpeg12 --with-jpeg12-lib=-ljpeg12}
191
192 %{__make}
193
194 %install
195 rm -rf $RPM_BUILD_ROOT
196
197 %{__make} install \
198         DESTDIR=$RPM_BUILD_ROOT
199
200 %{__rm} -r html{,/*}/Makefile* $RPM_BUILD_ROOT%{_docdir}/tiff-%{version}
201
202 # program not packaged
203 %{__rm} $RPM_BUILD_ROOT%{_mandir}/man1/sgi2tiff.1
204
205 # libtiff.la kept - Libs.private are incomplete (lzma missing)
206
207 %clean
208 rm -rf $RPM_BUILD_ROOT
209
210 %post   -p /sbin/ldconfig
211 %postun -p /sbin/ldconfig
212
213 %files
214 %defattr(644,root,root,755)
215 %doc COPYRIGHT ChangeLog README TODO
216 %attr(755,root,root) %{_libdir}/libtiff.so.*.*.*
217 %attr(755,root,root) %ghost %{_libdir}/libtiff.so.5
218
219 %files devel
220 %defattr(644,root,root,755)
221 %doc html/*
222 %attr(755,root,root) %{_libdir}/libtiff.so
223 %{_libdir}/libtiff.la
224 %{_includedir}/tiff*.h
225 %{_pkgconfigdir}/libtiff-4.pc
226 %{_mandir}/man3/TIFF*.3tiff*
227 %{_mandir}/man3/libtiff.3tiff*
228
229 %files static
230 %defattr(644,root,root,755)
231 %{_libdir}/libtiff.a
232
233 %files cxx
234 %defattr(644,root,root,755)
235 %attr(755,root,root) %{_libdir}/libtiffxx.so.*.*.*
236 %attr(755,root,root) %ghost %{_libdir}/libtiffxx.so.5
237
238 %files cxx-devel
239 %defattr(644,root,root,755)
240 %attr(755,root,root) %{_libdir}/libtiffxx.so
241 %{_libdir}/libtiffxx.la
242 %{_includedir}/tiffio.hxx
243
244 %files cxx-static
245 %defattr(644,root,root,755)
246 %{_libdir}/libtiffxx.a
247
248 %files progs
249 %defattr(644,root,root,755)
250 %attr(755,root,root) %{_bindir}/bmp2tiff
251 %attr(755,root,root) %{_bindir}/fax2ps
252 %attr(755,root,root) %{_bindir}/fax2tiff
253 %attr(755,root,root) %{_bindir}/gif2tiff
254 %attr(755,root,root) %{_bindir}/pal2rgb
255 %attr(755,root,root) %{_bindir}/ppm2tiff
256 %attr(755,root,root) %{_bindir}/ras2tiff
257 %attr(755,root,root) %{_bindir}/raw2tiff
258 %attr(755,root,root) %{_bindir}/rgb2ycbcr
259 %attr(755,root,root) %{_bindir}/thumbnail
260 %attr(755,root,root) %{_bindir}/tiff[!g]*
261 %{_mandir}/man1/bmp2tiff.1*
262 %{_mandir}/man1/fax2ps.1*
263 %{_mandir}/man1/fax2tiff.1*
264 %{_mandir}/man1/gif2tiff.1*
265 %{_mandir}/man1/pal2rgb.1*
266 %{_mandir}/man1/ppm2tiff.1*
267 %{_mandir}/man1/ras2tiff.1*
268 %{_mandir}/man1/raw2tiff.1*
269 %{_mandir}/man1/rgb2ycbcr.1*
270 %{_mandir}/man1/thumbnail.1*
271 %{_mandir}/man1/tiff[!g]*.1*
272
273 %if %{with opengl}
274 %files progs-gl
275 %defattr(644,root,root,755)
276 %attr(755,root,root) %{_bindir}/tiffgt
277 %{_mandir}/man1/tiffgt.1*
278 %endif
This page took 0.190318 seconds and 3 git commands to generate.