3 %bcond_without apidocs # gtk-doc API documentation
4 %bcond_without cairo # Cairo backend
5 %bcond_without qt5 # Qt 5 wrapper
6 %bcond_without cpp # C++ wrapper
7 %bcond_without glib # GLib wrapper
9 %define cairo_ver 1.10.0
11 Summary: PDF rendering library
12 Summary(pl.UTF-8): Biblioteka renderująca PDF
18 Source0: https://poppler.freedesktop.org/%{name}-%{version}.tar.xz
19 # Source0-md5: 3fb4ca803d989742695ca586c5cc489e
20 Patch0: %{name}-gtkdocdir.patch
21 URL: https://poppler.freedesktop.org/
22 %{?with_qt5:BuildRequires: Qt5Core-devel >= %{qt5_ver}}
23 %{?with_qt5:BuildRequires: Qt5Gui-devel >= %{qt5_ver}}
24 %{?with_qt5:BuildRequires: Qt5Test-devel >= %{qt5_ver}}
25 %{?with_qt5:BuildRequires: Qt5Widgets-devel >= %{qt5_ver}}
26 %{?with_qt5:BuildRequires: Qt5Xml-devel >= %{qt5_ver}}
27 %{?with_cairo:BuildRequires: cairo-devel >= %{cairo_ver}}
28 BuildRequires: cmake >= 3.1.0
29 BuildRequires: curl-devel
30 BuildRequires: docbook-dtd412-xml
31 BuildRequires: fontconfig-devel >= 2.0.0
32 BuildRequires: freetype-devel >= 2.0
33 BuildRequires: gettext-tools
34 %{?with_glib:BuildRequires: glib2-devel >= 1:2.41}
35 %{?with_glib:BuildRequires: gobject-introspection-devel >= 0.9.12}
36 %{?with_apidocs:BuildRequires: gtk-doc >= 1.14}
37 BuildRequires: lcms2-devel >= 2
38 BuildRequires: libjpeg-devel
39 BuildRequires: libpng-devel
41 BuildRequires: libstdc++-devel >= 6:5.0
42 BuildRequires: libtiff-devel
43 BuildRequires: libxml2-devel >= 2.0
44 BuildRequires: nss-devel >= 3.19
45 BuildRequires: openjpeg2-devel >= 2
46 BuildRequires: pkgconfig >= 1:0.18
47 # wanted cairo backends
48 BuildRequires: pkgconfig(cairo-pdf) >= %{cairo_ver}
49 BuildRequires: pkgconfig(cairo-ps) >= %{cairo_ver}
50 BuildRequires: pkgconfig(cairo-svg) >= %{cairo_ver}
51 %{?with_qt5:BuildRequires: qt5-build >= %{qt5_ver}}
52 BuildRequires: sed >= 4.0
53 BuildRequires: tar >= 1:1.22
56 BuildRequires: zlib-devel
57 Requires: openjpeg2 >= 2
58 Obsoletes: poppler-qt4-static
59 BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
62 A common PDF rendering library for integrating PDF viewing into
63 desktop applications (based on the xpdf-3.0 code base).
65 %description -l pl.UTF-8
66 Wspólna biblioteka renderująca PDF do integrowania oglądania PDF w
67 aplikacjach desktopowych (oparta na kodzie xpdf-3.0).
70 Summary: Poppler header files
71 Summary(pl.UTF-8): Pliki nagłówkowe biblioteki Poppler
72 Group: Development/Libraries
73 Requires: %{name} = %{version}-%{release}
75 Requires: lcms2-devel >= 2
76 Requires: libstdc++-devel >= 6:5.0
77 Requires: nss-devel >= 3.19
78 Conflicts: poppler0.61-devel
81 Header files for the Poppler library.
83 %description devel -l pl.UTF-8
84 Pliki nagłówkowe biblioteki Poppler.
87 Summary: Poppler static libraries
88 Summary(pl.UTF-8): Statyczne biblioteki Poppler
89 Group: Development/Libraries
90 Requires: %{name}-devel = %{version}-%{release}
93 Poppler static libraries.
95 %description static -l pl.UTF-8
96 Statyczne biblioteki Poppler.
99 Summary: Poppler library API documentation
100 Summary(pl.UTF-8): Dokumentacja API biblioteki Poppler
102 Requires: gtk-doc-common
103 %if "%{_rpmversion}" >= "5"
108 Poppler library API documentation.
110 %description apidocs -l pl.UTF-8
111 Dokumentacja API biblioteki Poppler.
114 Summary: Cpp wrapper for poppler
115 Summary(pl.UTF-8): Wrapper cpp dla popplera
117 Requires: %{name} = %{version}-%{release}
120 Cpp wrapper for poppler.
122 %description cpp -l pl.UTF-8
123 Wrapper cpp dla popplera.
126 Summary: Header files for cpp wrapper for poppler
127 Summary(pl.UTF-8): Pliki nagłówkowe wrappera cpp dla popplera
128 Group: Development/Libraries
129 Requires: %{name}-cpp = %{version}-%{release}
130 Requires: %{name}-devel = %{version}-%{release}
132 %description cpp-devel
133 Header files for cpp wrapper for poppler.
135 %description cpp-devel -l pl.UTF-8
136 Pliki nagłówkowe wrappera cpp dla popplera.
139 Summary: Static version of cpp wrapper for poppler
140 Summary(pl.UTF-8): Statyczna wersja wrappera cpp dla popplera
141 Group: Development/Libraries
142 Requires: %{name}-cpp-devel = %{version}-%{release}
144 %description cpp-static
145 Static version of cpp wrapper for poppler.
147 %description cpp-static -l pl.UTF-8
148 Statyczna wersja wrappera cpp dla popplera.
151 Summary: GLib wrapper for poppler
152 Summary(pl.UTF-8): Wrapper GLib dla popplera
154 Requires: %{name} = %{version}-%{release}
155 %{?with_cairo:Requires: cairo >= %{cairo_ver}}
156 Requires: glib2 >= 1:2.41
159 GLib wrapper for poppler.
161 %description glib -l pl.UTF-8
162 Wrapper GLib dla popplera.
165 Summary: Header files for GLib wrapper for poppler
166 Summary(pl.UTF-8): Pliki nagłówkowe wrappera GLib dla popplera
167 Group: Development/Libraries
168 Requires: %{name}-devel = %{version}-%{release}
169 Requires: %{name}-glib = %{version}-%{release}
170 %{?with_cairo:Requires: cairo-devel >= %{cairo_ver}}
171 Requires: glib2-devel >= 1:2.41
173 %description glib-devel
174 Header files for GLib wrapper for poppler.
176 %description glib-devel -l pl.UTF-8
177 Pliki nagłówkowe wrappera GLib dla popplera.
180 Summary: Static version of GLib wrapper for poppler
181 Summary(pl.UTF-8): Statyczna wersja wrappera GLib dla popplera
182 Group: Development/Libraries
183 Requires: %{name}-glib-devel = %{version}-%{release}
185 %description glib-static
186 Static version of GLib wrapper for poppler.
188 %description glib-static -l pl.UTF-8
189 Statyczna wersja wrappera GLib dla popplera.
192 Summary: Qt5 wrapper for poppler
193 Summary(pl.UTF-8): Wrapper Qt5 dla popplera
195 Requires: %{name} = %{version}-%{release}
198 Qt5 wrapper for poppler.
200 %description qt5 -l pl.UTF-8
201 Wrapper Qt5 dla popplera.
204 Summary: Header files for Qt5 wrapper for poppler
205 Summary(pl.UTF-8): Pliki nagłówkowe wrappera Qt5 dla popplera
206 Group: Development/Libraries
207 Requires: %{name}-devel = %{version}-%{release}
208 Requires: %{name}-qt5 = %{version}-%{release}
209 Requires: Qt5Core-devel >= %{qt5_ver}
210 Requires: Qt5Gui-devel >= %{qt5_ver}
211 Requires: Qt5Widgets-devel >= %{qt5_ver}
212 Requires: Qt5Xml-devel >= %{qt5_ver}
214 %description qt5-devel
215 Header files for Qt5 wrapper for poppler.
217 %description qt5-devel -l pl.UTF-8
218 Pliki nagłówkowe wrapper Qt5 dla popplera.
221 Summary: Static version of Qt5 wrapper for poppler
222 Summary(pl.UTF-8): Statyczna wersja wrappera Qt5 dla popplera
223 Group: Development/Libraries
224 Requires: %{name}-qt5-devel = %{version}-%{release}
226 %description qt5-static
227 Static version of Qt5 wrapper for poppler.
229 %description qt5-static -l pl.UTF-8
230 Statyczna wersja wrappera Qt5 dla popplera.
233 Summary: Set of tools for viewing information and converting PDF files
234 Summary(pl.UTF-8): Zestaw narzędzi do wyświetlania informacji i konwertowania plików PDF
235 Group: Applications/Publishing
238 Obsoletes: pdftohtml-pdftops
239 Obsoletes: poppler-utils
240 Obsoletes: xpdf-tools
243 Package contains utilites for PDF files. These utilities allow to
244 - extract information about PDF files,
245 - extract images from PDF files,
246 - convert PDF files to HTML, plain text and PS formats.
248 %description progs -l pl.UTF-8
249 Pakiet zawiera zestaw narzędzi do plików PDF. Programy te umożliwiają
250 - wyświetlanie informacji o plikach PDF,
251 - wydobywanie obrazków z plików PDF,
252 - konwersję plików PDF do formatów takich jak HTML, PS czy też
263 %{!?with_cpp:-DENABLE_CPP=OFF} \
264 %{!?with_glib:-DENABLE_GLIB=OFF} \
265 %{?with_apidocs:-DENABLE_GTK_DOC=ON} \
266 -DENABLE_GTK_TESTS=OFF \
267 -DENABLE_LIBCURL=ON \
268 %{!?with_qt5:-DENABLE_QT5=OFF} \
269 -DENABLE_UNSTABLE_API_ABI_HEADERS=ON \
271 %{!?with_cairo:-DWITH_CAIRO=OFF}
276 install -d build-static
279 -DBUILD_SHARED_LIBS=OFF \
280 %{!?with_cpp:-DENABLE_CPP=OFF} \
281 %{!?with_glib:-DENABLE_GLIB=OFF} \
282 -DENABLE_GTK_DOC=OFF \
283 -DENABLE_GTK_TESTS=OFF \
284 -DENABLE_LIBCURL=ON \
285 %{!?with_qt5:-DENABLE_QT5=OFF} \
287 %{!?with_cairo:-DWITH_CAIRO=OFF}
292 rm -rf $RPM_BUILD_ROOT
294 %{__make} -C build-static install \
295 DESTDIR=$RPM_BUILD_ROOT
297 %{__make} -C build install \
298 DESTDIR=$RPM_BUILD_ROOT
301 rm -rf $RPM_BUILD_ROOT
303 %post -p /sbin/ldconfig
304 %postun -p /sbin/ldconfig
306 %post cpp -p /sbin/ldconfig
307 %postun cpp -p /sbin/ldconfig
309 %post glib -p /sbin/ldconfig
310 %postun glib -p /sbin/ldconfig
312 %post qt5 -p /sbin/ldconfig
313 %postun qt5 -p /sbin/ldconfig
316 %defattr(644,root,root,755)
317 %doc AUTHORS ChangeLog NEWS README*
318 %attr(755,root,root) %{_libdir}/libpoppler.so.*.*.*
319 %attr(755,root,root) %ghost %{_libdir}/libpoppler.so.86
322 %defattr(644,root,root,755)
323 %attr(755,root,root) %{_libdir}/libpoppler.so
324 %dir %{_includedir}/poppler
325 %{_includedir}/poppler/poppler-config.h
326 %{_includedir}/poppler/[ABCDEFGHJLMNOPRSTUVX]*.h
327 %{_includedir}/poppler/fofi
328 %{_includedir}/poppler/goo
329 %{_includedir}/poppler/splash
330 %{_pkgconfigdir}/poppler.pc
331 %{?with_cairo:%{_pkgconfigdir}/poppler-cairo.pc}
332 %{_pkgconfigdir}/poppler-splash.pc
335 %defattr(644,root,root,755)
336 %{_libdir}/libpoppler.a
340 %defattr(644,root,root,755)
341 %{_gtkdocdir}/poppler
346 %defattr(644,root,root,755)
347 %attr(755,root,root) %{_libdir}/libpoppler-cpp.so.*.*.*
348 %attr(755,root,root) %ghost %{_libdir}/libpoppler-cpp.so.0
351 %defattr(644,root,root,755)
352 %attr(755,root,root) %{_libdir}/libpoppler-cpp.so
353 %{_includedir}/poppler/cpp
354 %{_pkgconfigdir}/poppler-cpp.pc
357 %defattr(644,root,root,755)
358 %{_libdir}/libpoppler-cpp.a
363 %defattr(644,root,root,755)
364 %attr(755,root,root) %{_libdir}/libpoppler-glib.so.*.*.*
365 %attr(755,root,root) %ghost %{_libdir}/libpoppler-glib.so.8
366 %{_libdir}/girepository-1.0/Poppler-0.18.typelib
369 %defattr(644,root,root,755)
370 %attr(755,root,root) %{_libdir}/libpoppler-glib.so
371 %{_includedir}/poppler/glib
372 %{_pkgconfigdir}/poppler-glib.pc
373 %{_datadir}/gir-1.0/Poppler-0.18.gir
376 %defattr(644,root,root,755)
377 %{_libdir}/libpoppler-glib.a
382 %defattr(644,root,root,755)
383 %attr(755,root,root) %{_libdir}/libpoppler-qt5.so.*.*.*
384 %attr(755,root,root) %ghost %{_libdir}/libpoppler-qt5.so.1
387 %defattr(644,root,root,755)
388 %attr(755,root,root) %{_libdir}/libpoppler-qt5.so
389 %{_includedir}/poppler/qt5
390 %{_pkgconfigdir}/poppler-qt5.pc
393 %defattr(644,root,root,755)
394 %{_libdir}/libpoppler-qt5.a
398 %defattr(644,root,root,755)
399 %attr(755,root,root) %{_bindir}/pdfattach
400 %attr(755,root,root) %{_bindir}/pdfdetach
401 %attr(755,root,root) %{_bindir}/pdffonts
402 %attr(755,root,root) %{_bindir}/pdfimages
403 %attr(755,root,root) %{_bindir}/pdfinfo
404 %attr(755,root,root) %{_bindir}/pdfseparate
405 %attr(755,root,root) %{_bindir}/pdfsig
406 %attr(755,root,root) %{_bindir}/pdftocairo
407 %attr(755,root,root) %{_bindir}/pdftohtml
408 %attr(755,root,root) %{_bindir}/pdftoppm
409 %attr(755,root,root) %{_bindir}/pdftops
410 %attr(755,root,root) %{_bindir}/pdftotext
411 %attr(755,root,root) %{_bindir}/pdfunite
412 %{_mandir}/man1/pdfattach.1*
413 %{_mandir}/man1/pdfdetach.1*
414 %{_mandir}/man1/pdffonts.1*
415 %{_mandir}/man1/pdfimages.1*
416 %{_mandir}/man1/pdfinfo.1*
417 %{_mandir}/man1/pdfseparate.1*
418 %{_mandir}/man1/pdfsig.1*
419 %{_mandir}/man1/pdftocairo.1*
420 %{_mandir}/man1/pdftohtml.1*
421 %{_mandir}/man1/pdftoppm.1*
422 %{_mandir}/man1/pdftops.1*
423 %{_mandir}/man1/pdftotext.1*
424 %{_mandir}/man1/pdfunite.1*