3 %bcond_without apidocs # disable gtk-doc
4 %bcond_without cairo # disable Cairo backend
5 %bcond_without qt5 # disable qt5 wrapper
6 %bcond_without cpp # disable cpp wrapper
7 %bcond_without glib # disable 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: 0881d921de62673ab558872dadc2b27b
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:4.7
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 -DENABLE_GTK_TESTS=OFF \
264 -DENABLE_LIBCURL=ON \
265 %{?with_apidocs:-DENABLE_GTK_DOC=ON} \
266 %{!?with_cairo:-DWITH_CAIRO=OFF} \
267 %{!?with_cpp:-DENABLE_CPP=OFF} \
268 %{!?with_glib:-DENABLE_GLIB=OFF} \
269 %{!?with_qt5:-DENABLE_QT5=OFF} \
270 -DENABLE_XPDF_HEADERS=ON \
276 install -d build-static
279 -DBUILD_SHARED_LIBS=OFF \
280 -DENABLE_GTK_TESTS=OFF \
281 -DENABLE_LIBCURL=ON \
282 -DENABLE_GTK_DOC=OFF \
283 %{!?with_cairo:-DWITH_CAIRO=OFF} \
284 %{!?with_cpp:-DENABLE_CPP=OFF} \
285 %{!?with_glib:-DENABLE_GLIB=OFF} \
286 %{!?with_qt5:-DENABLE_QT5=OFF} \
287 -DENABLE_XPDF_HEADERS=ON \
293 rm -rf $RPM_BUILD_ROOT
295 %{__make} -C build-static install \
296 DESTDIR=$RPM_BUILD_ROOT
298 %{__make} -C build install \
299 DESTDIR=$RPM_BUILD_ROOT
302 rm -rf $RPM_BUILD_ROOT
304 %post -p /sbin/ldconfig
305 %postun -p /sbin/ldconfig
307 %post cpp -p /sbin/ldconfig
308 %postun cpp -p /sbin/ldconfig
310 %post glib -p /sbin/ldconfig
311 %postun glib -p /sbin/ldconfig
313 %post qt5 -p /sbin/ldconfig
314 %postun qt5 -p /sbin/ldconfig
317 %defattr(644,root,root,755)
318 %doc AUTHORS ChangeLog NEWS README*
319 %attr(755,root,root) %{_libdir}/libpoppler.so.*.*.*
320 %attr(755,root,root) %ghost %{_libdir}/libpoppler.so.80
323 %defattr(644,root,root,755)
324 %attr(755,root,root) %{_libdir}/libpoppler.so
325 %dir %{_includedir}/poppler
326 %{_includedir}/poppler/poppler-config.h
327 %{_includedir}/poppler/[ABCDEFGHJLMNOPRSTUVX]*.h
328 %{_includedir}/poppler/fofi
329 %{_includedir}/poppler/goo
330 %{_includedir}/poppler/splash
331 %{_pkgconfigdir}/poppler.pc
332 %{?with_cairo:%{_pkgconfigdir}/poppler-cairo.pc}
333 %{_pkgconfigdir}/poppler-splash.pc
336 %defattr(644,root,root,755)
337 %{_libdir}/libpoppler.a
341 %defattr(644,root,root,755)
342 %{_gtkdocdir}/poppler
347 %defattr(644,root,root,755)
348 %attr(755,root,root) %{_libdir}/libpoppler-cpp.so.*.*.*
349 %attr(755,root,root) %ghost %{_libdir}/libpoppler-cpp.so.0
352 %defattr(644,root,root,755)
353 %attr(755,root,root) %{_libdir}/libpoppler-cpp.so
354 %{_includedir}/poppler/cpp
355 %{_pkgconfigdir}/poppler-cpp.pc
358 %defattr(644,root,root,755)
359 %{_libdir}/libpoppler-cpp.a
364 %defattr(644,root,root,755)
365 %attr(755,root,root) %{_libdir}/libpoppler-glib.so.*.*.*
366 %attr(755,root,root) %ghost %{_libdir}/libpoppler-glib.so.8
367 %{_libdir}/girepository-1.0/Poppler-0.18.typelib
370 %defattr(644,root,root,755)
371 %attr(755,root,root) %{_libdir}/libpoppler-glib.so
372 %{_includedir}/poppler/glib
373 %{_pkgconfigdir}/poppler-glib.pc
374 %{_datadir}/gir-1.0/Poppler-0.18.gir
377 %defattr(644,root,root,755)
378 %{_libdir}/libpoppler-glib.a
384 %defattr(644,root,root,755)
385 %attr(755,root,root) %{_libdir}/libpoppler-qt5.so.*.*.*
386 %attr(755,root,root) %ghost %{_libdir}/libpoppler-qt5.so.1
389 %defattr(644,root,root,755)
390 %attr(755,root,root) %{_libdir}/libpoppler-qt5.so
391 %{_includedir}/poppler/qt5
392 %{_pkgconfigdir}/poppler-qt5.pc
395 %defattr(644,root,root,755)
396 %{_libdir}/libpoppler-qt5.a
400 %defattr(644,root,root,755)
401 %attr(755,root,root) %{_bindir}/pdfdetach
402 %attr(755,root,root) %{_bindir}/pdffonts
403 %attr(755,root,root) %{_bindir}/pdfimages
404 %attr(755,root,root) %{_bindir}/pdfinfo
405 %attr(755,root,root) %{_bindir}/pdfseparate
406 %attr(755,root,root) %{_bindir}/pdfsig
407 %attr(755,root,root) %{_bindir}/pdftocairo
408 %attr(755,root,root) %{_bindir}/pdftohtml
409 %attr(755,root,root) %{_bindir}/pdftoppm
410 %attr(755,root,root) %{_bindir}/pdftops
411 %attr(755,root,root) %{_bindir}/pdftotext
412 %attr(755,root,root) %{_bindir}/pdfunite
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*