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