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.0.0
10 Summary: PDF rendering library
11 Summary(pl): Biblioteka renderuj±ca PDF
17 Source0: http://poppler.freedesktop.org/%{name}-%{version}.tar.gz
18 # Source0-md5: a136cd731892f4570933034ba97c8704
19 Patch0: %{name}-link.patch
20 Patch1: %{name}-freetype_includes.patch
21 Patch2: %{name}-qt_m4.patch
22 Patch3: %{name}-gcc4.patch
23 URL: http://poppler.freedesktop.org/
24 %{?with_qt4:BuildRequires: QtGui-devel}
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.0.0
31 %{?with_apidocs:BuildRequires: gtk-doc >= 1.0}
32 BuildRequires: libstdc++-devel
33 BuildRequires: libtool >= 2:1.5
34 BuildRequires: pkgconfig
35 %{?with_qt:BuildRequires: qt-devel}
36 %{?with_cairo:Requires: cairo >= %{cairo_ver}}
37 BuildRequires: zlib-devel
38 BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
41 A common PDF rendering library for integrating PDF viewing into
42 desktop applications (based on the xpdf-3.0 code base).
45 Wspólna biblioteka renderuj±ca PDF do integrowania ogl±dania PDF w
46 aplikacjach desktopowych (oparta na kodzie xpdf-3.0).
49 Summary: Poppler header files
50 Summary(pl): Pliki nag³ówkowe biblioteki Poppler
51 Group: Development/Libraries
52 Requires: %{name} = %{version}-%{release}
53 %{?with_cairo:Requires: cairo-devel >= %{cairo_ver}}
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
62 Pliki nag³ówkowe biblioteki Poppler.
65 Summary: Poppler static libraries
66 Summary(pl): Statyczne biblioteki Poppler
67 Group: Development/Libraries
68 Requires: %{name}-devel = %{version}-%{release}
71 Poppler static libraries.
73 %description static -l pl
74 Statyczne biblioteki Poppler.
77 Summary: GLib wrapper for poppler
78 Summary(pl): Wrapper GLib dla popplera
80 Requires: %{name} = %{version}-%{release}
83 GLib wrapper for poppler.
85 %description glib -l pl
86 Wrapper GLib dla popplera.
89 Summary: Header files for GLib wrapper for poppler
90 Summary(pl): Pliki nag³ówkowe wrappera GLib dla popplera
91 Group: Development/Libraries
92 Requires: %{name}-devel = %{version}-%{release}
93 Requires: %{name}-glib = %{version}-%{release}
94 Requires: gtk+2-devel >= 2.0.0
96 %description glib-devel
97 Header files for GLib wrapper for poppler.
99 %description glib-devel -l pl
100 Pliki nag³ówkowe wrappera GLib dla popplera.
103 Summary: Static version of GLib wrapper for poppler
104 Summary(pl): Statyczna wersja wrappera GLib dla popplera
105 Group: Development/Libraries
106 Requires: %{name}-glib-devel = %{version}-%{release}
108 %description glib-static
109 Static version of GLib wrapper for poppler.
111 %description glib-static -l pl
112 Statyczna wersja wrappera GLib dla popplera.
115 Summary: Qt wrapper for poppler
116 Summary(pl): Wrapper Qt dla popplera
118 Requires: %{name} = %{version}-%{release}
121 Qt wrapper for poppler.
123 %description qt -l pl
124 Wrapper Qt dla popplera.
127 Summary: Header files for Qt wrapper for poppler
128 Summary(pl): Pliki nag³ówkowe wrappera Qt dla popplera
129 Group: Development/Libraries
130 Requires: %{name}-devel = %{version}-%{release}
131 Requires: %{name}-qt = %{version}-%{release}
134 %description qt-devel
135 Header files for Qt wrapper for poppler.
137 %description qt-devel -l pl
138 Pliki nag³ówkowe wrappera Qt dla popplera.
141 Summary: Static version of Qt wrapper for poppler
142 Summary(pl): Statyczna wersja wrappera Qt dla popplera
143 Group: Development/Libraries
144 Requires: %{name}-qt-devel = %{version}-%{release}
146 %description qt-static
147 Static version of Qt wrapper for poppler.
149 %description qt-static -l pl
150 Statyczna wersja wrappera Qt dla popplera.
153 Summary: Set of tools for viewing information and converting PDF files
154 Summary(pl): Zestaw narzêdzi do wy¶wietlania informacji i konwertowania plików PDF
155 Group: Applications/Publishing
158 Obsoletes: pdftohtml-pdftops
159 Obsoletes: xpdf-tools
160 Obsoletes: poppler-utils
163 Package contains utilites for PDF files. These utilities allow to
164 - extract information about PDF files
165 - extract images from PDF files
166 - convert PDF files to HTML, plain text and PS formats
168 %description progs -l pl
169 Pakiet zawiera zestaw narzêdzi do plików PDF. Programy te umo¿liwiaj±
170 - wy¶wietlanie informacji o plikach PDF
171 - wydobywanie obrazków z plików PDF
172 - konwersjê plików PDF do formatów takich jak HTML, PS czy te¿ czystego
189 %{!?with_cairo:--disable-cairo-output} \
190 %{!?with_qt:--disable-poppler-qt} \
191 %{!?with_qt4:--disable-poppler-qt4} \
193 %{?with_apidocs:--enable-gtk-doc} \
194 --enable-xpdf-headers \
196 --with-html-dir=%{_gtkdocdir}
200 rm -rf $RPM_BUILD_ROOT
203 DESTDIR=$RPM_BUILD_ROOT
206 rm -rf $RPM_BUILD_ROOT
208 %post -p /sbin/ldconfig
209 %postun -p /sbin/ldconfig
211 %post glib -p /sbin/ldconfig
212 %postun glib -p /sbin/ldconfig
214 %post qt -p /sbin/ldconfig
215 %postun qt -p /sbin/ldconfig
218 %defattr(644,root,root,755)
219 %doc AUTHORS ChangeLog NEWS README* TODO
220 %attr(755,root,root) %{_libdir}/libpoppler.so.*.*.*
223 %defattr(644,root,root,755)
224 %attr(755,root,root) %{_libdir}/libpoppler.so
225 %{_libdir}/libpoppler.la
226 %{_includedir}/poppler
227 %exclude %{_includedir}/poppler/glib
228 %{?with_qt:%exclude %{_includedir}/poppler/poppler-qt.h}
229 %{_pkgconfigdir}/poppler.pc
230 %{?with_cairo:%{_pkgconfigdir}/poppler-cairo.pc}
231 %{_pkgconfigdir}/poppler-splash.pc
233 %{_gtkdocdir}/poppler
236 %defattr(644,root,root,755)
237 %{_libdir}/libpoppler.a
240 %defattr(644,root,root,755)
241 %attr(755,root,root) %{_libdir}/libpoppler-glib.so.*.*.*
244 %defattr(644,root,root,755)
245 %attr(755,root,root) %{_libdir}/libpoppler-glib.so
246 %{_libdir}/libpoppler-glib.la
247 %{_includedir}/poppler/glib
248 %{_pkgconfigdir}/poppler-glib.pc
251 %defattr(644,root,root,755)
252 %{_libdir}/libpoppler-glib.a
256 %defattr(644,root,root,755)
257 %attr(755,root,root) %{_libdir}/libpoppler-qt.so.*.*.*
260 %defattr(644,root,root,755)
261 %attr(755,root,root) %{_libdir}/libpoppler-qt.so
262 %{_libdir}/libpoppler-qt.la
263 %{_includedir}/poppler/poppler-qt.h
264 %{_pkgconfigdir}/poppler-qt.pc
267 %defattr(644,root,root,755)
268 %{_libdir}/libpoppler-qt.a
272 %defattr(644,root,root,755)
273 %attr(755,root,root) %{_bindir}/pdf*