3 %bcond_without cairo # disable Cairo backend
4 %bcond_without qt # disable qt wrapper
6 %define cairo_ver 1.0.0
8 Summary: PDF rendering library
9 Summary(pl): Biblioteka renderuj±ca PDF
15 Source0: http://poppler.freedesktop.org/%{name}-%{version}.tar.gz
16 # Source0-md5: c84c1be19f43e4a84872ff08234c1960
17 Patch0: %{name}-link.patch
18 Patch1: %{name}-freetype_includes.patch
19 URL: http://poppler.freedesktop.org/
20 BuildRequires: autoconf >= 2.59
21 BuildRequires: automake
22 %{?with_cairo:BuildRequires: cairo-devel >= %{cairo_ver}}
23 BuildRequires: fontconfig-devel
24 BuildRequires: freetype-devel >= 2.0
25 BuildRequires: gtk+2-devel >= 2.0.0
26 BuildRequires: gtk-doc >= 1.0
27 BuildRequires: libstdc++-devel
28 BuildRequires: libtool >= 2:1.5
29 BuildRequires: pkgconfig
30 %{?with_qt:BuildRequires: qt-devel}
31 %{?with_cairo:Requires: cairo >= %{cairo_ver}}
32 BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
35 A common PDF rendering library for integrating PDF viewing into
36 desktop applications (based on the xpdf-3.0 code base).
39 Wspólna biblioteka renderuj±ca PDF do integrowania ogl±dania PDF w
40 aplikacjach desktopowych (oparta na kodzie xpdf-3.0).
43 Summary: Poppler header files
44 Summary(pl): Pliki nag³ówkowe biblioteki Poppler
45 Group: Development/Libraries
46 Requires: %{name} = %{version}-%{release}
47 %{?with_cairo:Requires: cairo-devel >= %{cairo_ver}}
48 Requires: fontconfig-devel
49 Requires: freetype-devel >= 2.0
50 Requires: libstdc++-devel
53 Header files for the Poppler library.
55 %description devel -l pl
56 Pliki nag³ówkowe biblioteki Poppler.
59 Summary: Poppler static libraries
60 Summary(pl): Statyczne biblioteki Poppler
61 Group: Development/Libraries
62 Requires: %{name}-devel = %{version}-%{release}
65 Poppler static libraries.
67 %description static -l pl
68 Statyczne biblioteki Poppler.
71 Summary: GLib wrapper for poppler
72 Summary(pl): Wrapper GLib dla popplera
74 Requires: %{name} = %{version}-%{release}
77 GLib wrapper for poppler.
79 %description glib -l pl
80 Wrapper GLib dla popplera.
83 Summary: Header files for GLib wrapper for poppler
84 Summary(pl): Pliki nag³ówkowe wrappera GLib dla popplera
85 Group: Development/Libraries
86 Requires: %{name}-devel = %{version}-%{release}
87 Requires: %{name}-glib = %{version}-%{release}
88 Requires: gtk+2-devel >= 2.0.0
90 %description glib-devel
91 Header files for GLib wrapper for poppler.
93 %description glib-devel -l pl
94 Pliki nag³ówkowe wrappera GLib dla popplera.
97 Summary: Static version of GLib wrapper for poppler
98 Summary(pl): Statyczna wersja wrappera GLib dla popplera
99 Group: Development/Libraries
100 Requires: %{name}-glib-devel = %{version}-%{release}
102 %description glib-static
103 Static version of GLib wrapper for poppler.
105 %description glib-static -l pl
106 Statyczna wersja wrappera GLib dla popplera.
109 Summary: Qt wrapper for poppler
110 Summary(pl): Wrapper Qt dla popplera
112 Requires: %{name} = %{version}-%{release}
115 Qt wrapper for poppler.
117 %description qt -l pl
118 Wrapper Qt dla popplera.
121 Summary: Header files for Qt wrapper for poppler
122 Summary(pl): Pliki nag³ówkowe wrappera Qt dla popplera
123 Group: Development/Libraries
124 Requires: %{name}-devel = %{version}-%{release}
125 Requires: %{name}-qt = %{version}-%{release}
128 %description qt-devel
129 Header files for Qt wrapper for poppler.
131 %description qt-devel -l pl
132 Pliki nag³ówkowe wrappera Qt dla popplera.
135 Summary: Static version of Qt wrapper for poppler
136 Summary(pl): Statyczna wersja wrappera Qt dla popplera
137 Group: Development/Libraries
138 Requires: %{name}-qt-devel = %{version}-%{release}
140 %description qt-static
141 Static version of Qt wrapper for poppler.
143 %description qt-static -l pl
144 Statyczna wersja wrappera Qt dla popplera.
147 Summary: Set of tools for viewing information and converting PDF files
148 Summary(pl): Zestaw narzêdzi do wy¶wietlania informacji i konwertowania plików PDF
149 Group: Applications/Publishing
150 Requires: %{name}-qt-devel = %{version}-%{release}
153 Obsoletes: pdftohtml-pdftops
154 Obsoletes: xpdf-tools
157 Set of tools for viewing information and converting PDF files.
159 %description utils -l pl
160 Zestaw narzêdzi do wy¶wietlania informacji i konwertowania plików PDF.
175 %{!?with_cairo:--disable-cairo-output} \
176 %{!?with_qt:--disable-poppler-qt} \
179 --with-html-dir=%{_gtkdocdir}
183 rm -rf $RPM_BUILD_ROOT
186 DESTDIR=$RPM_BUILD_ROOT
189 rm -rf $RPM_BUILD_ROOT
191 %post -p /sbin/ldconfig
192 %postun -p /sbin/ldconfig
194 %post glib -p /sbin/ldconfig
195 %postun glib -p /sbin/ldconfig
197 %post qt -p /sbin/ldconfig
198 %postun qt -p /sbin/ldconfig
201 %defattr(644,root,root,755)
202 %doc AUTHORS ChangeLog NEWS README* TODO
203 %attr(755,root,root) %{_libdir}/libpoppler.so.*.*.*
206 %defattr(644,root,root,755)
207 %attr(755,root,root) %{_libdir}/libpoppler.so
208 %{_libdir}/libpoppler.la
209 %{_includedir}/poppler
210 %exclude %{_includedir}/poppler/glib
211 %{?with_qt:%exclude %{_includedir}/poppler/poppler-qt.h}
212 %{_pkgconfigdir}/poppler.pc
213 %{?with_cairo:%{_pkgconfigdir}/poppler-cairo.pc}
214 %{_pkgconfigdir}/poppler-splash.pc
216 %{_gtkdocdir}/poppler
219 %defattr(644,root,root,755)
220 %{_libdir}/libpoppler.a
223 %defattr(644,root,root,755)
224 %attr(755,root,root) %{_libdir}/libpoppler-glib.so.*.*.*
227 %defattr(644,root,root,755)
228 %attr(755,root,root) %{_libdir}/libpoppler-glib.so
229 %{_libdir}/libpoppler-glib.la
230 %{_includedir}/poppler/glib
231 %{_pkgconfigdir}/poppler-glib.pc
234 %defattr(644,root,root,755)
235 %{_libdir}/libpoppler-glib.a
239 %defattr(644,root,root,755)
240 %attr(755,root,root) %{_libdir}/libpoppler-qt.so.*.*.*
243 %defattr(644,root,root,755)
244 %attr(755,root,root) %{_libdir}/libpoppler-qt.so
245 %{_libdir}/libpoppler-qt.la
246 %{_includedir}/poppler/poppler-qt.h
247 %{_pkgconfigdir}/poppler-qt.pc
250 %defattr(644,root,root,755)
251 %{_libdir}/libpoppler-qt.a
255 %defattr(644,root,root,755)
256 %attr(755,root,root) %{_bindir}/pdf*