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
12 Summary: PDF rendering library
13 Summary(pl.UTF-8): Biblioteka renderująca PDF
19 Source0: http://poppler.freedesktop.org/%{name}-%{version}.tar.xz
20 # Source0-md5: 2da22b966cf7a2f8da5bf021e68188ce
21 Patch0: %{name}-qt5.patch
22 URL: http://poppler.freedesktop.org/
23 %{?with_qt4:BuildRequires: QtCore-devel >= 4.4.0}
24 %{?with_qt4:BuildRequires: QtGui-devel >= 4.4.0}
25 %{?with_qt4:BuildRequires: QtTest-devel >= 4.4.0}
26 %{?with_qt4:BuildRequires: QtXml-devel >= 4.4.0}
27 %{?with_qt5:BuildRequires: Qt5Core-devel >= 5.0.0}
28 %{?with_qt5:BuildRequires: Qt5Gui-devel >= 5.0.0}
29 %{?with_qt5:BuildRequires: Qt5Test-devel >= 5.0.0}
30 %{?with_qt5:BuildRequires: Qt5Widgets-devel >= 5.0.0}
31 %{?with_qt5:BuildRequires: Qt5Xml-devel >= 5.0.0}
32 BuildRequires: autoconf >= 2.59
33 BuildRequires: automake
34 %{?with_cairo:BuildRequires: cairo-devel >= %{cairo_ver}}
35 BuildRequires: curl-devel
36 BuildRequires: docbook-dtd412-xml
37 BuildRequires: fontconfig-devel >= 2.0.0
38 BuildRequires: freetype-devel >= 2.0
39 BuildRequires: gettext-devel
40 %{?with_glib:BuildRequires: glib2-devel >= 1:2.18.0}
41 BuildRequires: gobject-introspection-devel >= 0.6.7
42 %{?with_apidocs:BuildRequires: gtk-doc >= 1.14}
43 BuildRequires: lcms2-devel
44 BuildRequires: libjpeg-devel
45 BuildRequires: libpng-devel
46 BuildRequires: libstdc++-devel
47 BuildRequires: libtiff-devel
48 BuildRequires: libtool >= 2:1.5
49 BuildRequires: libxml2-devel >= 2.0
50 BuildRequires: openjpeg-devel >= 1.5
51 BuildRequires: pkgconfig >= 1:0.18
52 # wanted cairo backends
53 BuildRequires: pkgconfig(cairo-pdf) >= %{cairo_ver}
54 BuildRequires: pkgconfig(cairo-ps) >= %{cairo_ver}
55 BuildRequires: pkgconfig(cairo-svg) >= %{cairo_ver}
56 %{?with_qt4:BuildRequires: qt4-build >= 4.4.0}
57 %{?with_qt5:BuildRequires: qt5-build >= 5.0.0}
58 BuildRequires: sed >= 4.0
60 BuildRequires: tar >= 1:1.22
62 BuildRequires: zlib-devel
63 Requires: openjpeg >= 1.5
64 BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
67 A common PDF rendering library for integrating PDF viewing into
68 desktop applications (based on the xpdf-3.0 code base).
70 %description -l pl.UTF-8
71 Wspólna biblioteka renderująca PDF do integrowania oglądania PDF w
72 aplikacjach desktopowych (oparta na kodzie xpdf-3.0).
75 Summary: Poppler header files
76 Summary(pl.UTF-8): Pliki nagłówkowe biblioteki Poppler
77 Group: Development/Libraries
78 Requires: %{name} = %{version}-%{release}
80 Requires: fontconfig-devel >= 2.0.0
81 Requires: freetype-devel >= 2.0
83 Requires: libjpeg-devel
84 Requires: libpng-devel
85 Requires: libstdc++-devel
86 Requires: libtiff-devel
87 Requires: openjpeg-devel >= 1.5
91 Header files for the Poppler library.
93 %description devel -l pl.UTF-8
94 Pliki nagłówkowe biblioteki Poppler.
97 Summary: Poppler static libraries
98 Summary(pl.UTF-8): Statyczne biblioteki Poppler
99 Group: Development/Libraries
100 Requires: %{name}-devel = %{version}-%{release}
103 Poppler static libraries.
105 %description static -l pl.UTF-8
106 Statyczne biblioteki Poppler.
109 Summary: Poppler library API documentation
110 Summary(pl.UTF-8): Dokumentacja API biblioteki Poppler
112 Requires: gtk-doc-common
115 Poppler library API documentation.
117 %description apidocs -l pl.UTF-8
118 Dokumentacja API biblioteki Poppler.
121 Summary: Cpp wrapper for poppler
122 Summary(pl.UTF-8): Wrapper cpp dla popplera
124 Requires: %{name} = %{version}-%{release}
127 Cpp wrapper for poppler.
129 %description cpp -l pl.UTF-8
130 Wrapper cpp dla popplera.
133 Summary: Header files for cpp wrapper for poppler
134 Summary(pl.UTF-8): Pliki nagłówkowe wrappera cpp dla popplera
135 Group: Development/Libraries
136 Requires: %{name}-cpp = %{version}-%{release}
137 Requires: %{name}-devel = %{version}-%{release}
139 %description cpp-devel
140 Header files for cpp wrapper for poppler.
142 %description cpp-devel -l pl.UTF-8
143 Pliki nagłówkowe wrappera cpp dla popplera.
146 Summary: Static version of cpp wrapper for poppler
147 Summary(pl.UTF-8): Statyczna wersja wrappera cpp dla popplera
148 Group: Development/Libraries
149 Requires: %{name}-cpp-devel = %{version}-%{release}
151 %description cpp-static
152 Static version of cpp wrapper for poppler.
154 %description cpp-static -l pl.UTF-8
155 Statyczna wersja wrappera cpp dla popplera.
158 Summary: GLib wrapper for poppler
159 Summary(pl.UTF-8): Wrapper GLib dla popplera
161 Requires: %{name} = %{version}-%{release}
162 %{?with_cairo:Requires: cairo >= %{cairo_ver}}
163 Requires: glib2 >= 1:2.18.0
166 GLib wrapper for poppler.
168 %description glib -l pl.UTF-8
169 Wrapper GLib dla popplera.
172 Summary: Header files for GLib wrapper for poppler
173 Summary(pl.UTF-8): Pliki nagłówkowe wrappera GLib dla popplera
174 Group: Development/Libraries
175 Requires: %{name}-devel = %{version}-%{release}
176 Requires: %{name}-glib = %{version}-%{release}
177 %{?with_cairo:Requires: cairo-devel >= %{cairo_ver}}
178 Requires: glib2-devel >= 1:2.18.0
180 %description glib-devel
181 Header files for GLib wrapper for poppler.
183 %description glib-devel -l pl.UTF-8
184 Pliki nagłówkowe wrappera GLib dla popplera.
187 Summary: Static version of GLib wrapper for poppler
188 Summary(pl.UTF-8): Statyczna wersja wrappera GLib dla popplera
189 Group: Development/Libraries
190 Requires: %{name}-glib-devel = %{version}-%{release}
192 %description glib-static
193 Static version of GLib wrapper for poppler.
195 %description glib-static -l pl.UTF-8
196 Statyczna wersja wrappera GLib dla popplera.
199 Summary: Qt4 wrapper for poppler
200 Summary(pl.UTF-8): Wrapper Qt4 dla popplera
202 Requires: %{name} = %{version}-%{release}
203 Requires: QtCore >= 4.4.0
204 Requires: QtGui >= 4.4.0
205 Requires: QtXml >= 4.4.0
206 Provides: poppler-Qt = %{version}-%{release}
207 Obsoletes: poppler-Qt < 0.24.4-2
208 Obsoletes: poppler-qt
211 Qt4 wrapper for poppler.
213 %description qt4 -l pl.UTF-8
214 Wrapper Qt4 dla popplera.
217 Summary: Header files for Qt4 wrapper for poppler
218 Summary(pl.UTF-8): Pliki nagłówkowe wrappera Qt4 dla popplera
219 Group: Development/Libraries
220 Requires: %{name}-qt4 = %{version}-%{release}
221 Requires: %{name}-devel = %{version}-%{release}
222 Requires: QtCore-devel >= 4.4.0
223 Requires: QtGui-devel >= 4.4.0
224 Requires: QtXml-devel >= 4.4.0
225 Provides: poppler-Qt-devel = %{version}-%{release}
226 Obsoletes: poppler-Qt-devel < 0.24.4-2
227 Obsoletes: poppler-qt-devel
229 %description qt4-devel
230 Header files for Qt4 wrapper for poppler.
232 %description qt4-devel -l pl.UTF-8
233 Pliki nagłówkowe wrapper Qt4 dla popplera.
236 Summary: Static version of Qt4 wrapper for poppler
237 Summary(pl.UTF-8): Statyczna wersja wrappera Qt4 dla popplera
238 Group: Development/Libraries
239 Requires: %{name}-qt4-devel = %{version}-%{release}
240 Provides: poppler-Qt-static = %{version}-%{release}
241 Obsoletes: poppler-Qt-static < 0.24.4-2
242 Obsoletes: poppler-qt-static
244 %description qt4-static
245 Static version of Qt4 wrapper for poppler.
247 %description qt4-static -l pl.UTF-8
248 Statyczna wersja wrappera Qt4 dla popplera.
251 Summary: Qt5 wrapper for poppler
252 Summary(pl.UTF-8): Wrapper Qt5 dla popplera
254 Requires: %{name} = %{version}-%{release}
257 Qt5 wrapper for poppler.
259 %description qt5 -l pl.UTF-8
260 Wrapper Qt5 dla popplera.
263 Summary: Header files for Qt5 wrapper for poppler
264 Summary(pl.UTF-8): Pliki nagłówkowe wrappera Qt5 dla popplera
265 Group: Development/Libraries
266 Requires: %{name}-qt5 = %{version}-%{release}
267 Requires: %{name}-devel = %{version}-%{release}
268 Requires: Qt5Core-devel >= 5.0.0
269 Requires: Qt5Gui-devel >= 5.0.0
270 Requires: Qt5Widgets-devel >= 5.0.0
271 Requires: Qt5Xml-devel >= 5.0.0
273 %description qt5-devel
274 Header files for Qt5 wrapper for poppler.
276 %description qt5-devel -l pl.UTF-8
277 Pliki nagłówkowe wrapper Qt5 dla popplera.
280 Summary: Static version of Qt5 wrapper for poppler
281 Summary(pl.UTF-8): Statyczna wersja wrappera Qt5 dla popplera
282 Group: Development/Libraries
283 Requires: %{name}-qt5-devel = %{version}-%{release}
285 %description qt5-static
286 Static version of Qt5 wrapper for poppler.
288 %description qt5-static -l pl.UTF-8
289 Statyczna wersja wrappera Qt5 dla popplera.
292 Summary: Set of tools for viewing information and converting PDF files
293 Summary(pl.UTF-8): Zestaw narzędzi do wyświetlania informacji i konwertowania plików PDF
294 Group: Applications/Publishing
297 Obsoletes: pdftohtml-pdftops
298 Obsoletes: poppler-utils
299 Obsoletes: xpdf-tools
302 Package contains utilites for PDF files. These utilities allow to
303 - extract information about PDF files,
304 - extract images from PDF files,
305 - convert PDF files to HTML, plain text and PS formats.
307 %description progs -l pl.UTF-8
308 Pakiet zawiera zestaw narzędzi do plików PDF. Programy te umożliwiają
309 - wyświetlanie informacji o plikach PDF,
310 - wydobywanie obrazków z plików PDF,
311 - konwersję plików PDF do formatów takich jak HTML, PS czy też
319 %{?with_apidocs:%{__gtkdocize}}
326 MOCQT4=/usr/bin/moc-qt4 \
327 MOCQT5=/usr/bin/moc-qt5 \
330 %{?with_apidocs:--enable-gtk-doc} \
331 %{!?with_cairo:--disable-cairo-output} \
332 %{!?with_cpp:--disable-poppler-cpp} \
333 %{!?with_glib:--disable-poppler-glib} \
334 %{!?with_qt4:--disable-poppler-qt4} \
335 %{!?with_qt5:--disable-poppler-qt5} \
336 --disable-silent-rules \
337 --enable-xpdf-headers \
339 --enable-dependency-tracking \
340 --with-html-dir=%{_gtkdocdir}
345 rm -rf $RPM_BUILD_ROOT
348 DESTDIR=$RPM_BUILD_ROOT
350 %if %{without apidocs}
351 # why it still installs them, brr
352 %{__rm} -rf $RPM_BUILD_ROOT%{_gtkdocdir}/poppler || :
355 %{__rm} $RPM_BUILD_ROOT%{_libdir}/*.la
358 rm -rf $RPM_BUILD_ROOT
360 %post -p /sbin/ldconfig
361 %postun -p /sbin/ldconfig
363 %post cpp -p /sbin/ldconfig
364 %postun cpp -p /sbin/ldconfig
366 %post glib -p /sbin/ldconfig
367 %postun glib -p /sbin/ldconfig
369 %post qt4 -p /sbin/ldconfig
370 %postun qt4 -p /sbin/ldconfig
372 %post qt5 -p /sbin/ldconfig
373 %postun qt5 -p /sbin/ldconfig
376 %defattr(644,root,root,755)
377 %doc AUTHORS ChangeLog NEWS README* TODO
378 %attr(755,root,root) %{_libdir}/libpoppler.so.*.*.*
379 %attr(755,root,root) %ghost %{_libdir}/libpoppler.so.44
382 %defattr(644,root,root,755)
383 %attr(755,root,root) %{_libdir}/libpoppler.so
384 %dir %{_includedir}/poppler
385 %{_includedir}/poppler/poppler-config.h
386 %{_includedir}/poppler/[ABCDEFGHJLMNOPRSTUVX]*.h
387 %{_includedir}/poppler/fofi
388 %{_includedir}/poppler/goo
389 %{_includedir}/poppler/splash
390 %{_pkgconfigdir}/poppler.pc
391 %{?with_cairo:%{_pkgconfigdir}/poppler-cairo.pc}
392 %{_pkgconfigdir}/poppler-splash.pc
395 %defattr(644,root,root,755)
396 %{_libdir}/libpoppler.a
400 %defattr(644,root,root,755)
401 %{_gtkdocdir}/poppler
406 %defattr(644,root,root,755)
407 %attr(755,root,root) %{_libdir}/libpoppler-cpp.so.*.*.*
408 %attr(755,root,root) %ghost %{_libdir}/libpoppler-cpp.so.0
411 %defattr(644,root,root,755)
412 %attr(755,root,root) %{_libdir}/libpoppler-cpp.so
413 %{_includedir}/poppler/cpp
414 %{_pkgconfigdir}/poppler-cpp.pc
417 %defattr(644,root,root,755)
418 %{_libdir}/libpoppler-cpp.a
423 %defattr(644,root,root,755)
424 %attr(755,root,root) %{_libdir}/libpoppler-glib.so.*.*.*
425 %attr(755,root,root) %ghost %{_libdir}/libpoppler-glib.so.8
426 %{_libdir}/girepository-1.0/Poppler-0.18.typelib
429 %defattr(644,root,root,755)
430 %attr(755,root,root) %{_libdir}/libpoppler-glib.so
431 %{_includedir}/poppler/glib
432 %{_pkgconfigdir}/poppler-glib.pc
433 %{_datadir}/gir-1.0/Poppler-0.18.gir
436 %defattr(644,root,root,755)
437 %{_libdir}/libpoppler-glib.a
442 %defattr(644,root,root,755)
443 %attr(755,root,root) %{_libdir}/libpoppler-qt4.so.*.*.*
444 %attr(755,root,root) %ghost %{_libdir}/libpoppler-qt4.so.4
447 %defattr(644,root,root,755)
448 %attr(755,root,root) %{_libdir}/libpoppler-qt4.so
449 %{_includedir}/poppler/qt4
450 %{_pkgconfigdir}/poppler-qt4.pc
453 %defattr(644,root,root,755)
454 %{_libdir}/libpoppler-qt4.a
459 %defattr(644,root,root,755)
460 %attr(755,root,root) %{_libdir}/libpoppler-qt5.so.*.*.*
461 %attr(755,root,root) %ghost %{_libdir}/libpoppler-qt5.so.1
464 %defattr(644,root,root,755)
465 %attr(755,root,root) %{_libdir}/libpoppler-qt5.so
466 %{_includedir}/poppler/qt5
467 %{_pkgconfigdir}/poppler-qt5.pc
470 %defattr(644,root,root,755)
471 %{_libdir}/libpoppler-qt5.a
475 %defattr(644,root,root,755)
476 %attr(755,root,root) %{_bindir}/pdf*