]>
Commit | Line | Data |
---|---|---|
59f6d029 | 1 | # |
708b49cb | 2 | # Conditional build: |
8d5d1be9 | 3 | %bcond_without apidocs # disable gtk-doc |
7122799d | 4 | %bcond_without cairo # disable Cairo backend |
59f6d029 | 5 | %bcond_without qt4 # disable qt4 wrapper |
931ab1e2 | 6 | %bcond_without cpp # disable cpp wrapper |
cfe3ca2f | 7 | %bcond_without glib # disable glib wrapper |
708b49cb | 8 | # |
a6475984 | 9 | %define cairo_ver 1.10.0 |
e2a6dd23 | 10 | # |
9e116569 | 11 | Summary: PDF rendering library |
ef9a130a | 12 | Summary(pl.UTF-8): Biblioteka renderująca PDF |
9e116569 | 13 | Name: poppler |
0722dd37 | 14 | Version: 0.22.5 |
aa82c819 | 15 | Release: 1 |
434ea14d | 16 | License: GPL v2+ |
9e116569 | 17 | Group: Libraries |
18 | Source0: http://poppler.freedesktop.org/%{name}-%{version}.tar.gz | |
0722dd37 | 19 | # Source0-md5: 1cd27460f7e3379d1eb109cfd7bcdb39 |
9e116569 | 20 | URL: http://poppler.freedesktop.org/ |
d84a04fd JB |
21 | %{?with_qt4:BuildRequires: QtGui-devel >= 4.4.0} |
22 | %{?with_qt4:BuildRequires: QtTest-devel >= 4.4.0} | |
23 | %{?with_qt4:BuildRequires: QtXml-devel >= 4.4.0} | |
7e0143fb JB |
24 | BuildRequires: autoconf >= 2.59 |
25 | BuildRequires: automake | |
e2a6dd23 | 26 | %{?with_cairo:BuildRequires: cairo-devel >= %{cairo_ver}} |
bd2cd4db | 27 | BuildRequires: curl-devel |
ea3f193d | 28 | BuildRequires: docbook-dtd412-xml |
d84a04fd | 29 | BuildRequires: fontconfig-devel >= 2.0.0 |
708b49cb | 30 | BuildRequires: freetype-devel >= 2.0 |
2b8c2f20 | 31 | BuildRequires: gettext-devel |
161e58e8 | 32 | %{?with_glib:BuildRequires: glib2-devel >= 1:2.18.0} |
a6475984 JB |
33 | BuildRequires: gobject-introspection-devel >= 0.6.7 |
34 | %{?with_apidocs:BuildRequires: gtk-doc >= 1.14} | |
aa82c819 | 35 | BuildRequires: lcms2-devel |
9e1eea06 | 36 | BuildRequires: libjpeg-devel |
d9c2dc15 | 37 | BuildRequires: libpng-devel |
708b49cb | 38 | BuildRequires: libstdc++-devel |
d9c2dc15 | 39 | BuildRequires: libtiff-devel |
7e0143fb | 40 | BuildRequires: libtool >= 2:1.5 |
9148ca80 | 41 | BuildRequires: libxml2-devel >= 2.0 |
5ee7d9e8 | 42 | BuildRequires: openjpeg-devel >= 1.5 |
a6475984 | 43 | BuildRequires: pkgconfig >= 1:0.18 |
5ee7d9e8 JB |
44 | # wanted cairo backends |
45 | BuildRequires: pkgconfig(cairo-pdf) >= %{cairo_ver} | |
46 | BuildRequires: pkgconfig(cairo-ps) >= %{cairo_ver} | |
47 | BuildRequires: pkgconfig(cairo-svg) >= %{cairo_ver} | |
9148ca80 | 48 | %{?with_qt4:BuildRequires: qt4-build} |
21021625 | 49 | BuildRequires: sed >= 4.0 |
9542becb | 50 | BuildRequires: which |
bf5184f7 | 51 | BuildRequires: zlib-devel |
5ee7d9e8 | 52 | Requires: openjpeg >= 1.5 |
9e116569 | 53 | BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) |
54 | ||
55 | %description | |
256ec317 | 56 | A common PDF rendering library for integrating PDF viewing into |
57 | desktop applications (based on the xpdf-3.0 code base). | |
9e116569 | 58 | |
4d968103 JR |
59 | %description -l pl.UTF-8 |
60 | Wspólna biblioteka renderująca PDF do integrowania oglądania PDF w | |
943507a4 JB |
61 | aplikacjach desktopowych (oparta na kodzie xpdf-3.0). |
62 | ||
9e116569 | 63 | %package devel |
943507a4 | 64 | Summary: Poppler header files |
ef9a130a | 65 | Summary(pl.UTF-8): Pliki nagłówkowe biblioteki Poppler |
9e116569 | 66 | Group: Development/Libraries |
67 | Requires: %{name} = %{version}-%{release} | |
d9c2dc15 | 68 | Requires: curl-devel |
d84a04fd | 69 | Requires: fontconfig-devel >= 2.0.0 |
708b49cb | 70 | Requires: freetype-devel >= 2.0 |
aa82c819 | 71 | Requires: lcms2-devel |
d9c2dc15 JB |
72 | Requires: libjpeg-devel |
73 | Requires: libpng-devel | |
708b49cb | 74 | Requires: libstdc++-devel |
d9c2dc15 | 75 | Requires: libtiff-devel |
5ee7d9e8 | 76 | Requires: openjpeg-devel >= 1.5 |
d9c2dc15 | 77 | Requires: zlib-devel |
9e116569 | 78 | |
79 | %description devel | |
943507a4 JB |
80 | Header files for the Poppler library. |
81 | ||
4d968103 JR |
82 | %description devel -l pl.UTF-8 |
83 | Pliki nagłówkowe biblioteki Poppler. | |
9e116569 | 84 | |
85 | %package static | |
86 | Summary: Poppler static libraries | |
ef9a130a | 87 | Summary(pl.UTF-8): Statyczne biblioteki Poppler |
9e116569 | 88 | Group: Development/Libraries |
89 | Requires: %{name}-devel = %{version}-%{release} | |
90 | ||
91 | %description static | |
92 | Poppler static libraries. | |
93 | ||
4d968103 | 94 | %description static -l pl.UTF-8 |
943507a4 JB |
95 | Statyczne biblioteki Poppler. |
96 | ||
356581a6 MB |
97 | %package apidocs |
98 | Summary: Poppler library API documentation | |
99 | Summary(pl.UTF-8): Dokumentacja API biblioteki Poppler | |
100 | Group: Documentation | |
101 | Requires: gtk-doc-common | |
102 | ||
103 | %description apidocs | |
104 | Poppler library API documentation. | |
105 | ||
106 | %description apidocs -l pl.UTF-8 | |
107 | Dokumentacja API biblioteki Poppler. | |
108 | ||
931ab1e2 | 109 | %package cpp |
110 | Summary: Cpp wrapper for poppler | |
111 | Summary(pl.UTF-8): Wrapper cpp dla popplera | |
112 | Group: Libraries | |
113 | Requires: %{name} = %{version}-%{release} | |
114 | ||
115 | %description cpp | |
116 | Cpp wrapper for poppler. | |
117 | ||
118 | %description cpp -l pl.UTF-8 | |
119 | Wrapper cpp dla popplera. | |
120 | ||
121 | %package cpp-devel | |
122 | Summary: Header files for cpp wrapper for poppler | |
123 | Summary(pl.UTF-8): Pliki nagłówkowe wrappera cpp dla popplera | |
124 | Group: Development/Libraries | |
125 | Requires: %{name}-cpp = %{version}-%{release} | |
126 | Requires: %{name}-devel = %{version}-%{release} | |
127 | ||
128 | %description cpp-devel | |
129 | Header files for cpp wrapper for poppler. | |
130 | ||
131 | %description cpp-devel -l pl.UTF-8 | |
132 | Pliki nagłówkowe wrappera cpp dla popplera. | |
133 | ||
134 | %package cpp-static | |
135 | Summary: Static version of cpp wrapper for poppler | |
136 | Summary(pl.UTF-8): Statyczna wersja wrappera cpp dla popplera | |
137 | Group: Development/Libraries | |
138 | Requires: %{name}-cpp-devel = %{version}-%{release} | |
139 | ||
140 | %description cpp-static | |
141 | Static version of cpp wrapper for poppler. | |
142 | ||
143 | %description cpp-static -l pl.UTF-8 | |
144 | Statyczna wersja wrappera cpp dla popplera. | |
145 | ||
c858408d JB |
146 | %package glib |
147 | Summary: GLib wrapper for poppler | |
ef9a130a | 148 | Summary(pl.UTF-8): Wrapper GLib dla popplera |
c858408d JB |
149 | Group: Libraries |
150 | Requires: %{name} = %{version}-%{release} | |
59f6d029 | 151 | %{?with_cairo:Requires: cairo >= %{cairo_ver}} |
d84a04fd | 152 | Requires: glib2 >= 1:2.18.0 |
c858408d JB |
153 | |
154 | %description glib | |
155 | GLib wrapper for poppler. | |
156 | ||
4d968103 | 157 | %description glib -l pl.UTF-8 |
c858408d JB |
158 | Wrapper GLib dla popplera. |
159 | ||
160 | %package glib-devel | |
161 | Summary: Header files for GLib wrapper for poppler | |
ef9a130a | 162 | Summary(pl.UTF-8): Pliki nagłówkowe wrappera GLib dla popplera |
c858408d JB |
163 | Group: Development/Libraries |
164 | Requires: %{name}-devel = %{version}-%{release} | |
165 | Requires: %{name}-glib = %{version}-%{release} | |
59f6d029 | 166 | %{?with_cairo:Requires: cairo-devel >= %{cairo_ver}} |
d84a04fd | 167 | Requires: glib2-devel >= 1:2.18.0 |
c858408d JB |
168 | |
169 | %description glib-devel | |
170 | Header files for GLib wrapper for poppler. | |
171 | ||
4d968103 JR |
172 | %description glib-devel -l pl.UTF-8 |
173 | Pliki nagłówkowe wrappera GLib dla popplera. | |
c858408d JB |
174 | |
175 | %package glib-static | |
176 | Summary: Static version of GLib wrapper for poppler | |
ef9a130a | 177 | Summary(pl.UTF-8): Statyczna wersja wrappera GLib dla popplera |
c858408d JB |
178 | Group: Development/Libraries |
179 | Requires: %{name}-glib-devel = %{version}-%{release} | |
180 | ||
181 | %description glib-static | |
182 | Static version of GLib wrapper for poppler. | |
183 | ||
4d968103 | 184 | %description glib-static -l pl.UTF-8 |
c858408d JB |
185 | Statyczna wersja wrappera GLib dla popplera. |
186 | ||
3ed2c139 PS |
187 | %package Qt |
188 | Summary: Qt4 wrapper for poppler | |
ef9a130a | 189 | Summary(pl.UTF-8): Wrapper Qt4 dla popplera |
3ed2c139 PS |
190 | Group: Libraries |
191 | Requires: %{name} = %{version}-%{release} | |
d84a04fd JB |
192 | Requires: QtGui >= 4.4.0 |
193 | Requires: QtXml >= 4.4.0 | |
d9c2dc15 | 194 | Obsoletes: poppler-qt |
3ed2c139 PS |
195 | |
196 | %description Qt | |
197 | Qt4 wrapper for poppler. | |
198 | ||
4d968103 | 199 | %description Qt -l pl.UTF-8 |
3ed2c139 PS |
200 | Wrapper Qt4 dla popplera. |
201 | ||
202 | %package Qt-devel | |
203 | Summary: Header files for Qt4 wrapper for poppler | |
ef9a130a | 204 | Summary(pl.UTF-8): Pliki nagłówkowe wrappera Qt4 dla popplera |
3ed2c139 | 205 | Group: Development/Libraries |
3ed2c139 | 206 | Requires: %{name}-Qt = %{version}-%{release} |
9148ca80 | 207 | Requires: %{name}-devel = %{version}-%{release} |
d84a04fd JB |
208 | Requires: QtGui-devel >= 4.4.0 |
209 | Requires: QtXml-devel >= 4.4.0 | |
d9c2dc15 | 210 | Obsoletes: poppler-qt-devel |
3ed2c139 PS |
211 | |
212 | %description Qt-devel | |
213 | Header files for Qt4 wrapper for poppler. | |
214 | ||
4d968103 JR |
215 | %description Qt-devel -l pl.UTF-8 |
216 | Pliki nagłówkowe wrapper Qt4 dla popplera. | |
3ed2c139 PS |
217 | |
218 | %package Qt-static | |
219 | Summary: Static version of Qt4 wrapper for poppler | |
ef9a130a | 220 | Summary(pl.UTF-8): Statyczna wersja wrappera Qt4 dla popplera |
3ed2c139 PS |
221 | Group: Development/Libraries |
222 | Requires: %{name}-Qt-devel = %{version}-%{release} | |
d9c2dc15 | 223 | Obsoletes: poppler-qt-static |
3ed2c139 PS |
224 | |
225 | %description Qt-static | |
226 | Static version of Qt4 wrapper for poppler. | |
227 | ||
4d968103 | 228 | %description Qt-static -l pl.UTF-8 |
3ed2c139 PS |
229 | Statyczna wersja wrappera Qt4 dla popplera. |
230 | ||
3085c5f7 | 231 | %package progs |
6d515f80 | 232 | Summary: Set of tools for viewing information and converting PDF files |
ef9a130a | 233 | Summary(pl.UTF-8): Zestaw narzędzi do wyświetlania informacji i konwertowania plików PDF |
6d515f80 | 234 | Group: Applications/Publishing |
6d515f80 | 235 | Provides: pdftops |
236 | Obsoletes: pdftohtml | |
237 | Obsoletes: pdftohtml-pdftops | |
5ba7dac4 | 238 | Obsoletes: poppler-utils |
9148ca80 | 239 | Obsoletes: xpdf-tools |
6d515f80 | 240 | |
3085c5f7 | 241 | %description progs |
4be74f1d | 242 | Package contains utilites for PDF files. These utilities allow to |
bd2cd4db TP |
243 | - extract information about PDF files, |
244 | - extract images from PDF files, | |
245 | - convert PDF files to HTML, plain text and PS formats. | |
6d515f80 | 246 | |
4d968103 | 247 | %description progs -l pl.UTF-8 |
9117833e | 248 | Pakiet zawiera zestaw narzędzi do plików PDF. Programy te umożliwiają |
bd2cd4db TP |
249 | - wyświetlanie informacji o plikach PDF, |
250 | - wydobywanie obrazków z plików PDF, | |
2ddaee26 | 251 | - konwersję plików PDF do formatów takich jak HTML, PS czy też |
bd2cd4db | 252 | czystego tekstu. |
6d515f80 | 253 | |
9e116569 | 254 | %prep |
255 | %setup -q | |
59f6d029 | 256 | |
9e116569 | 257 | %build |
13fe12a3 | 258 | %{?with_apidocs:%{__gtkdocize}} |
7e0143fb | 259 | %{__libtoolize} |
6d515f80 | 260 | %{__aclocal} -I m4 |
b9e0e47d | 261 | %{__autoconf} -f |
7e0143fb JB |
262 | %{__autoheader} |
263 | %{__automake} | |
943507a4 | 264 | %configure \ |
c1800e6e | 265 | MOCQT4=/usr/bin/moc-qt4 \ |
5b64d6c1 | 266 | --disable-gtk-test \ |
bd2cd4db TP |
267 | --enable-libcurl \ |
268 | %{?with_apidocs:--enable-gtk-doc} \ | |
7e0143fb | 269 | %{!?with_cairo:--disable-cairo-output} \ |
931ab1e2 | 270 | %{!?with_cpp:--disable-poppler-cpp} \ |
cfe3ca2f | 271 | %{!?with_glib:--disable-poppler-glib} \ |
bd2cd4db | 272 | %{!?with_qt4:--disable-poppler-qt4} \ |
d84a04fd | 273 | --disable-silent-rules \ |
30316221 | 274 | --enable-xpdf-headers \ |
bf5184f7 | 275 | --enable-zlib \ |
8d5d1be9 | 276 | --enable-dependency-tracking \ |
5d1986fc | 277 | --with-html-dir=%{_gtkdocdir} |
9148ca80 | 278 | |
9e116569 | 279 | %{__make} |
280 | ||
281 | %install | |
282 | rm -rf $RPM_BUILD_ROOT | |
283 | ||
284 | %{__make} install \ | |
285 | DESTDIR=$RPM_BUILD_ROOT | |
286 | ||
9148ca80 ER |
287 | %if %{without apidocs} |
288 | # why it still installs them, brr | |
fb471923 | 289 | %{__rm} -rf $RPM_BUILD_ROOT%{_gtkdocdir}/poppler || : |
9148ca80 ER |
290 | %endif |
291 | ||
797490cf AF |
292 | %{__rm} $RPM_BUILD_ROOT%{_libdir}/*.la |
293 | ||
9e116569 | 294 | %clean |
295 | rm -rf $RPM_BUILD_ROOT | |
296 | ||
943507a4 JB |
297 | %post -p /sbin/ldconfig |
298 | %postun -p /sbin/ldconfig | |
9e116569 | 299 | |
d84a04fd JB |
300 | %post cpp -p /sbin/ldconfig |
301 | %postun cpp -p /sbin/ldconfig | |
302 | ||
c858408d JB |
303 | %post glib -p /sbin/ldconfig |
304 | %postun glib -p /sbin/ldconfig | |
305 | ||
dff19bfc PS |
306 | %post Qt -p /sbin/ldconfig |
307 | %postun Qt -p /sbin/ldconfig | |
308 | ||
9e116569 | 309 | %files |
310 | %defattr(644,root,root,755) | |
311 | %doc AUTHORS ChangeLog NEWS README* TODO | |
c858408d | 312 | %attr(755,root,root) %{_libdir}/libpoppler.so.*.*.* |
bdc13fa5 | 313 | %attr(755,root,root) %ghost %{_libdir}/libpoppler.so.37 |
9e116569 | 314 | |
315 | %files devel | |
316 | %defattr(644,root,root,755) | |
c858408d | 317 | %attr(755,root,root) %{_libdir}/libpoppler.so |
9e1eea06 JB |
318 | %dir %{_includedir}/poppler |
319 | %{_includedir}/poppler/poppler-config.h | |
35d1caed | 320 | %{_includedir}/poppler/[ABCDEFGHJLMNOPRSTUVX]*.h |
40c95880 | 321 | %{_includedir}/poppler/fofi |
d84a04fd | 322 | %{_includedir}/poppler/goo |
9e1eea06 | 323 | %{_includedir}/poppler/splash |
c858408d JB |
324 | %{_pkgconfigdir}/poppler.pc |
325 | %{?with_cairo:%{_pkgconfigdir}/poppler-cairo.pc} | |
326 | %{_pkgconfigdir}/poppler-splash.pc | |
9e116569 | 327 | |
328 | %files static | |
329 | %defattr(644,root,root,755) | |
c858408d JB |
330 | %{_libdir}/libpoppler.a |
331 | ||
356581a6 MB |
332 | %if %{with apidocs} |
333 | %files apidocs | |
334 | %defattr(644,root,root,755) | |
335 | %{_gtkdocdir}/poppler | |
336 | %endif | |
337 | ||
cfe3ca2f | 338 | %if %{with cpp} |
931ab1e2 | 339 | %files cpp |
340 | %defattr(644,root,root,755) | |
341 | %attr(755,root,root) %{_libdir}/libpoppler-cpp.so.*.*.* | |
342 | %attr(755,root,root) %ghost %{_libdir}/libpoppler-cpp.so.0 | |
343 | ||
344 | %files cpp-devel | |
345 | %defattr(644,root,root,755) | |
346 | %attr(755,root,root) %{_libdir}/libpoppler-cpp.so | |
931ab1e2 | 347 | %{_includedir}/poppler/cpp |
348 | %{_pkgconfigdir}/poppler-cpp.pc | |
349 | ||
350 | %files cpp-static | |
351 | %defattr(644,root,root,755) | |
352 | %{_libdir}/libpoppler-cpp.a | |
cfe3ca2f | 353 | %endif |
931ab1e2 | 354 | |
cfe3ca2f | 355 | %if %{with glib} |
c858408d JB |
356 | %files glib |
357 | %defattr(644,root,root,755) | |
358 | %attr(755,root,root) %{_libdir}/libpoppler-glib.so.*.*.* | |
35d1caed AM |
359 | %attr(755,root,root) %ghost %{_libdir}/libpoppler-glib.so.8 |
360 | %{_libdir}/girepository-1.0/Poppler-0.18.typelib | |
c858408d JB |
361 | |
362 | %files glib-devel | |
363 | %defattr(644,root,root,755) | |
364 | %attr(755,root,root) %{_libdir}/libpoppler-glib.so | |
c858408d JB |
365 | %{_includedir}/poppler/glib |
366 | %{_pkgconfigdir}/poppler-glib.pc | |
35d1caed | 367 | %{_datadir}/gir-1.0/Poppler-0.18.gir |
c858408d JB |
368 | |
369 | %files glib-static | |
370 | %defattr(644,root,root,755) | |
371 | %{_libdir}/libpoppler-glib.a | |
cfe3ca2f | 372 | %endif |
c858408d | 373 | |
3ed2c139 PS |
374 | %if %{with qt4} |
375 | %files Qt | |
376 | %defattr(644,root,root,755) | |
377 | %attr(755,root,root) %{_libdir}/libpoppler-qt4.so.*.*.* | |
aa82c819 | 378 | %attr(755,root,root) %ghost %{_libdir}/libpoppler-qt4.so.4 |
3ed2c139 PS |
379 | |
380 | %files Qt-devel | |
381 | %defattr(644,root,root,755) | |
382 | %attr(755,root,root) %{_libdir}/libpoppler-qt4.so | |
9e1eea06 | 383 | %{_includedir}/poppler/qt4 |
3ed2c139 PS |
384 | %{_pkgconfigdir}/poppler-qt4.pc |
385 | ||
386 | %files Qt-static | |
387 | %defattr(644,root,root,755) | |
388 | %{_libdir}/libpoppler-qt4.a | |
389 | %endif | |
390 | ||
3085c5f7 | 391 | %files progs |
6d515f80 | 392 | %defattr(644,root,root,755) |
393 | %attr(755,root,root) %{_bindir}/pdf* | |
394 | %{_mandir}/man1/pdf* |