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}-cvs.patch
19 Patch1: %{name}-link.patch
20 Patch2: %{name}-freetype_includes.patch
21 URL: http://poppler.freedesktop.org/
22 BuildRequires: autoconf >= 2.59
23 BuildRequires: automake
24 %{?with_cairo:BuildRequires: cairo-devel >= %{cairo_ver}}
25 BuildRequires: fontconfig-devel
26 BuildRequires: freetype-devel >= 2.0
27 BuildRequires: gtk+2-devel >= 2.0.0
28 %{?with_apidocs:BuildRequires: gtk-doc >= 1.0}
29 BuildRequires: libstdc++-devel
30 BuildRequires: libtool >= 2:1.5
31 BuildRequires: pkgconfig
32 %{?with_qt:BuildRequires: qt-devel}
33 %{?with_cairo:Requires: cairo >= %{cairo_ver}}
34 BuildRequires: zlib-devel
35 BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
38 A common PDF rendering library for integrating PDF viewing into
39 desktop applications (based on the xpdf-3.0 code base).
42 Wspólna biblioteka renderuj±ca PDF do integrowania ogl±dania PDF w
43 aplikacjach desktopowych (oparta na kodzie xpdf-3.0).
46 Summary: Poppler header files
47 Summary(pl): Pliki nag³ówkowe biblioteki Poppler
48 Group: Development/Libraries
49 Requires: %{name} = %{version}-%{release}
50 %{?with_cairo:Requires: cairo-devel >= %{cairo_ver}}
51 Requires: fontconfig-devel
52 Requires: freetype-devel >= 2.0
53 Requires: libstdc++-devel
56 Header files for the Poppler library.
58 %description devel -l pl
59 Pliki nag³ówkowe biblioteki Poppler.
62 Summary: Poppler static libraries
63 Summary(pl): Statyczne biblioteki Poppler
64 Group: Development/Libraries
65 Requires: %{name}-devel = %{version}-%{release}
68 Poppler static libraries.
70 %description static -l pl
71 Statyczne biblioteki Poppler.
74 Summary: GLib wrapper for poppler
75 Summary(pl): Wrapper GLib dla popplera
77 Requires: %{name} = %{version}-%{release}
80 GLib wrapper for poppler.
82 %description glib -l pl
83 Wrapper GLib dla popplera.
86 Summary: Header files for GLib wrapper for poppler
87 Summary(pl): Pliki nag³ówkowe wrappera GLib dla popplera
88 Group: Development/Libraries
89 Requires: %{name}-devel = %{version}-%{release}
90 Requires: %{name}-glib = %{version}-%{release}
91 Requires: gtk+2-devel >= 2.0.0
93 %description glib-devel
94 Header files for GLib wrapper for poppler.
96 %description glib-devel -l pl
97 Pliki nag³ówkowe wrappera GLib dla popplera.
100 Summary: Static version of GLib wrapper for poppler
101 Summary(pl): Statyczna wersja wrappera GLib dla popplera
102 Group: Development/Libraries
103 Requires: %{name}-glib-devel = %{version}-%{release}
105 %description glib-static
106 Static version of GLib wrapper for poppler.
108 %description glib-static -l pl
109 Statyczna wersja wrappera GLib dla popplera.
112 Summary: Qt wrapper for poppler
113 Summary(pl): Wrapper Qt dla popplera
115 Requires: %{name} = %{version}-%{release}
118 Qt wrapper for poppler.
120 %description qt -l pl
121 Wrapper Qt dla popplera.
124 Summary: Header files for Qt wrapper for poppler
125 Summary(pl): Pliki nag³ówkowe wrappera Qt dla popplera
126 Group: Development/Libraries
127 Requires: %{name}-devel = %{version}-%{release}
128 Requires: %{name}-qt = %{version}-%{release}
131 %description qt-devel
132 Header files for Qt wrapper for poppler.
134 %description qt-devel -l pl
135 Pliki nag³ówkowe wrappera Qt dla popplera.
138 Summary: Static version of Qt wrapper for poppler
139 Summary(pl): Statyczna wersja wrappera Qt dla popplera
140 Group: Development/Libraries
141 Requires: %{name}-qt-devel = %{version}-%{release}
143 %description qt-static
144 Static version of Qt wrapper for poppler.
146 %description qt-static -l pl
147 Statyczna wersja wrappera Qt dla popplera.
150 Summary: Set of tools for viewing information and converting PDF files
151 Summary(pl): Zestaw narzêdzi do wy¶wietlania informacji i konwertowania plików PDF
152 Group: Applications/Publishing
155 Obsoletes: pdftohtml-pdftops
156 Obsoletes: xpdf-tools
157 Obsoletes: poppler-utils
160 Package contains utilites for PDF files. These utilities allow to
161 - extract information about PDF files
162 - extract images from PDF files
163 - convert PDF files to HTML, plain text and PS formats
165 %description progs -l pl
166 Pakiet zawiera zestaw narzêdzi do plików PDF. Programy te umo¿liwiaj±
167 - wy¶wietlanie informacji o plikach PDF
168 - wydobywanie obrazków z plików PDF
169 - konwersjê plików PDF do formatów takich jak HTML, PS czy te¿ czystego
186 %{!?with_cairo:--disable-cairo-output} \
187 %{!?with_qt:--disable-poppler-qt} \
189 %{?with_apidocs:--enable-gtk-doc} \
190 --enable-xpdf-headers \
192 --with-html-dir=%{_gtkdocdir}
196 rm -rf $RPM_BUILD_ROOT
199 DESTDIR=$RPM_BUILD_ROOT
202 rm -rf $RPM_BUILD_ROOT
204 %post -p /sbin/ldconfig
205 %postun -p /sbin/ldconfig
207 %post glib -p /sbin/ldconfig
208 %postun glib -p /sbin/ldconfig
210 %post qt -p /sbin/ldconfig
211 %postun qt -p /sbin/ldconfig
214 %defattr(644,root,root,755)
215 %doc AUTHORS ChangeLog NEWS README* TODO
216 %attr(755,root,root) %{_libdir}/libpoppler.so.*.*.*
219 %defattr(644,root,root,755)
220 %attr(755,root,root) %{_libdir}/libpoppler.so
221 %{_libdir}/libpoppler.la
222 %{_includedir}/poppler
223 %exclude %{_includedir}/poppler/glib
224 %{?with_qt:%exclude %{_includedir}/poppler/poppler-qt.h}
225 %{_pkgconfigdir}/poppler.pc
226 %{?with_cairo:%{_pkgconfigdir}/poppler-cairo.pc}
227 %{_pkgconfigdir}/poppler-splash.pc
229 %{_gtkdocdir}/poppler
232 %defattr(644,root,root,755)
233 %{_libdir}/libpoppler.a
236 %defattr(644,root,root,755)
237 %attr(755,root,root) %{_libdir}/libpoppler-glib.so.*.*.*
240 %defattr(644,root,root,755)
241 %attr(755,root,root) %{_libdir}/libpoppler-glib.so
242 %{_libdir}/libpoppler-glib.la
243 %{_includedir}/poppler/glib
244 %{_pkgconfigdir}/poppler-glib.pc
247 %defattr(644,root,root,755)
248 %{_libdir}/libpoppler-glib.a
252 %defattr(644,root,root,755)
253 %attr(755,root,root) %{_libdir}/libpoppler-qt.so.*.*.*
256 %defattr(644,root,root,755)
257 %attr(755,root,root) %{_libdir}/libpoppler-qt.so
258 %{_libdir}/libpoppler-qt.la
259 %{_includedir}/poppler/poppler-qt.h
260 %{_pkgconfigdir}/poppler-qt.pc
263 %defattr(644,root,root,755)
264 %{_libdir}/libpoppler-qt.a
268 %defattr(644,root,root,755)
269 %attr(755,root,root) %{_bindir}/pdf*