3 %bcond_without apidocs # disable gtk-doc
4 %bcond_without cairo # disable Cairo backend
5 %bcond_without qt # disable qt wrapper
6 %bcond_without qt4 # disable qt4 wrapper
8 %define cairo_ver 1.4.0
10 Summary: PDF rendering library
11 Summary(pl.UTF-8): Biblioteka renderująca PDF
17 Source0: http://poppler.freedesktop.org/%{name}-%{version}.tar.gz
18 # Source0-md5: d5631bdbde9dda89ff20796005ece4d4
19 Patch0: %{name}-qt4.patch
20 URL: http://poppler.freedesktop.org/
21 %{?with_qt4:BuildRequires: QtGui-devel >= 4.1.0}
22 %{?with_qt4:BuildRequires: QtXml-devel >= 4.1.0}
23 %{?with_qt4:BuildRequires: QtTest-devel >= 4.1.0}
24 %{?with_qt4:BuildRequires: qt4-build}
25 BuildRequires: autoconf >= 2.59
26 BuildRequires: automake
27 %{?with_cairo:BuildRequires: cairo-devel >= %{cairo_ver}}
28 BuildRequires: fontconfig-devel
29 BuildRequires: freetype-devel >= 2.0
30 BuildRequires: gtk+2-devel >= 2:2.8.0
31 %{?with_apidocs:BuildRequires: gtk-doc >= 1.0}
32 BuildRequires: libjpeg-devel
33 BuildRequires: libstdc++-devel
34 BuildRequires: libxml2-devel >= 2.0
35 BuildRequires: libtool >= 2:1.5
36 BuildRequires: pkgconfig
37 %{?with_qt:BuildRequires: qt-devel >= 3.0}
38 BuildRequires: zlib-devel
39 BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
42 A common PDF rendering library for integrating PDF viewing into
43 desktop applications (based on the xpdf-3.0 code base).
45 %description -l pl.UTF-8
46 Wspólna biblioteka renderująca PDF do integrowania oglądania PDF w
47 aplikacjach desktopowych (oparta na kodzie xpdf-3.0).
50 Summary: Poppler header files
51 Summary(pl.UTF-8): Pliki nagłówkowe biblioteki Poppler
52 Group: Development/Libraries
53 Requires: %{name} = %{version}-%{release}
54 Requires: fontconfig-devel
55 Requires: freetype-devel >= 2.0
56 Requires: libstdc++-devel
59 Header files for the Poppler library.
61 %description devel -l pl.UTF-8
62 Pliki nagłówkowe biblioteki Poppler.
65 Summary: Poppler static libraries
66 Summary(pl.UTF-8): Statyczne biblioteki Poppler
67 Group: Development/Libraries
68 Requires: %{name}-devel = %{version}-%{release}
71 Poppler static libraries.
73 %description static -l pl.UTF-8
74 Statyczne biblioteki Poppler.
77 Summary: GLib wrapper for poppler
78 Summary(pl.UTF-8): Wrapper GLib dla popplera
80 Requires: %{name} = %{version}-%{release}
81 %{?with_cairo:Requires: cairo >= %{cairo_ver}}
82 Requires: gtk+2 >= 2:2.8.0
85 GLib wrapper for poppler.
87 %description glib -l pl.UTF-8
88 Wrapper GLib dla popplera.
91 Summary: Header files for GLib wrapper for poppler
92 Summary(pl.UTF-8): Pliki nagłówkowe wrappera GLib dla popplera
93 Group: Development/Libraries
94 Requires: %{name}-devel = %{version}-%{release}
95 Requires: %{name}-glib = %{version}-%{release}
96 %{?with_cairo:Requires: cairo-devel >= %{cairo_ver}}
97 Requires: gtk+2-devel >= 2:2.8.0
99 %description glib-devel
100 Header files for GLib wrapper for poppler.
102 %description glib-devel -l pl.UTF-8
103 Pliki nagłówkowe wrappera GLib dla popplera.
106 Summary: Static version of GLib wrapper for poppler
107 Summary(pl.UTF-8): Statyczna wersja wrappera GLib dla popplera
108 Group: Development/Libraries
109 Requires: %{name}-glib-devel = %{version}-%{release}
111 %description glib-static
112 Static version of GLib wrapper for poppler.
114 %description glib-static -l pl.UTF-8
115 Statyczna wersja wrappera GLib dla popplera.
118 Summary: Qt wrapper for poppler
119 Summary(pl.UTF-8): Wrapper Qt dla popplera
121 Requires: %{name} = %{version}-%{release}
124 Qt wrapper for poppler.
126 %description qt -l pl.UTF-8
127 Wrapper Qt dla popplera.
130 Summary: Header files for Qt wrapper for poppler
131 Summary(pl.UTF-8): Pliki nagłówkowe wrappera Qt dla popplera
132 Group: Development/Libraries
133 Requires: %{name}-devel = %{version}-%{release}
134 Requires: %{name}-qt = %{version}-%{release}
137 %description qt-devel
138 Header files for Qt wrapper for poppler.
140 %description qt-devel -l pl.UTF-8
141 Pliki nagłówkowe wrappera Qt dla popplera.
144 Summary: Static version of Qt wrapper for poppler
145 Summary(pl.UTF-8): Statyczna wersja wrappera Qt dla popplera
146 Group: Development/Libraries
147 Requires: %{name}-qt-devel = %{version}-%{release}
149 %description qt-static
150 Static version of Qt wrapper for poppler.
152 %description qt-static -l pl.UTF-8
153 Statyczna wersja wrappera Qt dla popplera.
156 Summary: Qt4 wrapper for poppler
157 Summary(pl.UTF-8): Wrapper Qt4 dla popplera
159 Requires: %{name} = %{version}-%{release}
162 Qt4 wrapper for poppler.
164 %description Qt -l pl.UTF-8
165 Wrapper Qt4 dla popplera.
168 Summary: Header files for Qt4 wrapper for poppler
169 Summary(pl.UTF-8): Pliki nagłówkowe wrappera Qt4 dla popplera
170 Group: Development/Libraries
171 Requires: %{name}-devel = %{version}-%{release}
172 Requires: %{name}-Qt = %{version}-%{release}
173 Requires: QtGui-devel
174 Requires: QtXml-devel
176 %description Qt-devel
177 Header files for Qt4 wrapper for poppler.
179 %description Qt-devel -l pl.UTF-8
180 Pliki nagłówkowe wrapper Qt4 dla popplera.
183 Summary: Static version of Qt4 wrapper for poppler
184 Summary(pl.UTF-8): Statyczna wersja wrappera Qt4 dla popplera
185 Group: Development/Libraries
186 Requires: %{name}-Qt-devel = %{version}-%{release}
188 %description Qt-static
189 Static version of Qt4 wrapper for poppler.
191 %description Qt-static -l pl.UTF-8
192 Statyczna wersja wrappera Qt4 dla popplera.
195 Summary: Set of tools for viewing information and converting PDF files
196 Summary(pl.UTF-8): Zestaw narzędzi do wyświetlania informacji i konwertowania plików PDF
197 Group: Applications/Publishing
200 Obsoletes: pdftohtml-pdftops
201 Obsoletes: xpdf-tools
202 Obsoletes: poppler-utils
205 Package contains utilites for PDF files. These utilities allow to
206 - extract information about PDF files
207 - extract images from PDF files
208 - convert PDF files to HTML, plain text and PS formats
210 %description progs -l pl.UTF-8
211 Pakiet zawiera zestaw narzędzi do plików PDF. Programy te umożliwiają
212 - wyświetlanie informacji o plikach PDF
213 - wydobywanie obrazków z plików PDF
214 - konwersję plików PDF do formatów takich jak HTML, PS czy też czystego
222 %{?with_apidocs:%{__gtkdocize}}
229 QTINC=/usr/include/qt \
231 %{!?with_cairo:--disable-cairo-output} \
232 %{!?with_qt:--disable-poppler-qt} \
233 %{!?with_qt4:--disable-poppler-qt4} \
235 %{?with_apidocs:--enable-gtk-doc} \
236 --enable-xpdf-headers \
238 --with-html-dir=%{_gtkdocdir}
242 rm -rf $RPM_BUILD_ROOT
245 DESTDIR=$RPM_BUILD_ROOT
248 rm -rf $RPM_BUILD_ROOT
250 %post -p /sbin/ldconfig
251 %postun -p /sbin/ldconfig
253 %post glib -p /sbin/ldconfig
254 %postun glib -p /sbin/ldconfig
256 %post qt -p /sbin/ldconfig
257 %postun qt -p /sbin/ldconfig
259 %post Qt -p /sbin/ldconfig
260 %postun Qt -p /sbin/ldconfig
263 %defattr(644,root,root,755)
264 %doc AUTHORS ChangeLog NEWS README* TODO
265 %attr(755,root,root) %{_libdir}/libpoppler.so.*.*.*
266 %attr(755,root,root) %ghost %{_libdir}/libpoppler.so.3
269 %defattr(644,root,root,755)
270 %attr(755,root,root) %{_libdir}/libpoppler.so
271 %{_libdir}/libpoppler.la
272 %dir %{_includedir}/poppler
273 %{_includedir}/poppler/poppler-config.h
274 %{_includedir}/poppler/[ABCDEFGJLMNOPSTUX]*.h
275 %{_includedir}/poppler/Function.cc
276 %{_includedir}/poppler/goo
277 %{_includedir}/poppler/splash
278 %exclude %{_includedir}/poppler/glib
279 %{_pkgconfigdir}/poppler.pc
280 %{?with_cairo:%{_pkgconfigdir}/poppler-cairo.pc}
281 %{_pkgconfigdir}/poppler-splash.pc
283 %{_gtkdocdir}/poppler
286 %defattr(644,root,root,755)
287 %{_libdir}/libpoppler.a
290 %defattr(644,root,root,755)
291 %attr(755,root,root) %{_libdir}/libpoppler-glib.so.*.*.*
292 %attr(755,root,root) %ghost %{_libdir}/libpoppler-glib.so.3
295 %defattr(644,root,root,755)
296 %attr(755,root,root) %{_libdir}/libpoppler-glib.so
297 %{_libdir}/libpoppler-glib.la
298 %{_includedir}/poppler/glib
299 %{_pkgconfigdir}/poppler-glib.pc
302 %defattr(644,root,root,755)
303 %{_libdir}/libpoppler-glib.a
307 %defattr(644,root,root,755)
308 %attr(755,root,root) %{_libdir}/libpoppler-qt.so.*.*.*
309 %attr(755,root,root) %ghost %{_libdir}/libpoppler-qt.so.2
312 %defattr(644,root,root,755)
313 %attr(755,root,root) %{_libdir}/libpoppler-qt.so
314 %{_libdir}/libpoppler-qt.la
315 %{_includedir}/poppler/qt3
316 %{_pkgconfigdir}/poppler-qt.pc
319 %defattr(644,root,root,755)
320 %{_libdir}/libpoppler-qt.a
325 %defattr(644,root,root,755)
326 %attr(755,root,root) %{_libdir}/libpoppler-qt4.so.*.*.*
327 %attr(755,root,root) %ghost %{_libdir}/libpoppler-qt4.so.3
330 %defattr(644,root,root,755)
331 %attr(755,root,root) %{_libdir}/libpoppler-qt4.so
332 %{_libdir}/libpoppler-qt4.la
333 %{_includedir}/poppler/qt4
334 %{_pkgconfigdir}/poppler-qt4.pc
337 %defattr(644,root,root,755)
338 %{_libdir}/libpoppler-qt4.a
342 %defattr(644,root,root,755)
343 %attr(755,root,root) %{_bindir}/pdf*