3 %bcond_without apidocs # disable gtk-doc
4 %bcond_without cairo # disable Cairo backend
5 %bcond_without qt # disable qt wrapper
7 %define cairo_ver 1.0.0
9 Summary: PDF rendering library
10 Summary(pl): Biblioteka renderuj±ca PDF
16 Source0: http://poppler.freedesktop.org/%{name}-%{version}.tar.gz
17 # Source0-md5: c84c1be19f43e4a84872ff08234c1960
18 Patch0: %{name}-link.patch
19 Patch1: %{name}-freetype_includes.patch
20 URL: http://poppler.freedesktop.org/
21 BuildRequires: autoconf >= 2.59
22 BuildRequires: automake
23 %{?with_cairo:BuildRequires: cairo-devel >= %{cairo_ver}}
24 BuildRequires: fontconfig-devel
25 BuildRequires: freetype-devel >= 2.0
26 BuildRequires: gtk+2-devel >= 2.0.0
27 %{?with_apidocs:BuildRequires: gtk-doc >= 1.0}
28 BuildRequires: libstdc++-devel
29 BuildRequires: libtool >= 2:1.5
30 BuildRequires: pkgconfig
31 %{?with_qt:BuildRequires: qt-devel}
32 %{?with_cairo:Requires: cairo >= %{cairo_ver}}
33 BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
36 A common PDF rendering library for integrating PDF viewing into
37 desktop applications (based on the xpdf-3.0 code base).
40 Wspólna biblioteka renderuj±ca PDF do integrowania ogl±dania PDF w
41 aplikacjach desktopowych (oparta na kodzie xpdf-3.0).
44 Summary: Poppler header files
45 Summary(pl): Pliki nag³ówkowe biblioteki Poppler
46 Group: Development/Libraries
47 Requires: %{name} = %{version}-%{release}
48 %{?with_cairo:Requires: cairo-devel >= %{cairo_ver}}
49 Requires: fontconfig-devel
50 Requires: freetype-devel >= 2.0
51 Requires: libstdc++-devel
54 Header files for the Poppler library.
56 %description devel -l pl
57 Pliki nag³ówkowe biblioteki Poppler.
60 Summary: Poppler static libraries
61 Summary(pl): Statyczne biblioteki Poppler
62 Group: Development/Libraries
63 Requires: %{name}-devel = %{version}-%{release}
66 Poppler static libraries.
68 %description static -l pl
69 Statyczne biblioteki Poppler.
72 Summary: GLib wrapper for poppler
73 Summary(pl): Wrapper GLib dla popplera
75 Requires: %{name} = %{version}-%{release}
78 GLib wrapper for poppler.
80 %description glib -l pl
81 Wrapper GLib dla popplera.
84 Summary: Header files for GLib wrapper for poppler
85 Summary(pl): Pliki nag³ówkowe wrappera GLib dla popplera
86 Group: Development/Libraries
87 Requires: %{name}-devel = %{version}-%{release}
88 Requires: %{name}-glib = %{version}-%{release}
89 Requires: gtk+2-devel >= 2.0.0
91 %description glib-devel
92 Header files for GLib wrapper for poppler.
94 %description glib-devel -l pl
95 Pliki nag³ówkowe wrappera GLib dla popplera.
98 Summary: Static version of GLib wrapper for poppler
99 Summary(pl): Statyczna wersja wrappera GLib dla popplera
100 Group: Development/Libraries
101 Requires: %{name}-glib-devel = %{version}-%{release}
103 %description glib-static
104 Static version of GLib wrapper for poppler.
106 %description glib-static -l pl
107 Statyczna wersja wrappera GLib dla popplera.
110 Summary: Qt wrapper for poppler
111 Summary(pl): Wrapper Qt dla popplera
113 Requires: %{name} = %{version}-%{release}
116 Qt wrapper for poppler.
118 %description qt -l pl
119 Wrapper Qt dla popplera.
122 Summary: Header files for Qt wrapper for poppler
123 Summary(pl): Pliki nag³ówkowe wrappera Qt dla popplera
124 Group: Development/Libraries
125 Requires: %{name}-devel = %{version}-%{release}
126 Requires: %{name}-qt = %{version}-%{release}
129 %description qt-devel
130 Header files for Qt wrapper for poppler.
132 %description qt-devel -l pl
133 Pliki nag³ówkowe wrappera Qt dla popplera.
136 Summary: Static version of Qt wrapper for poppler
137 Summary(pl): Statyczna wersja wrappera Qt dla popplera
138 Group: Development/Libraries
139 Requires: %{name}-qt-devel = %{version}-%{release}
141 %description qt-static
142 Static version of Qt wrapper for poppler.
144 %description qt-static -l pl
145 Statyczna wersja wrappera Qt dla popplera.
148 Summary: Set of tools for viewing information and converting PDF files
149 Summary(pl): Zestaw narzêdzi do wy¶wietlania informacji i konwertowania plików PDF
150 Group: Applications/Publishing
153 Obsoletes: pdftohtml-pdftops
154 Obsoletes: xpdf-tools
155 Obsoletes: poppler-utils
158 Package contains utilites for PDF files. These utilities allow to
159 - extract information about PDF files
160 - extract images from PDF files
161 - convert PDF files to HTML, plain text and PS formats
163 %description progs -l pl
164 Pakiet zawiera zestaw narzêdzi do plików PDF. Programy te umo¿liwiaj±
165 - wy¶wietlanie informacji o plikach PDF
166 - wydobywanie obrazków z plików PDF
167 - konwersjê plików PDF do formatów takich jak HTML, PS czy te¿ czystego
183 %{!?with_cairo:--disable-cairo-output} \
184 %{!?with_qt:--disable-poppler-qt} \
186 %{?with_apidocs:--enable-gtk-doc} \
187 --enable-xpdf-headers \
188 --with-html-dir=%{_gtkdocdir}
192 rm -rf $RPM_BUILD_ROOT
195 DESTDIR=$RPM_BUILD_ROOT
198 rm -rf $RPM_BUILD_ROOT
200 %post -p /sbin/ldconfig
201 %postun -p /sbin/ldconfig
203 %post glib -p /sbin/ldconfig
204 %postun glib -p /sbin/ldconfig
206 %post qt -p /sbin/ldconfig
207 %postun qt -p /sbin/ldconfig
210 %defattr(644,root,root,755)
211 %doc AUTHORS ChangeLog NEWS README* TODO
212 %attr(755,root,root) %{_libdir}/libpoppler.so.*.*.*
215 %defattr(644,root,root,755)
216 %attr(755,root,root) %{_libdir}/libpoppler.so
217 %{_libdir}/libpoppler.la
218 %{_includedir}/poppler
219 %exclude %{_includedir}/poppler/glib
220 %{?with_qt:%exclude %{_includedir}/poppler/poppler-qt.h}
221 %{_pkgconfigdir}/poppler.pc
222 %{?with_cairo:%{_pkgconfigdir}/poppler-cairo.pc}
223 %{_pkgconfigdir}/poppler-splash.pc
225 %{_gtkdocdir}/poppler
228 %defattr(644,root,root,755)
229 %{_libdir}/libpoppler.a
232 %defattr(644,root,root,755)
233 %attr(755,root,root) %{_libdir}/libpoppler-glib.so.*.*.*
236 %defattr(644,root,root,755)
237 %attr(755,root,root) %{_libdir}/libpoppler-glib.so
238 %{_libdir}/libpoppler-glib.la
239 %{_includedir}/poppler/glib
240 %{_pkgconfigdir}/poppler-glib.pc
243 %defattr(644,root,root,755)
244 %{_libdir}/libpoppler-glib.a
248 %defattr(644,root,root,755)
249 %attr(755,root,root) %{_libdir}/libpoppler-qt.so.*.*.*
252 %defattr(644,root,root,755)
253 %attr(755,root,root) %{_libdir}/libpoppler-qt.so
254 %{_libdir}/libpoppler-qt.la
255 %{_includedir}/poppler/poppler-qt.h
256 %{_pkgconfigdir}/poppler-qt.pc
259 %defattr(644,root,root,755)
260 %{_libdir}/libpoppler-qt.a
264 %defattr(644,root,root,755)
265 %attr(755,root,root) %{_bindir}/pdf*