1 # TODO: qt5 port (BR: Qt5Core, Qt5Gui, Qt5Xml, Qt5Widgets, Qt5Test >= 5.0.0)
4 %bcond_without apidocs # disable gtk-doc
5 %bcond_without cairo # disable Cairo backend
6 %bcond_without qt4 # disable qt4 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: 31299f26a998029c85295dbbf4c30beb
21 URL: http://poppler.freedesktop.org/
22 %{?with_qt4:BuildRequires: QtGui-devel >= 4.4.0}
23 %{?with_qt4:BuildRequires: QtTest-devel >= 4.4.0}
24 %{?with_qt4:BuildRequires: QtXml-devel >= 4.4.0}
25 BuildRequires: autoconf >= 2.59
26 BuildRequires: automake
27 %{?with_cairo:BuildRequires: cairo-devel >= %{cairo_ver}}
28 BuildRequires: curl-devel
29 BuildRequires: docbook-dtd412-xml
30 BuildRequires: fontconfig-devel >= 2.0.0
31 BuildRequires: freetype-devel >= 2.0
32 BuildRequires: gettext-devel
33 %{?with_glib:BuildRequires: glib2-devel >= 1:2.18.0}
34 BuildRequires: gobject-introspection-devel >= 0.6.7
35 %{?with_apidocs:BuildRequires: gtk-doc >= 1.14}
36 BuildRequires: lcms2-devel
37 BuildRequires: libjpeg-devel
38 BuildRequires: libpng-devel
39 BuildRequires: libstdc++-devel
40 BuildRequires: libtiff-devel
41 BuildRequires: libtool >= 2:1.5
42 BuildRequires: libxml2-devel >= 2.0
43 BuildRequires: openjpeg-devel >= 1.5
44 BuildRequires: pkgconfig >= 1:0.18
45 # wanted cairo backends
46 BuildRequires: pkgconfig(cairo-pdf) >= %{cairo_ver}
47 BuildRequires: pkgconfig(cairo-ps) >= %{cairo_ver}
48 BuildRequires: pkgconfig(cairo-svg) >= %{cairo_ver}
49 %{?with_qt4:BuildRequires: qt4-build}
50 BuildRequires: sed >= 4.0
52 BuildRequires: tar >= 1:1.22
54 BuildRequires: zlib-devel
55 Requires: openjpeg >= 1.5
56 BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
59 A common PDF rendering library for integrating PDF viewing into
60 desktop applications (based on the xpdf-3.0 code base).
62 %description -l pl.UTF-8
63 Wspólna biblioteka renderująca PDF do integrowania oglądania PDF w
64 aplikacjach desktopowych (oparta na kodzie xpdf-3.0).
67 Summary: Poppler header files
68 Summary(pl.UTF-8): Pliki nagłówkowe biblioteki Poppler
69 Group: Development/Libraries
70 Requires: %{name} = %{version}-%{release}
72 Requires: fontconfig-devel >= 2.0.0
73 Requires: freetype-devel >= 2.0
75 Requires: libjpeg-devel
76 Requires: libpng-devel
77 Requires: libstdc++-devel
78 Requires: libtiff-devel
79 Requires: openjpeg-devel >= 1.5
83 Header files for the Poppler library.
85 %description devel -l pl.UTF-8
86 Pliki nagłówkowe biblioteki Poppler.
89 Summary: Poppler static libraries
90 Summary(pl.UTF-8): Statyczne biblioteki Poppler
91 Group: Development/Libraries
92 Requires: %{name}-devel = %{version}-%{release}
95 Poppler static libraries.
97 %description static -l pl.UTF-8
98 Statyczne biblioteki Poppler.
101 Summary: Poppler library API documentation
102 Summary(pl.UTF-8): Dokumentacja API biblioteki Poppler
104 Requires: gtk-doc-common
107 Poppler library API documentation.
109 %description apidocs -l pl.UTF-8
110 Dokumentacja API biblioteki Poppler.
113 Summary: Cpp wrapper for poppler
114 Summary(pl.UTF-8): Wrapper cpp dla popplera
116 Requires: %{name} = %{version}-%{release}
119 Cpp wrapper for poppler.
121 %description cpp -l pl.UTF-8
122 Wrapper cpp dla popplera.
125 Summary: Header files for cpp wrapper for poppler
126 Summary(pl.UTF-8): Pliki nagłówkowe wrappera cpp dla popplera
127 Group: Development/Libraries
128 Requires: %{name}-cpp = %{version}-%{release}
129 Requires: %{name}-devel = %{version}-%{release}
131 %description cpp-devel
132 Header files for cpp wrapper for poppler.
134 %description cpp-devel -l pl.UTF-8
135 Pliki nagłówkowe wrappera cpp dla popplera.
138 Summary: Static version of cpp wrapper for poppler
139 Summary(pl.UTF-8): Statyczna wersja wrappera cpp dla popplera
140 Group: Development/Libraries
141 Requires: %{name}-cpp-devel = %{version}-%{release}
143 %description cpp-static
144 Static version of cpp wrapper for poppler.
146 %description cpp-static -l pl.UTF-8
147 Statyczna wersja wrappera cpp dla popplera.
150 Summary: GLib wrapper for poppler
151 Summary(pl.UTF-8): Wrapper GLib dla popplera
153 Requires: %{name} = %{version}-%{release}
154 %{?with_cairo:Requires: cairo >= %{cairo_ver}}
155 Requires: glib2 >= 1:2.18.0
158 GLib wrapper for poppler.
160 %description glib -l pl.UTF-8
161 Wrapper GLib dla popplera.
164 Summary: Header files for GLib wrapper for poppler
165 Summary(pl.UTF-8): Pliki nagłówkowe wrappera GLib dla popplera
166 Group: Development/Libraries
167 Requires: %{name}-devel = %{version}-%{release}
168 Requires: %{name}-glib = %{version}-%{release}
169 %{?with_cairo:Requires: cairo-devel >= %{cairo_ver}}
170 Requires: glib2-devel >= 1:2.18.0
172 %description glib-devel
173 Header files for GLib wrapper for poppler.
175 %description glib-devel -l pl.UTF-8
176 Pliki nagłówkowe wrappera GLib dla popplera.
179 Summary: Static version of GLib wrapper for poppler
180 Summary(pl.UTF-8): Statyczna wersja wrappera GLib dla popplera
181 Group: Development/Libraries
182 Requires: %{name}-glib-devel = %{version}-%{release}
184 %description glib-static
185 Static version of GLib wrapper for poppler.
187 %description glib-static -l pl.UTF-8
188 Statyczna wersja wrappera GLib dla popplera.
191 Summary: Qt4 wrapper for poppler
192 Summary(pl.UTF-8): Wrapper Qt4 dla popplera
194 Requires: %{name} = %{version}-%{release}
195 Requires: QtGui >= 4.4.0
196 Requires: QtXml >= 4.4.0
197 Obsoletes: poppler-qt
200 Qt4 wrapper for poppler.
202 %description Qt -l pl.UTF-8
203 Wrapper Qt4 dla popplera.
206 Summary: Header files for Qt4 wrapper for poppler
207 Summary(pl.UTF-8): Pliki nagłówkowe wrappera Qt4 dla popplera
208 Group: Development/Libraries
209 Requires: %{name}-Qt = %{version}-%{release}
210 Requires: %{name}-devel = %{version}-%{release}
211 Requires: QtGui-devel >= 4.4.0
212 Requires: QtXml-devel >= 4.4.0
213 Obsoletes: poppler-qt-devel
215 %description Qt-devel
216 Header files for Qt4 wrapper for poppler.
218 %description Qt-devel -l pl.UTF-8
219 Pliki nagłówkowe wrapper Qt4 dla popplera.
222 Summary: Static version of Qt4 wrapper for poppler
223 Summary(pl.UTF-8): Statyczna wersja wrappera Qt4 dla popplera
224 Group: Development/Libraries
225 Requires: %{name}-Qt-devel = %{version}-%{release}
226 Obsoletes: poppler-qt-static
228 %description Qt-static
229 Static version of Qt4 wrapper for poppler.
231 %description Qt-static -l pl.UTF-8
232 Statyczna wersja wrappera Qt4 dla popplera.
235 Summary: Set of tools for viewing information and converting PDF files
236 Summary(pl.UTF-8): Zestaw narzędzi do wyświetlania informacji i konwertowania plików PDF
237 Group: Applications/Publishing
240 Obsoletes: pdftohtml-pdftops
241 Obsoletes: poppler-utils
242 Obsoletes: xpdf-tools
245 Package contains utilites for PDF files. These utilities allow to
246 - extract information about PDF files,
247 - extract images from PDF files,
248 - convert PDF files to HTML, plain text and PS formats.
250 %description progs -l pl.UTF-8
251 Pakiet zawiera zestaw narzędzi do plików PDF. Programy te umożliwiają
252 - wyświetlanie informacji o plikach PDF,
253 - wydobywanie obrazków z plików PDF,
254 - konwersję plików PDF do formatów takich jak HTML, PS czy też
261 %{?with_apidocs:%{__gtkdocize}}
268 MOCQT4=/usr/bin/moc-qt4 \
271 %{?with_apidocs:--enable-gtk-doc} \
272 %{!?with_cairo:--disable-cairo-output} \
273 %{!?with_cpp:--disable-poppler-cpp} \
274 %{!?with_glib:--disable-poppler-glib} \
275 %{!?with_qt4:--disable-poppler-qt4} \
276 --disable-silent-rules \
277 --enable-xpdf-headers \
279 --enable-dependency-tracking \
280 --with-html-dir=%{_gtkdocdir}
285 rm -rf $RPM_BUILD_ROOT
288 DESTDIR=$RPM_BUILD_ROOT
290 %if %{without apidocs}
291 # why it still installs them, brr
292 %{__rm} -rf $RPM_BUILD_ROOT%{_gtkdocdir}/poppler || :
295 %{__rm} $RPM_BUILD_ROOT%{_libdir}/*.la
298 rm -rf $RPM_BUILD_ROOT
300 %post -p /sbin/ldconfig
301 %postun -p /sbin/ldconfig
303 %post cpp -p /sbin/ldconfig
304 %postun cpp -p /sbin/ldconfig
306 %post glib -p /sbin/ldconfig
307 %postun glib -p /sbin/ldconfig
309 %post Qt -p /sbin/ldconfig
310 %postun Qt -p /sbin/ldconfig
313 %defattr(644,root,root,755)
314 %doc AUTHORS ChangeLog NEWS README* TODO
315 %attr(755,root,root) %{_libdir}/libpoppler.so.*.*.*
316 %attr(755,root,root) %ghost %{_libdir}/libpoppler.so.43
319 %defattr(644,root,root,755)
320 %attr(755,root,root) %{_libdir}/libpoppler.so
321 %dir %{_includedir}/poppler
322 %{_includedir}/poppler/poppler-config.h
323 %{_includedir}/poppler/[ABCDEFGHJLMNOPRSTUVX]*.h
324 %{_includedir}/poppler/fofi
325 %{_includedir}/poppler/goo
326 %{_includedir}/poppler/splash
327 %{_pkgconfigdir}/poppler.pc
328 %{?with_cairo:%{_pkgconfigdir}/poppler-cairo.pc}
329 %{_pkgconfigdir}/poppler-splash.pc
332 %defattr(644,root,root,755)
333 %{_libdir}/libpoppler.a
337 %defattr(644,root,root,755)
338 %{_gtkdocdir}/poppler
343 %defattr(644,root,root,755)
344 %attr(755,root,root) %{_libdir}/libpoppler-cpp.so.*.*.*
345 %attr(755,root,root) %ghost %{_libdir}/libpoppler-cpp.so.0
348 %defattr(644,root,root,755)
349 %attr(755,root,root) %{_libdir}/libpoppler-cpp.so
350 %{_includedir}/poppler/cpp
351 %{_pkgconfigdir}/poppler-cpp.pc
354 %defattr(644,root,root,755)
355 %{_libdir}/libpoppler-cpp.a
360 %defattr(644,root,root,755)
361 %attr(755,root,root) %{_libdir}/libpoppler-glib.so.*.*.*
362 %attr(755,root,root) %ghost %{_libdir}/libpoppler-glib.so.8
363 %{_libdir}/girepository-1.0/Poppler-0.18.typelib
366 %defattr(644,root,root,755)
367 %attr(755,root,root) %{_libdir}/libpoppler-glib.so
368 %{_includedir}/poppler/glib
369 %{_pkgconfigdir}/poppler-glib.pc
370 %{_datadir}/gir-1.0/Poppler-0.18.gir
373 %defattr(644,root,root,755)
374 %{_libdir}/libpoppler-glib.a
379 %defattr(644,root,root,755)
380 %attr(755,root,root) %{_libdir}/libpoppler-qt4.so.*.*.*
381 %attr(755,root,root) %ghost %{_libdir}/libpoppler-qt4.so.4
384 %defattr(644,root,root,755)
385 %attr(755,root,root) %{_libdir}/libpoppler-qt4.so
386 %{_includedir}/poppler/qt4
387 %{_pkgconfigdir}/poppler-qt4.pc
390 %defattr(644,root,root,755)
391 %{_libdir}/libpoppler-qt4.a
395 %defattr(644,root,root,755)
396 %attr(755,root,root) %{_bindir}/pdf*