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