3 %bcond_without apidocs # gtk-doc API documentation
4 %bcond_without cairo # Cairo backend
5 %bcond_without qt5 # Qt 5 wrapper
6 %bcond_with qt6 # Qt 6 wrapper
7 %bcond_without cpp # C++ wrapper
8 %bcond_without glib # GLib wrapper
10 %define cairo_ver 1.10.0
13 Summary: PDF rendering library
14 Summary(pl.UTF-8): Biblioteka renderująca PDF
20 Source0: https://poppler.freedesktop.org/%{name}-%{version}.tar.xz
21 # Source0-md5: 1103acc31277936a138613c97b38b82c
22 Patch0: %{name}-gtkdocdir.patch
23 Patch1: %{name}-include.patch
24 URL: https://poppler.freedesktop.org/
25 %{?with_qt5:BuildRequires: Qt5Core-devel >= %{qt5_ver}}
26 %{?with_qt5:BuildRequires: Qt5Gui-devel >= %{qt5_ver}}
27 %{?with_qt5:BuildRequires: Qt5Test-devel >= %{qt5_ver}}
28 %{?with_qt5:BuildRequires: Qt5Widgets-devel >= %{qt5_ver}}
29 %{?with_qt5:BuildRequires: Qt5Xml-devel >= %{qt5_ver}}
30 %{?with_qt6:BuildRequires: Qt6Core-devel >= %{qt6_ver}}
31 %{?with_qt6:BuildRequires: Qt6Gui-devel >= %{qt6_ver}}
32 %{?with_qt6:BuildRequires: Qt6Test-devel >= %{qt6_ver}}
33 %{?with_qt6:BuildRequires: Qt6Widgets-devel >= %{qt6_ver}}
34 BuildRequires: boost-devel >= 1.58.0
35 %{?with_cairo:BuildRequires: cairo-devel >= %{cairo_ver}}
36 BuildRequires: cmake >= 3.5.0
37 BuildRequires: curl-devel
38 BuildRequires: docbook-dtd412-xml
39 BuildRequires: fontconfig-devel >= 2.0.0
40 BuildRequires: freetype-devel >= 2.0
41 BuildRequires: gettext-tools
42 %{?with_glib:BuildRequires: glib2-devel >= 1:2.41}
43 %{?with_glib:BuildRequires: gobject-introspection-devel >= 0.9.12}
44 %{?with_apidocs:BuildRequires: gtk-doc >= 1.14}
45 BuildRequires: lcms2-devel >= 2
46 BuildRequires: libjpeg-devel
47 BuildRequires: libpng-devel
49 BuildRequires: libstdc++-devel >= 6:5.0
50 BuildRequires: libtiff-devel
51 BuildRequires: libxml2-devel >= 2.0
52 BuildRequires: nss-devel >= 3.19
53 BuildRequires: openjpeg2-devel >= 2
54 BuildRequires: pkgconfig >= 1:0.18
55 # wanted cairo backends
56 BuildRequires: pkgconfig(cairo-pdf) >= %{cairo_ver}
57 BuildRequires: pkgconfig(cairo-ps) >= %{cairo_ver}
58 BuildRequires: pkgconfig(cairo-svg) >= %{cairo_ver}
59 %{?with_qt5:BuildRequires: qt5-build >= %{qt5_ver}}
60 %{?with_qt6:BuildRequires: qt6-build >= %{qt6_ver}}
61 BuildRequires: rpmbuild(macros) >= 1.752
62 BuildRequires: sed >= 4.0
63 BuildRequires: tar >= 1:1.22
66 BuildRequires: zlib-devel
67 Requires: openjpeg2 >= 2
68 Obsoletes: poppler-qt4-static
69 BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
72 A common PDF rendering library for integrating PDF viewing into
73 desktop applications (based on the xpdf-3.0 code base).
75 %description -l pl.UTF-8
76 Wspólna biblioteka renderująca PDF do integrowania oglądania PDF w
77 aplikacjach desktopowych (oparta na kodzie xpdf-3.0).
80 Summary: Poppler header files
81 Summary(pl.UTF-8): Pliki nagłówkowe biblioteki Poppler
82 Group: Development/Libraries
83 Requires: %{name} = %{version}-%{release}
85 Requires: lcms2-devel >= 2
86 Requires: libstdc++-devel >= 6:5.0
87 Requires: nss-devel >= 3.19
88 Conflicts: poppler0.61-devel
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
116 Poppler library API documentation.
118 %description apidocs -l pl.UTF-8
119 Dokumentacja API biblioteki Poppler.
122 Summary: Cpp wrapper for poppler
123 Summary(pl.UTF-8): Wrapper cpp dla popplera
125 Requires: %{name} = %{version}-%{release}
128 Cpp wrapper for poppler.
130 %description cpp -l pl.UTF-8
131 Wrapper cpp dla popplera.
134 Summary: Header files for cpp wrapper for poppler
135 Summary(pl.UTF-8): Pliki nagłówkowe wrappera cpp dla popplera
136 Group: Development/Libraries
137 Requires: %{name}-cpp = %{version}-%{release}
138 Requires: %{name}-devel = %{version}-%{release}
140 %description cpp-devel
141 Header files for cpp wrapper for poppler.
143 %description cpp-devel -l pl.UTF-8
144 Pliki nagłówkowe wrappera cpp dla popplera.
147 Summary: Static version of cpp wrapper for poppler
148 Summary(pl.UTF-8): Statyczna wersja wrappera cpp dla popplera
149 Group: Development/Libraries
150 Requires: %{name}-cpp-devel = %{version}-%{release}
152 %description cpp-static
153 Static version of cpp wrapper for poppler.
155 %description cpp-static -l pl.UTF-8
156 Statyczna wersja wrappera cpp dla popplera.
159 Summary: GLib wrapper for poppler
160 Summary(pl.UTF-8): Wrapper GLib dla popplera
162 Requires: %{name} = %{version}-%{release}
163 %{?with_cairo:Requires: cairo >= %{cairo_ver}}
164 Requires: glib2 >= 1:2.41
167 GLib wrapper for poppler.
169 %description glib -l pl.UTF-8
170 Wrapper GLib dla popplera.
173 Summary: Header files for GLib wrapper for poppler
174 Summary(pl.UTF-8): Pliki nagłówkowe wrappera GLib dla popplera
175 Group: Development/Libraries
176 Requires: %{name}-devel = %{version}-%{release}
177 Requires: %{name}-glib = %{version}-%{release}
178 %{?with_cairo:Requires: cairo-devel >= %{cairo_ver}}
179 Requires: glib2-devel >= 1:2.41
181 %description glib-devel
182 Header files for GLib wrapper for poppler.
184 %description glib-devel -l pl.UTF-8
185 Pliki nagłówkowe wrappera GLib dla popplera.
188 Summary: Static version of GLib wrapper for poppler
189 Summary(pl.UTF-8): Statyczna wersja wrappera GLib dla popplera
190 Group: Development/Libraries
191 Requires: %{name}-glib-devel = %{version}-%{release}
193 %description glib-static
194 Static version of GLib wrapper for poppler.
196 %description glib-static -l pl.UTF-8
197 Statyczna wersja wrappera GLib dla popplera.
200 Summary: Qt5 wrapper for poppler
201 Summary(pl.UTF-8): Wrapper Qt5 dla popplera
203 Requires: %{name} = %{version}-%{release}
206 Qt5 wrapper for poppler.
208 %description qt5 -l pl.UTF-8
209 Wrapper Qt5 dla popplera.
212 Summary: Header files for Qt5 wrapper for poppler
213 Summary(pl.UTF-8): Pliki nagłówkowe wrappera Qt5 dla popplera
214 Group: Development/Libraries
215 Requires: %{name}-devel = %{version}-%{release}
216 Requires: %{name}-qt5 = %{version}-%{release}
217 Requires: Qt5Core-devel >= %{qt5_ver}
218 Requires: Qt5Gui-devel >= %{qt5_ver}
219 Requires: Qt5Widgets-devel >= %{qt5_ver}
220 Requires: Qt5Xml-devel >= %{qt5_ver}
222 %description qt5-devel
223 Header files for Qt5 wrapper for poppler.
225 %description qt5-devel -l pl.UTF-8
226 Pliki nagłówkowe wrapper Qt5 dla popplera.
229 Summary: Static version of Qt5 wrapper for poppler
230 Summary(pl.UTF-8): Statyczna wersja wrappera Qt5 dla popplera
231 Group: Development/Libraries
232 Requires: %{name}-qt5-devel = %{version}-%{release}
234 %description qt5-static
235 Static version of Qt5 wrapper for poppler.
237 %description qt5-static -l pl.UTF-8
238 Statyczna wersja wrappera Qt5 dla popplera.
241 Summary: Set of tools for viewing information and converting PDF files
242 Summary(pl.UTF-8): Zestaw narzędzi do wyświetlania informacji i konwertowania plików PDF
243 Group: Applications/Publishing
246 Obsoletes: pdftohtml-pdftops
247 Obsoletes: poppler-utils
248 Obsoletes: xpdf-tools
251 Package contains utilites for PDF files. These utilities allow to
252 - extract information about PDF files,
253 - extract images from PDF files,
254 - convert PDF files to HTML, plain text and PS formats.
256 %description progs -l pl.UTF-8
257 Pakiet zawiera zestaw narzędzi do plików PDF. Programy te umożliwiają
258 - wyświetlanie informacji o plikach PDF,
259 - wydobywanie obrazków z plików PDF,
260 - konwersję plików PDF do formatów takich jak HTML, PS czy też
272 %{!?with_cpp:-DENABLE_CPP=OFF} \
273 %{!?with_glib:-DENABLE_GLIB=OFF} \
274 %{?with_apidocs:-DENABLE_GTK_DOC=ON} \
275 -DENABLE_GTK_TESTS=OFF \
276 -DENABLE_LIBCURL=ON \
277 %{!?with_qt5:-DENABLE_QT5=OFF} \
278 %{!?with_qt6:-DENABLE_QT6=OFF} \
279 -DENABLE_UNSTABLE_API_ABI_HEADERS=ON \
281 %{!?with_cairo:-DWITH_CAIRO=OFF}
286 install -d build-static
289 -DBUILD_SHARED_LIBS=OFF \
290 %{!?with_cpp:-DENABLE_CPP=OFF} \
291 %{!?with_glib:-DENABLE_GLIB=OFF} \
292 -DENABLE_GTK_DOC=OFF \
293 -DENABLE_GTK_TESTS=OFF \
294 -DENABLE_LIBCURL=ON \
295 %{!?with_qt5:-DENABLE_QT5=OFF} \
297 %{!?with_cairo:-DWITH_CAIRO=OFF}
302 rm -rf $RPM_BUILD_ROOT
304 %{__make} -C build-static install \
305 DESTDIR=$RPM_BUILD_ROOT
307 %{__make} -C build install \
308 DESTDIR=$RPM_BUILD_ROOT
311 rm -rf $RPM_BUILD_ROOT
313 %post -p /sbin/ldconfig
314 %postun -p /sbin/ldconfig
316 %post cpp -p /sbin/ldconfig
317 %postun cpp -p /sbin/ldconfig
319 %post glib -p /sbin/ldconfig
320 %postun glib -p /sbin/ldconfig
322 %post qt5 -p /sbin/ldconfig
323 %postun qt5 -p /sbin/ldconfig
326 %defattr(644,root,root,755)
327 %doc AUTHORS ChangeLog NEWS README*
328 %attr(755,root,root) %{_libdir}/libpoppler.so.*.*.*
329 %attr(755,root,root) %ghost %{_libdir}/libpoppler.so.103
332 %defattr(644,root,root,755)
333 %attr(755,root,root) %{_libdir}/libpoppler.so
334 %dir %{_includedir}/poppler
335 %{_includedir}/poppler/poppler-config.h
336 %{_includedir}/poppler/[ABCDEFGHJLMNOPRSTUVX]*.h
337 %{_includedir}/poppler/fofi
338 %{_includedir}/poppler/goo
339 %{_includedir}/poppler/splash
340 %{_pkgconfigdir}/poppler.pc
341 %{?with_cairo:%{_pkgconfigdir}/poppler-cairo.pc}
342 %{_pkgconfigdir}/poppler-splash.pc
345 %defattr(644,root,root,755)
346 %{_libdir}/libpoppler.a
350 %defattr(644,root,root,755)
351 %{_gtkdocdir}/poppler
356 %defattr(644,root,root,755)
357 %attr(755,root,root) %{_libdir}/libpoppler-cpp.so.*.*.*
358 %attr(755,root,root) %ghost %{_libdir}/libpoppler-cpp.so.0
361 %defattr(644,root,root,755)
362 %attr(755,root,root) %{_libdir}/libpoppler-cpp.so
363 %{_includedir}/poppler/cpp
364 %{_pkgconfigdir}/poppler-cpp.pc
367 %defattr(644,root,root,755)
368 %{_libdir}/libpoppler-cpp.a
373 %defattr(644,root,root,755)
374 %attr(755,root,root) %{_libdir}/libpoppler-glib.so.*.*.*
375 %attr(755,root,root) %ghost %{_libdir}/libpoppler-glib.so.8
376 %{_libdir}/girepository-1.0/Poppler-0.18.typelib
379 %defattr(644,root,root,755)
380 %attr(755,root,root) %{_libdir}/libpoppler-glib.so
381 %{_includedir}/poppler/glib
382 %{_pkgconfigdir}/poppler-glib.pc
383 %{_datadir}/gir-1.0/Poppler-0.18.gir
386 %defattr(644,root,root,755)
387 %{_libdir}/libpoppler-glib.a
392 %defattr(644,root,root,755)
393 %attr(755,root,root) %{_libdir}/libpoppler-qt5.so.*.*.*
394 %attr(755,root,root) %ghost %{_libdir}/libpoppler-qt5.so.1
397 %defattr(644,root,root,755)
398 %attr(755,root,root) %{_libdir}/libpoppler-qt5.so
399 %{_includedir}/poppler/qt5
400 %{_pkgconfigdir}/poppler-qt5.pc
403 %defattr(644,root,root,755)
404 %{_libdir}/libpoppler-qt5.a
408 %defattr(644,root,root,755)
409 %attr(755,root,root) %{_bindir}/pdfattach
410 %attr(755,root,root) %{_bindir}/pdfdetach
411 %attr(755,root,root) %{_bindir}/pdffonts
412 %attr(755,root,root) %{_bindir}/pdfimages
413 %attr(755,root,root) %{_bindir}/pdfinfo
414 %attr(755,root,root) %{_bindir}/pdfseparate
415 %attr(755,root,root) %{_bindir}/pdfsig
416 %attr(755,root,root) %{_bindir}/pdftocairo
417 %attr(755,root,root) %{_bindir}/pdftohtml
418 %attr(755,root,root) %{_bindir}/pdftoppm
419 %attr(755,root,root) %{_bindir}/pdftops
420 %attr(755,root,root) %{_bindir}/pdftotext
421 %attr(755,root,root) %{_bindir}/pdfunite
422 %{_mandir}/man1/pdfattach.1*
423 %{_mandir}/man1/pdfdetach.1*
424 %{_mandir}/man1/pdffonts.1*
425 %{_mandir}/man1/pdfimages.1*
426 %{_mandir}/man1/pdfinfo.1*
427 %{_mandir}/man1/pdfseparate.1*
428 %{_mandir}/man1/pdfsig.1*
429 %{_mandir}/man1/pdftocairo.1*
430 %{_mandir}/man1/pdftohtml.1*
431 %{_mandir}/man1/pdftoppm.1*
432 %{_mandir}/man1/pdftops.1*
433 %{_mandir}/man1/pdftotext.1*
434 %{_mandir}/man1/pdfunite.1*