2 # - qt4 causes main library to be linked with qt4 crap
3 # and this causes that kfile some.pdf crashes in qt4 code.
4 # qt4 disabled == kfile works nicely
7 %bcond_without apidocs # disable gtk-doc
8 %bcond_without cairo # disable Cairo backend
9 %bcond_without qt # disable qt wrapper
10 %bcond_with qt4 # disable qt4 wrapper
12 %define cairo_ver 1.0.0
14 Summary: PDF rendering library
15 Summary(pl): Biblioteka renderuj±ca PDF
21 Source0: http://poppler.freedesktop.org/%{name}-%{version}.tar.gz
22 # Source0-md5: a136cd731892f4570933034ba97c8704
23 Patch0: %{name}-link.patch
24 Patch1: %{name}-freetype_includes.patch
25 Patch2: %{name}-qt_m4.patch
26 Patch3: %{name}-gcc4.patch
27 URL: http://poppler.freedesktop.org/
28 %{?with_qt4:BuildRequires: QtGui-devel}
29 BuildRequires: autoconf >= 2.59
30 BuildRequires: automake
31 %{?with_cairo:BuildRequires: cairo-devel >= %{cairo_ver}}
32 BuildRequires: fontconfig-devel
33 BuildRequires: freetype-devel >= 2.0
34 BuildRequires: gtk+2-devel >= 2.0.0
35 %{?with_apidocs:BuildRequires: gtk-doc >= 1.0}
36 BuildRequires: libstdc++-devel
37 BuildRequires: libtool >= 2:1.5
38 BuildRequires: pkgconfig
39 %{?with_qt:BuildRequires: qt-devel}
40 %{?with_cairo:Requires: cairo >= %{cairo_ver}}
41 BuildRequires: zlib-devel
42 BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
45 A common PDF rendering library for integrating PDF viewing into
46 desktop applications (based on the xpdf-3.0 code base).
49 Wspólna biblioteka renderuj±ca PDF do integrowania ogl±dania PDF w
50 aplikacjach desktopowych (oparta na kodzie xpdf-3.0).
53 Summary: Poppler header files
54 Summary(pl): Pliki nag³ówkowe biblioteki Poppler
55 Group: Development/Libraries
56 Requires: %{name} = %{version}-%{release}
57 %{?with_cairo:Requires: cairo-devel >= %{cairo_ver}}
58 Requires: fontconfig-devel
59 Requires: freetype-devel >= 2.0
60 Requires: libstdc++-devel
63 Header files for the Poppler library.
65 %description devel -l pl
66 Pliki nag³ówkowe biblioteki Poppler.
69 Summary: Poppler static libraries
70 Summary(pl): Statyczne biblioteki Poppler
71 Group: Development/Libraries
72 Requires: %{name}-devel = %{version}-%{release}
75 Poppler static libraries.
77 %description static -l pl
78 Statyczne biblioteki Poppler.
81 Summary: GLib wrapper for poppler
82 Summary(pl): Wrapper GLib dla popplera
84 Requires: %{name} = %{version}-%{release}
87 GLib wrapper for poppler.
89 %description glib -l pl
90 Wrapper GLib dla popplera.
93 Summary: Header files for GLib wrapper for poppler
94 Summary(pl): Pliki nag³ówkowe wrappera GLib dla popplera
95 Group: Development/Libraries
96 Requires: %{name}-devel = %{version}-%{release}
97 Requires: %{name}-glib = %{version}-%{release}
98 Requires: gtk+2-devel >= 2.0.0
100 %description glib-devel
101 Header files for GLib wrapper for poppler.
103 %description glib-devel -l pl
104 Pliki nag³ówkowe wrappera GLib dla popplera.
107 Summary: Static version of GLib wrapper for poppler
108 Summary(pl): Statyczna wersja wrappera GLib dla popplera
109 Group: Development/Libraries
110 Requires: %{name}-glib-devel = %{version}-%{release}
112 %description glib-static
113 Static version of GLib wrapper for poppler.
115 %description glib-static -l pl
116 Statyczna wersja wrappera GLib dla popplera.
119 Summary: Qt wrapper for poppler
120 Summary(pl): Wrapper Qt dla popplera
122 Requires: %{name} = %{version}-%{release}
125 Qt wrapper for poppler.
127 %description qt -l pl
128 Wrapper Qt dla popplera.
131 Summary: Header files for Qt wrapper for poppler
132 Summary(pl): Pliki nag³ówkowe wrappera Qt dla popplera
133 Group: Development/Libraries
134 Requires: %{name}-devel = %{version}-%{release}
135 Requires: %{name}-qt = %{version}-%{release}
138 %description qt-devel
139 Header files for Qt wrapper for poppler.
141 %description qt-devel -l pl
142 Pliki nag³ówkowe wrappera Qt dla popplera.
145 Summary: Static version of Qt wrapper for poppler
146 Summary(pl): Statyczna wersja wrappera Qt dla popplera
147 Group: Development/Libraries
148 Requires: %{name}-qt-devel = %{version}-%{release}
150 %description qt-static
151 Static version of Qt wrapper for poppler.
153 %description qt-static -l pl
154 Statyczna wersja wrappera Qt dla popplera.
157 Summary: Qt4 wrapper for poppler
158 Summary(pl): Wrapper Qt4 dla popplera
160 Requires: %{name} = %{version}-%{release}
163 Qt4 wrapper for poppler.
165 %description Qt -l pl
166 Wrapper Qt4 dla popplera.
169 Summary: Header files for Qt4 wrapper for poppler
170 Summary(pl): Pliki nag³ówkowe wrappera Qt4 dla popplera
171 Group: Development/Libraries
172 Requires: %{name}-devel = %{version}-%{release}
173 Requires: %{name}-Qt = %{version}-%{release}
174 Requires: QtGui-devel
176 %description Qt-devel
177 Header files for Qt4 wrapper for poppler.
179 %description Qt-devel -l pl
180 Pliki nag³ówkowe wrapper Qt4 dla popplera.
183 Summary: Static version of Qt4 wrapper for poppler
184 Summary(pl): 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
192 Statyczna wersja wrappera Qt4 dla popplera.
195 Summary: Set of tools for viewing information and converting PDF files
196 Summary(pl): 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
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
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.*.*.*
268 %defattr(644,root,root,755)
269 %attr(755,root,root) %{_libdir}/libpoppler.so
270 %{_libdir}/libpoppler.la
271 %{_includedir}/poppler
272 %exclude %{_includedir}/poppler/glib
273 %{?with_qt:%exclude %{_includedir}/poppler/poppler-qt.h}
274 %{?with_qt4:%exclude %{_includedir}/poppler/poppler-qt4.h}
275 %{_pkgconfigdir}/poppler.pc
276 %{?with_cairo:%{_pkgconfigdir}/poppler-cairo.pc}
277 %{_pkgconfigdir}/poppler-splash.pc
279 %{_gtkdocdir}/poppler
282 %defattr(644,root,root,755)
283 %{_libdir}/libpoppler.a
286 %defattr(644,root,root,755)
287 %attr(755,root,root) %{_libdir}/libpoppler-glib.so.*.*.*
290 %defattr(644,root,root,755)
291 %attr(755,root,root) %{_libdir}/libpoppler-glib.so
292 %{_libdir}/libpoppler-glib.la
293 %{_includedir}/poppler/glib
294 %{_pkgconfigdir}/poppler-glib.pc
297 %defattr(644,root,root,755)
298 %{_libdir}/libpoppler-glib.a
302 %defattr(644,root,root,755)
303 %attr(755,root,root) %{_libdir}/libpoppler-qt.so.*.*.*
306 %defattr(644,root,root,755)
307 %attr(755,root,root) %{_libdir}/libpoppler-qt.so
308 %{_libdir}/libpoppler-qt.la
309 %{_includedir}/poppler/poppler-qt.h
310 %{_pkgconfigdir}/poppler-qt.pc
313 %defattr(644,root,root,755)
314 %{_libdir}/libpoppler-qt.a
319 %defattr(644,root,root,755)
320 %attr(755,root,root) %{_libdir}/libpoppler-qt4.so.*.*.*
323 %defattr(644,root,root,755)
324 %attr(755,root,root) %{_libdir}/libpoppler-qt4.so
325 %{_libdir}/libpoppler-qt4.la
326 %{_includedir}/poppler/poppler-qt4.h
327 %{_pkgconfigdir}/poppler-qt4.pc
330 %defattr(644,root,root,755)
331 %{_libdir}/libpoppler-qt4.a
335 %defattr(644,root,root,755)
336 %attr(755,root,root) %{_bindir}/pdf*