3 %bcond_without apidocs # disable gtk-doc
4 %bcond_without cairo # disable Cairo backend
5 %bcond_without qt4 # disable qt4 wrapper
6 %bcond_without qt5 # disable qt5 wrapper
7 %bcond_without cpp # disable cpp wrapper
8 %bcond_without glib # disable glib wrapper
10 %define cairo_ver 1.10.0
11 Summary: PDF rendering library
12 Summary(pl.UTF-8): Biblioteka renderująca PDF
18 Source0: http://poppler.freedesktop.org/%{name}-%{version}.tar.xz
19 # Source0-md5: 3e864e1e94fc8432e90afe9bab1a5603
20 Patch0: %{name}-qt5.patch
21 URL: http://poppler.freedesktop.org/
22 %{?with_qt5:BuildRequires: Qt5Core-devel >= 5.0.0}
23 %{?with_qt5:BuildRequires: Qt5Gui-devel >= 5.0.0}
24 %{?with_qt5:BuildRequires: Qt5Test-devel >= 5.0.0}
25 %{?with_qt5:BuildRequires: Qt5Widgets-devel >= 5.0.0}
26 %{?with_qt5:BuildRequires: Qt5Xml-devel >= 5.0.0}
27 %{?with_qt4:BuildRequires: QtCore-devel >= 4.4.0}
28 %{?with_qt4:BuildRequires: QtGui-devel >= 4.4.0}
29 %{?with_qt4:BuildRequires: QtTest-devel >= 4.4.0}
30 %{?with_qt4:BuildRequires: QtXml-devel >= 4.4.0}
31 BuildRequires: autoconf >= 2.59
32 BuildRequires: automake
33 %{?with_cairo:BuildRequires: cairo-devel >= %{cairo_ver}}
34 BuildRequires: curl-devel
35 BuildRequires: docbook-dtd412-xml
36 BuildRequires: fontconfig-devel >= 2.0.0
37 BuildRequires: freetype-devel >= 2.0
38 BuildRequires: gettext-devel
39 %{?with_glib:BuildRequires: glib2-devel >= 1:2.18.0}
40 BuildRequires: gobject-introspection-devel >= 0.6.7
41 %{?with_apidocs:BuildRequires: gtk-doc >= 1.14}
42 BuildRequires: lcms2-devel
43 BuildRequires: libjpeg-devel
44 BuildRequires: libpng-devel
45 BuildRequires: libstdc++-devel
46 BuildRequires: libtiff-devel
47 BuildRequires: libtool >= 2:1.5
48 BuildRequires: libxml2-devel >= 2.0
49 BuildRequires: openjpeg-devel >= 1.5
50 BuildRequires: pkgconfig >= 1:0.18
51 # wanted cairo backends
52 BuildRequires: pkgconfig(cairo-pdf) >= %{cairo_ver}
53 BuildRequires: pkgconfig(cairo-ps) >= %{cairo_ver}
54 BuildRequires: pkgconfig(cairo-svg) >= %{cairo_ver}
55 %{?with_qt4:BuildRequires: qt4-build >= 4.4.0}
56 %{?with_qt5:BuildRequires: qt5-build >= 5.0.0}
57 BuildRequires: sed >= 4.0
58 BuildRequires: tar >= 1:1.22
61 BuildRequires: zlib-devel
62 Requires: openjpeg >= 1.5
63 BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
66 A common PDF rendering library for integrating PDF viewing into
67 desktop applications (based on the xpdf-3.0 code base).
69 %description -l pl.UTF-8
70 Wspólna biblioteka renderująca PDF do integrowania oglądania PDF w
71 aplikacjach desktopowych (oparta na kodzie xpdf-3.0).
74 Summary: Poppler header files
75 Summary(pl.UTF-8): Pliki nagłówkowe biblioteki Poppler
76 Group: Development/Libraries
77 Requires: %{name} = %{version}-%{release}
79 Requires: fontconfig-devel >= 2.0.0
80 Requires: freetype-devel >= 2.0
82 Requires: libjpeg-devel
83 Requires: libpng-devel
84 Requires: libstdc++-devel
85 Requires: libtiff-devel
86 Requires: openjpeg-devel >= 1.5
90 Header files for the Poppler library.
92 %description devel -l pl.UTF-8
93 Pliki nagłówkowe biblioteki Poppler.
96 Summary: Poppler static libraries
97 Summary(pl.UTF-8): Statyczne biblioteki Poppler
98 Group: Development/Libraries
99 Requires: %{name}-devel = %{version}-%{release}
102 Poppler static libraries.
104 %description static -l pl.UTF-8
105 Statyczne biblioteki Poppler.
108 Summary: Poppler library API documentation
109 Summary(pl.UTF-8): Dokumentacja API biblioteki Poppler
111 Requires: gtk-doc-common
112 %if "%{_rpmversion}" >= "5"
117 Poppler library API documentation.
119 %description apidocs -l pl.UTF-8
120 Dokumentacja API biblioteki Poppler.
123 Summary: Cpp wrapper for poppler
124 Summary(pl.UTF-8): Wrapper cpp dla popplera
126 Requires: %{name} = %{version}-%{release}
129 Cpp wrapper for poppler.
131 %description cpp -l pl.UTF-8
132 Wrapper cpp dla popplera.
135 Summary: Header files for cpp wrapper for poppler
136 Summary(pl.UTF-8): Pliki nagłówkowe wrappera cpp dla popplera
137 Group: Development/Libraries
138 Requires: %{name}-cpp = %{version}-%{release}
139 Requires: %{name}-devel = %{version}-%{release}
141 %description cpp-devel
142 Header files for cpp wrapper for poppler.
144 %description cpp-devel -l pl.UTF-8
145 Pliki nagłówkowe wrappera cpp dla popplera.
148 Summary: Static version of cpp wrapper for poppler
149 Summary(pl.UTF-8): Statyczna wersja wrappera cpp dla popplera
150 Group: Development/Libraries
151 Requires: %{name}-cpp-devel = %{version}-%{release}
153 %description cpp-static
154 Static version of cpp wrapper for poppler.
156 %description cpp-static -l pl.UTF-8
157 Statyczna wersja wrappera cpp dla popplera.
160 Summary: GLib wrapper for poppler
161 Summary(pl.UTF-8): Wrapper GLib dla popplera
163 Requires: %{name} = %{version}-%{release}
164 %{?with_cairo:Requires: cairo >= %{cairo_ver}}
165 Requires: glib2 >= 1:2.18.0
168 GLib wrapper for poppler.
170 %description glib -l pl.UTF-8
171 Wrapper GLib dla popplera.
174 Summary: Header files for GLib wrapper for poppler
175 Summary(pl.UTF-8): Pliki nagłówkowe wrappera GLib dla popplera
176 Group: Development/Libraries
177 Requires: %{name}-devel = %{version}-%{release}
178 Requires: %{name}-glib = %{version}-%{release}
179 %{?with_cairo:Requires: cairo-devel >= %{cairo_ver}}
180 Requires: glib2-devel >= 1:2.18.0
182 %description glib-devel
183 Header files for GLib wrapper for poppler.
185 %description glib-devel -l pl.UTF-8
186 Pliki nagłówkowe wrappera GLib dla popplera.
189 Summary: Static version of GLib wrapper for poppler
190 Summary(pl.UTF-8): Statyczna wersja wrappera GLib dla popplera
191 Group: Development/Libraries
192 Requires: %{name}-glib-devel = %{version}-%{release}
194 %description glib-static
195 Static version of GLib wrapper for poppler.
197 %description glib-static -l pl.UTF-8
198 Statyczna wersja wrappera GLib dla popplera.
201 Summary: Qt4 wrapper for poppler
202 Summary(pl.UTF-8): Wrapper Qt4 dla popplera
204 Requires: %{name} = %{version}-%{release}
205 Requires: QtCore >= 4.4.0
206 Requires: QtGui >= 4.4.0
207 Requires: QtXml >= 4.4.0
208 Provides: poppler-Qt = %{version}-%{release}
209 Obsoletes: poppler-Qt < 0.24.4-2
210 Obsoletes: poppler-qt
213 Qt4 wrapper for poppler.
215 %description qt4 -l pl.UTF-8
216 Wrapper Qt4 dla popplera.
219 Summary: Header files for Qt4 wrapper for poppler
220 Summary(pl.UTF-8): Pliki nagłówkowe wrappera Qt4 dla popplera
221 Group: Development/Libraries
222 Requires: %{name}-devel = %{version}-%{release}
223 Requires: %{name}-qt4 = %{version}-%{release}
224 Requires: QtCore-devel >= 4.4.0
225 Requires: QtGui-devel >= 4.4.0
226 Requires: QtXml-devel >= 4.4.0
227 Provides: poppler-Qt-devel = %{version}-%{release}
228 Obsoletes: poppler-Qt-devel < 0.24.4-2
229 Obsoletes: poppler-qt-devel
231 %description qt4-devel
232 Header files for Qt4 wrapper for poppler.
234 %description qt4-devel -l pl.UTF-8
235 Pliki nagłówkowe wrapper Qt4 dla popplera.
238 Summary: Static version of Qt4 wrapper for poppler
239 Summary(pl.UTF-8): Statyczna wersja wrappera Qt4 dla popplera
240 Group: Development/Libraries
241 Requires: %{name}-qt4-devel = %{version}-%{release}
242 Provides: poppler-Qt-static = %{version}-%{release}
243 Obsoletes: poppler-Qt-static < 0.24.4-2
244 Obsoletes: poppler-qt-static
246 %description qt4-static
247 Static version of Qt4 wrapper for poppler.
249 %description qt4-static -l pl.UTF-8
250 Statyczna wersja wrappera Qt4 dla popplera.
253 Summary: Qt5 wrapper for poppler
254 Summary(pl.UTF-8): Wrapper Qt5 dla popplera
256 Requires: %{name} = %{version}-%{release}
259 Qt5 wrapper for poppler.
261 %description qt5 -l pl.UTF-8
262 Wrapper Qt5 dla popplera.
265 Summary: Header files for Qt5 wrapper for poppler
266 Summary(pl.UTF-8): Pliki nagłówkowe wrappera Qt5 dla popplera
267 Group: Development/Libraries
268 Requires: %{name}-devel = %{version}-%{release}
269 Requires: %{name}-qt5 = %{version}-%{release}
270 Requires: Qt5Core-devel >= 5.0.0
271 Requires: Qt5Gui-devel >= 5.0.0
272 Requires: Qt5Widgets-devel >= 5.0.0
273 Requires: Qt5Xml-devel >= 5.0.0
275 %description qt5-devel
276 Header files for Qt5 wrapper for poppler.
278 %description qt5-devel -l pl.UTF-8
279 Pliki nagłówkowe wrapper Qt5 dla popplera.
282 Summary: Static version of Qt5 wrapper for poppler
283 Summary(pl.UTF-8): Statyczna wersja wrappera Qt5 dla popplera
284 Group: Development/Libraries
285 Requires: %{name}-qt5-devel = %{version}-%{release}
287 %description qt5-static
288 Static version of Qt5 wrapper for poppler.
290 %description qt5-static -l pl.UTF-8
291 Statyczna wersja wrappera Qt5 dla popplera.
294 Summary: Set of tools for viewing information and converting PDF files
295 Summary(pl.UTF-8): Zestaw narzędzi do wyświetlania informacji i konwertowania plików PDF
296 Group: Applications/Publishing
299 Obsoletes: pdftohtml-pdftops
300 Obsoletes: poppler-utils
301 Obsoletes: xpdf-tools
304 Package contains utilites for PDF files. These utilities allow to
305 - extract information about PDF files,
306 - extract images from PDF files,
307 - convert PDF files to HTML, plain text and PS formats.
309 %description progs -l pl.UTF-8
310 Pakiet zawiera zestaw narzędzi do plików PDF. Programy te umożliwiają
311 - wyświetlanie informacji o plikach PDF,
312 - wydobywanie obrazków z plików PDF,
313 - konwersję plików PDF do formatów takich jak HTML, PS czy też
321 %{?with_apidocs:%{__gtkdocize}}
328 MOCQT4=/usr/bin/moc-qt4 \
329 MOCQT5=/usr/bin/moc-qt5 \
332 %{?with_apidocs:--enable-gtk-doc} \
333 %{!?with_cairo:--disable-cairo-output} \
334 %{!?with_cpp:--disable-poppler-cpp} \
335 %{!?with_glib:--disable-poppler-glib} \
336 %{!?with_qt4:--disable-poppler-qt4} \
337 %{!?with_qt5:--disable-poppler-qt5} \
338 --disable-silent-rules \
339 --enable-xpdf-headers \
341 --enable-dependency-tracking \
342 --with-html-dir=%{_gtkdocdir}
347 rm -rf $RPM_BUILD_ROOT
350 DESTDIR=$RPM_BUILD_ROOT
352 %if %{without apidocs}
353 # why it still installs them, brr
354 %{__rm} -rf $RPM_BUILD_ROOT%{_gtkdocdir}/poppler || :
357 %{__rm} $RPM_BUILD_ROOT%{_libdir}/*.la
360 rm -rf $RPM_BUILD_ROOT
362 %post -p /sbin/ldconfig
363 %postun -p /sbin/ldconfig
365 %post cpp -p /sbin/ldconfig
366 %postun cpp -p /sbin/ldconfig
368 %post glib -p /sbin/ldconfig
369 %postun glib -p /sbin/ldconfig
371 %post qt4 -p /sbin/ldconfig
372 %postun qt4 -p /sbin/ldconfig
374 %post qt5 -p /sbin/ldconfig
375 %postun qt5 -p /sbin/ldconfig
378 %defattr(644,root,root,755)
379 %doc AUTHORS ChangeLog NEWS README* TODO
380 %attr(755,root,root) %{_libdir}/libpoppler.so.*.*.*
381 %attr(755,root,root) %ghost %{_libdir}/libpoppler.so.46
384 %defattr(644,root,root,755)
385 %attr(755,root,root) %{_libdir}/libpoppler.so
386 %dir %{_includedir}/poppler
387 %{_includedir}/poppler/poppler-config.h
388 %{_includedir}/poppler/[ABCDEFGHJLMNOPRSTUVX]*.h
389 %{_includedir}/poppler/fofi
390 %{_includedir}/poppler/goo
391 %{_includedir}/poppler/splash
392 %{_pkgconfigdir}/poppler.pc
393 %{?with_cairo:%{_pkgconfigdir}/poppler-cairo.pc}
394 %{_pkgconfigdir}/poppler-splash.pc
397 %defattr(644,root,root,755)
398 %{_libdir}/libpoppler.a
402 %defattr(644,root,root,755)
403 %{_gtkdocdir}/poppler
408 %defattr(644,root,root,755)
409 %attr(755,root,root) %{_libdir}/libpoppler-cpp.so.*.*.*
410 %attr(755,root,root) %ghost %{_libdir}/libpoppler-cpp.so.0
413 %defattr(644,root,root,755)
414 %attr(755,root,root) %{_libdir}/libpoppler-cpp.so
415 %{_includedir}/poppler/cpp
416 %{_pkgconfigdir}/poppler-cpp.pc
419 %defattr(644,root,root,755)
420 %{_libdir}/libpoppler-cpp.a
425 %defattr(644,root,root,755)
426 %attr(755,root,root) %{_libdir}/libpoppler-glib.so.*.*.*
427 %attr(755,root,root) %ghost %{_libdir}/libpoppler-glib.so.8
428 %{_libdir}/girepository-1.0/Poppler-0.18.typelib
431 %defattr(644,root,root,755)
432 %attr(755,root,root) %{_libdir}/libpoppler-glib.so
433 %{_includedir}/poppler/glib
434 %{_pkgconfigdir}/poppler-glib.pc
435 %{_datadir}/gir-1.0/Poppler-0.18.gir
438 %defattr(644,root,root,755)
439 %{_libdir}/libpoppler-glib.a
444 %defattr(644,root,root,755)
445 %attr(755,root,root) %{_libdir}/libpoppler-qt4.so.*.*.*
446 %attr(755,root,root) %ghost %{_libdir}/libpoppler-qt4.so.4
449 %defattr(644,root,root,755)
450 %attr(755,root,root) %{_libdir}/libpoppler-qt4.so
451 %{_includedir}/poppler/qt4
452 %{_pkgconfigdir}/poppler-qt4.pc
455 %defattr(644,root,root,755)
456 %{_libdir}/libpoppler-qt4.a
461 %defattr(644,root,root,755)
462 %attr(755,root,root) %{_libdir}/libpoppler-qt5.so.*.*.*
463 %attr(755,root,root) %ghost %{_libdir}/libpoppler-qt5.so.1
466 %defattr(644,root,root,755)
467 %attr(755,root,root) %{_libdir}/libpoppler-qt5.so
468 %{_includedir}/poppler/qt5
469 %{_pkgconfigdir}/poppler-qt5.pc
472 %defattr(644,root,root,755)
473 %{_libdir}/libpoppler-qt5.a
477 %defattr(644,root,root,755)
478 %attr(755,root,root) %{_bindir}/pdf*