]>
Commit | Line | Data |
---|---|---|
59f6d029 | 1 | # |
708b49cb | 2 | # Conditional build: |
16c3736c | 3 | %bcond_without apidocs # disable gtk-doc |
7122799d | 4 | %bcond_without cairo # disable Cairo backend |
ba2d5187 | 5 | %bcond_without qt # disable qt wrapper |
59f6d029 | 6 | %bcond_without qt4 # disable qt4 wrapper |
708b49cb | 7 | # |
434ea14d | 8 | %define cairo_ver 1.4.0 |
e2a6dd23 | 9 | # |
9e116569 | 10 | Summary: PDF rendering library |
ef9a130a | 11 | Summary(pl.UTF-8): Biblioteka renderująca PDF |
9e116569 | 12 | Name: poppler |
7828e014 SS |
13 | Version: 0.8.0 |
14 | Release: 0.1 | |
434ea14d | 15 | License: GPL v2+ |
9e116569 | 16 | Group: Libraries |
17 | Source0: http://poppler.freedesktop.org/%{name}-%{version}.tar.gz | |
7828e014 | 18 | # Source0-md5: 1a3ea3000d3446a97366c37b876979f4 |
ba7b8770 | 19 | Patch0: %{name}-qt4.patch |
9e116569 | 20 | URL: http://poppler.freedesktop.org/ |
9e1eea06 JB |
21 | %{?with_qt4:BuildRequires: QtGui-devel >= 4.1.0} |
22 | %{?with_qt4:BuildRequires: QtXml-devel >= 4.1.0} | |
23 | %{?with_qt4:BuildRequires: QtTest-devel >= 4.1.0} | |
ba7b8770 | 24 | %{?with_qt4:BuildRequires: qt4-build} |
7e0143fb JB |
25 | BuildRequires: autoconf >= 2.59 |
26 | BuildRequires: automake | |
e2a6dd23 | 27 | %{?with_cairo:BuildRequires: cairo-devel >= %{cairo_ver}} |
708b49cb JB |
28 | BuildRequires: fontconfig-devel |
29 | BuildRequires: freetype-devel >= 2.0 | |
6183c327 | 30 | BuildRequires: gtk+2-devel >= 2:2.8.0 |
16c3736c | 31 | %{?with_apidocs:BuildRequires: gtk-doc >= 1.0} |
9e1eea06 | 32 | BuildRequires: libjpeg-devel |
708b49cb | 33 | BuildRequires: libstdc++-devel |
9e1eea06 | 34 | BuildRequires: libxml2-devel >= 2.0 |
7e0143fb | 35 | BuildRequires: libtool >= 2:1.5 |
708b49cb | 36 | BuildRequires: pkgconfig |
9e1eea06 | 37 | %{?with_qt:BuildRequires: qt-devel >= 3.0} |
bf5184f7 | 38 | BuildRequires: zlib-devel |
9e116569 | 39 | BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) |
40 | ||
41 | %description | |
256ec317 | 42 | A common PDF rendering library for integrating PDF viewing into |
43 | desktop applications (based on the xpdf-3.0 code base). | |
9e116569 | 44 | |
4d968103 JR |
45 | %description -l pl.UTF-8 |
46 | Wspólna biblioteka renderująca PDF do integrowania oglądania PDF w | |
943507a4 JB |
47 | aplikacjach desktopowych (oparta na kodzie xpdf-3.0). |
48 | ||
9e116569 | 49 | %package devel |
943507a4 | 50 | Summary: Poppler header files |
ef9a130a | 51 | Summary(pl.UTF-8): Pliki nagłówkowe biblioteki Poppler |
9e116569 | 52 | Group: Development/Libraries |
53 | Requires: %{name} = %{version}-%{release} | |
708b49cb JB |
54 | Requires: fontconfig-devel |
55 | Requires: freetype-devel >= 2.0 | |
56 | Requires: libstdc++-devel | |
9e116569 | 57 | |
58 | %description devel | |
943507a4 JB |
59 | Header files for the Poppler library. |
60 | ||
4d968103 JR |
61 | %description devel -l pl.UTF-8 |
62 | Pliki nagłówkowe biblioteki Poppler. | |
9e116569 | 63 | |
64 | %package static | |
65 | Summary: Poppler static libraries | |
ef9a130a | 66 | Summary(pl.UTF-8): Statyczne biblioteki Poppler |
9e116569 | 67 | Group: Development/Libraries |
68 | Requires: %{name}-devel = %{version}-%{release} | |
69 | ||
70 | %description static | |
71 | Poppler static libraries. | |
72 | ||
4d968103 | 73 | %description static -l pl.UTF-8 |
943507a4 JB |
74 | Statyczne biblioteki Poppler. |
75 | ||
c858408d JB |
76 | %package glib |
77 | Summary: GLib wrapper for poppler | |
ef9a130a | 78 | Summary(pl.UTF-8): Wrapper GLib dla popplera |
c858408d JB |
79 | Group: Libraries |
80 | Requires: %{name} = %{version}-%{release} | |
59f6d029 | 81 | %{?with_cairo:Requires: cairo >= %{cairo_ver}} |
6183c327 | 82 | Requires: gtk+2 >= 2:2.8.0 |
c858408d JB |
83 | |
84 | %description glib | |
85 | GLib wrapper for poppler. | |
86 | ||
4d968103 | 87 | %description glib -l pl.UTF-8 |
c858408d JB |
88 | Wrapper GLib dla popplera. |
89 | ||
90 | %package glib-devel | |
91 | Summary: Header files for GLib wrapper for poppler | |
ef9a130a | 92 | Summary(pl.UTF-8): Pliki nagłówkowe wrappera GLib dla popplera |
c858408d JB |
93 | Group: Development/Libraries |
94 | Requires: %{name}-devel = %{version}-%{release} | |
95 | Requires: %{name}-glib = %{version}-%{release} | |
59f6d029 | 96 | %{?with_cairo:Requires: cairo-devel >= %{cairo_ver}} |
6183c327 | 97 | Requires: gtk+2-devel >= 2:2.8.0 |
c858408d JB |
98 | |
99 | %description glib-devel | |
100 | Header files for GLib wrapper for poppler. | |
101 | ||
4d968103 JR |
102 | %description glib-devel -l pl.UTF-8 |
103 | Pliki nagłówkowe wrappera GLib dla popplera. | |
c858408d JB |
104 | |
105 | %package glib-static | |
106 | Summary: Static version of GLib wrapper for poppler | |
ef9a130a | 107 | Summary(pl.UTF-8): Statyczna wersja wrappera GLib dla popplera |
c858408d JB |
108 | Group: Development/Libraries |
109 | Requires: %{name}-glib-devel = %{version}-%{release} | |
110 | ||
111 | %description glib-static | |
112 | Static version of GLib wrapper for poppler. | |
113 | ||
4d968103 | 114 | %description glib-static -l pl.UTF-8 |
c858408d JB |
115 | Statyczna wersja wrappera GLib dla popplera. |
116 | ||
117 | %package qt | |
118 | Summary: Qt wrapper for poppler | |
ef9a130a | 119 | Summary(pl.UTF-8): Wrapper Qt dla popplera |
c858408d JB |
120 | Group: Libraries |
121 | Requires: %{name} = %{version}-%{release} | |
122 | ||
123 | %description qt | |
124 | Qt wrapper for poppler. | |
125 | ||
4d968103 | 126 | %description qt -l pl.UTF-8 |
c858408d JB |
127 | Wrapper Qt dla popplera. |
128 | ||
129 | %package qt-devel | |
130 | Summary: Header files for Qt wrapper for poppler | |
ef9a130a | 131 | Summary(pl.UTF-8): Pliki nagłówkowe wrappera Qt dla popplera |
c858408d JB |
132 | Group: Development/Libraries |
133 | Requires: %{name}-devel = %{version}-%{release} | |
134 | Requires: %{name}-qt = %{version}-%{release} | |
135 | Requires: qt-devel | |
136 | ||
137 | %description qt-devel | |
138 | Header files for Qt wrapper for poppler. | |
139 | ||
4d968103 JR |
140 | %description qt-devel -l pl.UTF-8 |
141 | Pliki nagłówkowe wrappera Qt dla popplera. | |
c858408d JB |
142 | |
143 | %package qt-static | |
144 | Summary: Static version of Qt wrapper for poppler | |
ef9a130a | 145 | Summary(pl.UTF-8): Statyczna wersja wrappera Qt dla popplera |
c858408d JB |
146 | Group: Development/Libraries |
147 | Requires: %{name}-qt-devel = %{version}-%{release} | |
148 | ||
149 | %description qt-static | |
150 | Static version of Qt wrapper for poppler. | |
151 | ||
4d968103 | 152 | %description qt-static -l pl.UTF-8 |
c858408d JB |
153 | Statyczna wersja wrappera Qt dla popplera. |
154 | ||
3ed2c139 PS |
155 | %package Qt |
156 | Summary: Qt4 wrapper for poppler | |
ef9a130a | 157 | Summary(pl.UTF-8): Wrapper Qt4 dla popplera |
3ed2c139 PS |
158 | Group: Libraries |
159 | Requires: %{name} = %{version}-%{release} | |
160 | ||
161 | %description Qt | |
162 | Qt4 wrapper for poppler. | |
163 | ||
4d968103 | 164 | %description Qt -l pl.UTF-8 |
3ed2c139 PS |
165 | Wrapper Qt4 dla popplera. |
166 | ||
167 | %package Qt-devel | |
168 | Summary: Header files for Qt4 wrapper for poppler | |
ef9a130a | 169 | Summary(pl.UTF-8): Pliki nagłówkowe wrappera Qt4 dla popplera |
3ed2c139 PS |
170 | Group: Development/Libraries |
171 | Requires: %{name}-devel = %{version}-%{release} | |
172 | Requires: %{name}-Qt = %{version}-%{release} | |
173 | Requires: QtGui-devel | |
59f6d029 | 174 | Requires: QtXml-devel |
3ed2c139 PS |
175 | |
176 | %description Qt-devel | |
177 | Header files for Qt4 wrapper for poppler. | |
178 | ||
4d968103 JR |
179 | %description Qt-devel -l pl.UTF-8 |
180 | Pliki nagłówkowe wrapper Qt4 dla popplera. | |
3ed2c139 PS |
181 | |
182 | %package Qt-static | |
183 | Summary: Static version of Qt4 wrapper for poppler | |
ef9a130a | 184 | Summary(pl.UTF-8): Statyczna wersja wrappera Qt4 dla popplera |
3ed2c139 PS |
185 | Group: Development/Libraries |
186 | Requires: %{name}-Qt-devel = %{version}-%{release} | |
187 | ||
188 | %description Qt-static | |
189 | Static version of Qt4 wrapper for poppler. | |
190 | ||
4d968103 | 191 | %description Qt-static -l pl.UTF-8 |
3ed2c139 PS |
192 | Statyczna wersja wrappera Qt4 dla popplera. |
193 | ||
3085c5f7 | 194 | %package progs |
6d515f80 | 195 | Summary: Set of tools for viewing information and converting PDF files |
ef9a130a | 196 | Summary(pl.UTF-8): Zestaw narzędzi do wyświetlania informacji i konwertowania plików PDF |
6d515f80 | 197 | Group: Applications/Publishing |
6d515f80 | 198 | Provides: pdftops |
199 | Obsoletes: pdftohtml | |
200 | Obsoletes: pdftohtml-pdftops | |
201 | Obsoletes: xpdf-tools | |
5ba7dac4 | 202 | Obsoletes: poppler-utils |
6d515f80 | 203 | |
3085c5f7 | 204 | %description progs |
4be74f1d | 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 | |
6d515f80 | 209 | |
4d968103 JR |
210 | %description progs -l pl.UTF-8 |
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 | |
4be74f1d | 215 | tekstu |
6d515f80 | 216 | |
9e116569 | 217 | %prep |
218 | %setup -q | |
ba7b8770 | 219 | %patch0 -p1 |
59f6d029 | 220 | |
9e116569 | 221 | %build |
13fe12a3 | 222 | %{?with_apidocs:%{__gtkdocize}} |
7e0143fb | 223 | %{__libtoolize} |
6d515f80 | 224 | %{__aclocal} -I m4 |
b9e0e47d | 225 | %{__autoconf} -f |
7e0143fb JB |
226 | %{__autoheader} |
227 | %{__automake} | |
943507a4 | 228 | %configure \ |
f44a4419 JB |
229 | QTINC=/usr/include/qt \ |
230 | QTLIB=%{_libdir} \ | |
7e0143fb | 231 | %{!?with_cairo:--disable-cairo-output} \ |
f74ba9f1 | 232 | %{!?with_qt:--disable-poppler-qt} \ |
b9e0e47d | 233 | %{!?with_qt4:--disable-poppler-qt4} \ |
6d515f80 | 234 | --enable-a4-paper \ |
16c3736c | 235 | %{?with_apidocs:--enable-gtk-doc} \ |
30316221 | 236 | --enable-xpdf-headers \ |
bf5184f7 | 237 | --enable-zlib \ |
6d515f80 | 238 | --with-html-dir=%{_gtkdocdir} |
9e116569 | 239 | %{__make} |
240 | ||
241 | %install | |
242 | rm -rf $RPM_BUILD_ROOT | |
243 | ||
244 | %{__make} install \ | |
245 | DESTDIR=$RPM_BUILD_ROOT | |
246 | ||
247 | %clean | |
248 | rm -rf $RPM_BUILD_ROOT | |
249 | ||
943507a4 JB |
250 | %post -p /sbin/ldconfig |
251 | %postun -p /sbin/ldconfig | |
9e116569 | 252 | |
c858408d JB |
253 | %post glib -p /sbin/ldconfig |
254 | %postun glib -p /sbin/ldconfig | |
255 | ||
256 | %post qt -p /sbin/ldconfig | |
257 | %postun qt -p /sbin/ldconfig | |
258 | ||
dff19bfc PS |
259 | %post Qt -p /sbin/ldconfig |
260 | %postun Qt -p /sbin/ldconfig | |
261 | ||
9e116569 | 262 | %files |
263 | %defattr(644,root,root,755) | |
264 | %doc AUTHORS ChangeLog NEWS README* TODO | |
c858408d | 265 | %attr(755,root,root) %{_libdir}/libpoppler.so.*.*.* |
1271a652 | 266 | %attr(755,root,root) %ghost %{_libdir}/libpoppler.so.3 |
9e116569 | 267 | |
268 | %files devel | |
269 | %defattr(644,root,root,755) | |
c858408d JB |
270 | %attr(755,root,root) %{_libdir}/libpoppler.so |
271 | %{_libdir}/libpoppler.la | |
9e1eea06 JB |
272 | %dir %{_includedir}/poppler |
273 | %{_includedir}/poppler/poppler-config.h | |
1271a652 | 274 | %{_includedir}/poppler/[ABCDEFGJLMNOPSTUX]*.h |
9e1eea06 JB |
275 | %{_includedir}/poppler/Function.cc |
276 | %{_includedir}/poppler/goo | |
277 | %{_includedir}/poppler/splash | |
c858408d | 278 | %exclude %{_includedir}/poppler/glib |
c858408d JB |
279 | %{_pkgconfigdir}/poppler.pc |
280 | %{?with_cairo:%{_pkgconfigdir}/poppler-cairo.pc} | |
281 | %{_pkgconfigdir}/poppler-splash.pc | |
9e116569 | 282 | |
6d515f80 | 283 | %{_gtkdocdir}/poppler |
284 | ||
9e116569 | 285 | %files static |
286 | %defattr(644,root,root,755) | |
c858408d JB |
287 | %{_libdir}/libpoppler.a |
288 | ||
289 | %files glib | |
290 | %defattr(644,root,root,755) | |
291 | %attr(755,root,root) %{_libdir}/libpoppler-glib.so.*.*.* | |
1271a652 | 292 | %attr(755,root,root) %ghost %{_libdir}/libpoppler-glib.so.3 |
c858408d JB |
293 | |
294 | %files glib-devel | |
295 | %defattr(644,root,root,755) | |
296 | %attr(755,root,root) %{_libdir}/libpoppler-glib.so | |
297 | %{_libdir}/libpoppler-glib.la | |
298 | %{_includedir}/poppler/glib | |
299 | %{_pkgconfigdir}/poppler-glib.pc | |
300 | ||
301 | %files glib-static | |
302 | %defattr(644,root,root,755) | |
303 | %{_libdir}/libpoppler-glib.a | |
304 | ||
f74ba9f1 | 305 | %if %{with qt} |
c858408d JB |
306 | %files qt |
307 | %defattr(644,root,root,755) | |
308 | %attr(755,root,root) %{_libdir}/libpoppler-qt.so.*.*.* | |
49122bbe | 309 | %attr(755,root,root) %ghost %{_libdir}/libpoppler-qt.so.2 |
c858408d JB |
310 | |
311 | %files qt-devel | |
312 | %defattr(644,root,root,755) | |
313 | %attr(755,root,root) %{_libdir}/libpoppler-qt.so | |
314 | %{_libdir}/libpoppler-qt.la | |
9e1eea06 | 315 | %{_includedir}/poppler/qt3 |
c858408d JB |
316 | %{_pkgconfigdir}/poppler-qt.pc |
317 | ||
318 | %files qt-static | |
319 | %defattr(644,root,root,755) | |
320 | %{_libdir}/libpoppler-qt.a | |
f74ba9f1 | 321 | %endif |
6d515f80 | 322 | |
3ed2c139 PS |
323 | %if %{with qt4} |
324 | %files Qt | |
325 | %defattr(644,root,root,755) | |
326 | %attr(755,root,root) %{_libdir}/libpoppler-qt4.so.*.*.* | |
1271a652 | 327 | %attr(755,root,root) %ghost %{_libdir}/libpoppler-qt4.so.3 |
3ed2c139 PS |
328 | |
329 | %files Qt-devel | |
330 | %defattr(644,root,root,755) | |
331 | %attr(755,root,root) %{_libdir}/libpoppler-qt4.so | |
332 | %{_libdir}/libpoppler-qt4.la | |
9e1eea06 | 333 | %{_includedir}/poppler/qt4 |
3ed2c139 PS |
334 | %{_pkgconfigdir}/poppler-qt4.pc |
335 | ||
336 | %files Qt-static | |
337 | %defattr(644,root,root,755) | |
338 | %{_libdir}/libpoppler-qt4.a | |
339 | %endif | |
340 | ||
3085c5f7 | 341 | %files progs |
6d515f80 | 342 | %defattr(644,root,root,755) |
343 | %attr(755,root,root) %{_bindir}/pdf* | |
344 | %{_mandir}/man1/pdf* |