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