2 # - qt and Qt packages make file collisions on case insensitive filesystems,
3 # consider adding version suffix to either of the pckages
6 %bcond_without apidocs # disable gtk-doc
7 %bcond_without cairo # disable Cairo backend
8 %bcond_without qt # disable qt wrapper
9 %bcond_without qt4 # disable qt4 wrapper
10 %bcond_without cpp # disable cpp wrapper
11 %bcond_without glib # disable glib wrapper
12 %bcond_without gdk # disable gdk support in glib wrapper
14 %define cairo_ver 1.10.0
16 Summary: PDF rendering library
17 Summary(pl.UTF-8): Biblioteka renderująca PDF
23 Source0: http://poppler.freedesktop.org/%{name}-%{version}.tar.gz
24 # Source0-md5: 3afa28e3c8c4f06b0fbca3c91e06394e
25 URL: http://poppler.freedesktop.org/
26 %{?with_qt4:BuildRequires: QtGui-devel >= 4.4.0}
27 %{?with_qt4:BuildRequires: QtTest-devel >= 4.4.0}
28 %{?with_qt4:BuildRequires: QtXml-devel >= 4.4.0}
29 BuildRequires: autoconf >= 2.59
30 BuildRequires: automake
31 %{?with_cairo:BuildRequires: cairo-devel >= %{cairo_ver}}
32 BuildRequires: curl-devel
33 BuildRequires: docbook-dtd412-xml
34 BuildRequires: fontconfig-devel >= 2.0.0
35 BuildRequires: freetype-devel >= 2.0
36 BuildRequires: gettext-devel
37 %{?with_glib:BuildRequires: glib2-devel >= 1:2.18.0}
38 BuildRequires: gobject-introspection-devel >= 0.6.7
39 %{?with_apidocs:BuildRequires: gtk-doc >= 1.14}
40 %{?with_gdk:BuildRequires: gtk+2-devel}
41 BuildRequires: lcms-devel
42 BuildRequires: libjpeg-devel
43 BuildRequires: libstdc++-devel
44 BuildRequires: libtool >= 2:1.5
45 BuildRequires: libxml2-devel >= 2.0
46 BuildRequires: openjpeg-devel
47 BuildRequires: pkgconfig >= 1:0.18
48 %{?with_qt:BuildRequires: qt-devel >= 3.0}
49 %{?with_qt4:BuildRequires: qt4-build}
50 BuildRequires: sed >= 4.0
52 BuildRequires: zlib-devel
53 BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
56 A common PDF rendering library for integrating PDF viewing into
57 desktop applications (based on the xpdf-3.0 code base).
59 %description -l pl.UTF-8
60 Wspólna biblioteka renderująca PDF do integrowania oglądania PDF w
61 aplikacjach desktopowych (oparta na kodzie xpdf-3.0).
64 Summary: Poppler header files
65 Summary(pl.UTF-8): Pliki nagłówkowe biblioteki Poppler
66 Group: Development/Libraries
67 Requires: %{name} = %{version}-%{release}
68 Requires: fontconfig-devel >= 2.0.0
69 Requires: freetype-devel >= 2.0
71 Requires: libstdc++-devel
72 Requires: openjpeg-devel
75 Header files for the Poppler library.
77 %description devel -l pl.UTF-8
78 Pliki nagłówkowe biblioteki Poppler.
81 Summary: Poppler static libraries
82 Summary(pl.UTF-8): Statyczne biblioteki Poppler
83 Group: Development/Libraries
84 Requires: %{name}-devel = %{version}-%{release}
87 Poppler static libraries.
89 %description static -l pl.UTF-8
90 Statyczne biblioteki Poppler.
93 Summary: Poppler library API documentation
94 Summary(pl.UTF-8): Dokumentacja API biblioteki Poppler
96 Requires: gtk-doc-common
99 Poppler library API documentation.
101 %description apidocs -l pl.UTF-8
102 Dokumentacja API biblioteki Poppler.
105 Summary: Cpp wrapper for poppler
106 Summary(pl.UTF-8): Wrapper cpp dla popplera
108 Requires: %{name} = %{version}-%{release}
111 Cpp wrapper for poppler.
113 %description cpp -l pl.UTF-8
114 Wrapper cpp dla popplera.
117 Summary: Header files for cpp wrapper for poppler
118 Summary(pl.UTF-8): Pliki nagłówkowe wrappera cpp dla popplera
119 Group: Development/Libraries
120 Requires: %{name}-cpp = %{version}-%{release}
121 Requires: %{name}-devel = %{version}-%{release}
123 %description cpp-devel
124 Header files for cpp wrapper for poppler.
126 %description cpp-devel -l pl.UTF-8
127 Pliki nagłówkowe wrappera cpp dla popplera.
130 Summary: Static version of cpp wrapper for poppler
131 Summary(pl.UTF-8): Statyczna wersja wrappera cpp dla popplera
132 Group: Development/Libraries
133 Requires: %{name}-cpp-devel = %{version}-%{release}
135 %description cpp-static
136 Static version of cpp wrapper for poppler.
138 %description cpp-static -l pl.UTF-8
139 Statyczna wersja wrappera cpp dla popplera.
142 Summary: GLib wrapper for poppler
143 Summary(pl.UTF-8): Wrapper GLib dla popplera
145 Requires: %{name} = %{version}-%{release}
146 %{?with_cairo:Requires: cairo >= %{cairo_ver}}
147 Requires: glib2 >= 1:2.18.0
150 GLib wrapper for poppler.
152 %description glib -l pl.UTF-8
153 Wrapper GLib dla popplera.
156 Summary: Header files for GLib wrapper for poppler
157 Summary(pl.UTF-8): Pliki nagłówkowe wrappera GLib dla popplera
158 Group: Development/Libraries
159 Requires: %{name}-devel = %{version}-%{release}
160 Requires: %{name}-glib = %{version}-%{release}
161 %{?with_cairo:Requires: cairo-devel >= %{cairo_ver}}
162 Requires: glib2-devel >= 1:2.18.0
163 %{?with_gdk:Provides: poppler-glib-devel(gdk)}
165 %description glib-devel
166 Header files for GLib wrapper for poppler.
168 %description glib-devel -l pl.UTF-8
169 Pliki nagłówkowe wrappera GLib dla popplera.
172 Summary: Static version of GLib wrapper for poppler
173 Summary(pl.UTF-8): Statyczna wersja wrappera GLib dla popplera
174 Group: Development/Libraries
175 Requires: %{name}-glib-devel = %{version}-%{release}
177 %description glib-static
178 Static version of GLib wrapper for poppler.
180 %description glib-static -l pl.UTF-8
181 Statyczna wersja wrappera GLib dla popplera.
184 Summary: Qt wrapper for poppler
185 Summary(pl.UTF-8): Wrapper Qt dla popplera
187 Requires: %{name} = %{version}-%{release}
190 Qt wrapper for poppler.
192 %description qt -l pl.UTF-8
193 Wrapper Qt dla popplera.
196 Summary: Header files for Qt wrapper for poppler
197 Summary(pl.UTF-8): Pliki nagłówkowe wrappera Qt dla popplera
198 Group: Development/Libraries
199 Requires: %{name}-devel = %{version}-%{release}
200 Requires: %{name}-qt = %{version}-%{release}
203 %description qt-devel
204 Header files for Qt wrapper for poppler.
206 %description qt-devel -l pl.UTF-8
207 Pliki nagłówkowe wrappera Qt dla popplera.
210 Summary: Static version of Qt wrapper for poppler
211 Summary(pl.UTF-8): Statyczna wersja wrappera Qt dla popplera
212 Group: Development/Libraries
213 Requires: %{name}-qt-devel = %{version}-%{release}
215 %description qt-static
216 Static version of Qt wrapper for poppler.
218 %description qt-static -l pl.UTF-8
219 Statyczna wersja wrappera Qt dla popplera.
222 Summary: Qt4 wrapper for poppler
223 Summary(pl.UTF-8): Wrapper Qt4 dla popplera
225 Requires: %{name} = %{version}-%{release}
226 Requires: QtGui >= 4.4.0
227 Requires: QtXml >= 4.4.0
230 Qt4 wrapper for poppler.
232 %description Qt -l pl.UTF-8
233 Wrapper Qt4 dla popplera.
236 Summary: Header files for Qt4 wrapper for poppler
237 Summary(pl.UTF-8): Pliki nagłówkowe wrappera Qt4 dla popplera
238 Group: Development/Libraries
239 Requires: %{name}-Qt = %{version}-%{release}
240 Requires: %{name}-devel = %{version}-%{release}
241 Requires: QtGui-devel >= 4.4.0
242 Requires: QtXml-devel >= 4.4.0
244 %description Qt-devel
245 Header files for Qt4 wrapper for poppler.
247 %description Qt-devel -l pl.UTF-8
248 Pliki nagłówkowe wrapper Qt4 dla popplera.
251 Summary: Static version of Qt4 wrapper for poppler
252 Summary(pl.UTF-8): Statyczna wersja wrappera Qt4 dla popplera
253 Group: Development/Libraries
254 Requires: %{name}-Qt-devel = %{version}-%{release}
256 %description Qt-static
257 Static version of Qt4 wrapper for poppler.
259 %description Qt-static -l pl.UTF-8
260 Statyczna wersja wrappera Qt4 dla popplera.
263 Summary: Set of tools for viewing information and converting PDF files
264 Summary(pl.UTF-8): Zestaw narzędzi do wyświetlania informacji i konwertowania plików PDF
265 Group: Applications/Publishing
268 Obsoletes: pdftohtml-pdftops
269 Obsoletes: poppler-utils
270 Obsoletes: xpdf-tools
273 Package contains utilites for PDF files. These utilities allow to
274 - extract information about PDF files,
275 - extract images from PDF files,
276 - convert PDF files to HTML, plain text and PS formats.
278 %description progs -l pl.UTF-8
279 Pakiet zawiera zestaw narzędzi do plików PDF. Programy te umożliwiają
280 - wyświetlanie informacji o plikach PDF,
281 - wydobywanie obrazków z plików PDF,
282 - konwersję plików PDF do formatów takich jak HTML, PS czy też
288 # fix link with Qt 3 libraries
289 %{__sed} -i 's,(POPPLER_QT_LIBS),(libqt3_LIBS),' qt/Makefile.am
292 %{?with_apidocs:%{__gtkdocize}}
299 QTINC=%{_includedir}/qt \
303 %{?with_apidocs:--enable-gtk-doc} \
304 %{!?with_cairo:--disable-cairo-output} \
305 %{!?with_cpp:--disable-poppler-cpp} \
306 %{!?with_glib:--disable-poppler-glib} \
307 %{!?with_qt:--disable-poppler-qt} \
308 %{!?with_qt4:--disable-poppler-qt4} \
309 --disable-silent-rules \
310 --enable-xpdf-headers \
312 --enable-dependency-tracking \
313 --with-html-dir=%{_gtkdocdir}
318 rm -rf $RPM_BUILD_ROOT
321 DESTDIR=$RPM_BUILD_ROOT
323 %if %{without apidocs}
324 # why it still installs them, brr
325 %{__rm} -rf $RPM_BUILD_ROOT%{_gtkdocdir}/poppler || :
328 %{__rm} $RPM_BUILD_ROOT%{_libdir}/*.la
331 rm -rf $RPM_BUILD_ROOT
333 %post -p /sbin/ldconfig
334 %postun -p /sbin/ldconfig
336 %post cpp -p /sbin/ldconfig
337 %postun cpp -p /sbin/ldconfig
339 %post glib -p /sbin/ldconfig
340 %postun glib -p /sbin/ldconfig
342 %post qt -p /sbin/ldconfig
343 %postun qt -p /sbin/ldconfig
345 %post Qt -p /sbin/ldconfig
346 %postun Qt -p /sbin/ldconfig
349 %defattr(644,root,root,755)
350 %doc AUTHORS ChangeLog NEWS README* TODO
351 %attr(755,root,root) %{_libdir}/libpoppler.so.*.*.*
352 %attr(755,root,root) %ghost %{_libdir}/libpoppler.so.13
355 %defattr(644,root,root,755)
356 %attr(755,root,root) %{_libdir}/libpoppler.so
357 %dir %{_includedir}/poppler
358 %{_includedir}/poppler/poppler-config.h
359 %{_includedir}/poppler/[ABCDEFGHJLMNOPRSTUX]*.h
360 %{_includedir}/poppler/fofi
361 %{_includedir}/poppler/goo
362 %{_includedir}/poppler/splash
363 %{_pkgconfigdir}/poppler.pc
364 %{?with_cairo:%{_pkgconfigdir}/poppler-cairo.pc}
365 %{_pkgconfigdir}/poppler-splash.pc
368 %defattr(644,root,root,755)
369 %{_libdir}/libpoppler.a
373 %defattr(644,root,root,755)
374 %{_gtkdocdir}/poppler
379 %defattr(644,root,root,755)
380 %attr(755,root,root) %{_libdir}/libpoppler-cpp.so.*.*.*
381 %attr(755,root,root) %ghost %{_libdir}/libpoppler-cpp.so.0
384 %defattr(644,root,root,755)
385 %attr(755,root,root) %{_libdir}/libpoppler-cpp.so
386 %{_includedir}/poppler/cpp
387 %{_pkgconfigdir}/poppler-cpp.pc
390 %defattr(644,root,root,755)
391 %{_libdir}/libpoppler-cpp.a
396 %defattr(644,root,root,755)
397 %attr(755,root,root) %{_libdir}/libpoppler-glib.so.*.*.*
398 %attr(755,root,root) %ghost %{_libdir}/libpoppler-glib.so.6
399 %{_libdir}/girepository-1.0/Poppler-0.16.typelib
402 %defattr(644,root,root,755)
403 %attr(755,root,root) %{_libdir}/libpoppler-glib.so
404 %{_includedir}/poppler/glib
405 %{_pkgconfigdir}/poppler-glib.pc
406 %{_datadir}/gir-1.0/Poppler-0.16.gir
409 %defattr(644,root,root,755)
410 %{_libdir}/libpoppler-glib.a
415 %defattr(644,root,root,755)
416 %attr(755,root,root) %{_libdir}/libpoppler-qt.so.*.*.*
417 %attr(755,root,root) %ghost %{_libdir}/libpoppler-qt.so.3
420 %defattr(644,root,root,755)
421 %attr(755,root,root) %{_libdir}/libpoppler-qt.so
422 %{_includedir}/poppler/qt3
423 %{_pkgconfigdir}/poppler-qt.pc
426 %defattr(644,root,root,755)
427 %{_libdir}/libpoppler-qt.a
432 %defattr(644,root,root,755)
433 %attr(755,root,root) %{_libdir}/libpoppler-qt4.so.*.*.*
434 %attr(755,root,root) %ghost %{_libdir}/libpoppler-qt4.so.3
437 %defattr(644,root,root,755)
438 %attr(755,root,root) %{_libdir}/libpoppler-qt4.so
439 %{_includedir}/poppler/qt4
440 %{_pkgconfigdir}/poppler-qt4.pc
443 %defattr(644,root,root,755)
444 %{_libdir}/libpoppler-qt4.a
448 %defattr(644,root,root,755)
449 %attr(755,root,root) %{_bindir}/pdf*