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