]> git.pld-linux.org Git - packages/poppler.git/blob - poppler.spec
- rm BR: gtk+2-devel (required for GTK+ test program)
[packages/poppler.git] / poppler.spec
1 #
2 # Conditional build:
3 %bcond_without  apidocs # disable gtk-doc
4 %bcond_without  cairo   # disable Cairo backend
5 %bcond_without  qt      # disable qt wrapper
6 %bcond_without  qt4     # disable qt4 wrapper
7 #
8 %define         cairo_ver       1.4.0
9 #
10 Summary:        PDF rendering library
11 Summary(pl.UTF-8):      Biblioteka renderująca PDF
12 Name:           poppler
13 Version:        0.12.1
14 Release:        1
15 License:        GPL v2+
16 Group:          Libraries
17 Source0:        http://poppler.freedesktop.org/%{name}-%{version}.tar.gz
18 # Source0-md5:  3432046ee111efa5b85e5f2cdde8af5c
19 URL:            http://poppler.freedesktop.org/
20 %{?with_qt4:BuildRequires:      QtGui-devel >= 4.1.0}
21 %{?with_qt4:BuildRequires:      QtTest-devel >= 4.1.0}
22 %{?with_qt4:BuildRequires:      QtXml-devel >= 4.1.0}
23 BuildRequires:  autoconf >= 2.59
24 BuildRequires:  automake
25 %{?with_cairo:BuildRequires:    cairo-devel >= %{cairo_ver}}
26 BuildRequires:  fontconfig-devel
27 BuildRequires:  freetype-devel >= 2.0
28 BuildRequires:  gdk-pixbuf-devel
29 %{?with_apidocs:BuildRequires:  gtk-doc >= 1.0}
30 BuildRequires:  libjpeg-devel
31 BuildRequires:  libstdc++-devel
32 BuildRequires:  libtool >= 2:1.5
33 BuildRequires:  libxml2-devel >= 2.0
34 BuildRequires:  pkgconfig
35 %{?with_qt:BuildRequires:       qt-devel >= 3.0}
36 %{?with_qt4:BuildRequires:      qt4-build}
37 BuildRequires:  zlib-devel
38 BuildRoot:      %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
39
40 %description
41 A common PDF rendering library for integrating PDF viewing into
42 desktop applications (based on the xpdf-3.0 code base).
43
44 %description -l pl.UTF-8
45 Wspólna biblioteka renderująca PDF do integrowania oglądania PDF w
46 aplikacjach desktopowych (oparta na kodzie xpdf-3.0).
47
48 %package devel
49 Summary:        Poppler header files
50 Summary(pl.UTF-8):      Pliki nagłówkowe biblioteki Poppler
51 Group:          Development/Libraries
52 Requires:       %{name} = %{version}-%{release}
53 Requires:       fontconfig-devel
54 Requires:       freetype-devel >= 2.0
55 Requires:       libstdc++-devel
56
57 %description devel
58 Header files for the Poppler library.
59
60 %description devel -l pl.UTF-8
61 Pliki nagłówkowe biblioteki Poppler.
62
63 %package static
64 Summary:        Poppler static libraries
65 Summary(pl.UTF-8):      Statyczne biblioteki Poppler
66 Group:          Development/Libraries
67 Requires:       %{name}-devel = %{version}-%{release}
68
69 %description static
70 Poppler static libraries.
71
72 %description static -l pl.UTF-8
73 Statyczne biblioteki Poppler.
74
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
87 %package glib
88 Summary:        GLib wrapper for poppler
89 Summary(pl.UTF-8):      Wrapper GLib dla popplera
90 Group:          Libraries
91 Requires:       %{name} = %{version}-%{release}
92 %{?with_cairo:Requires: cairo >= %{cairo_ver}}
93 Requires:       gtk+2 >= 2:2.8.0
94
95 %description glib
96 GLib wrapper for poppler.
97
98 %description glib -l pl.UTF-8
99 Wrapper GLib dla popplera.
100
101 %package glib-devel
102 Summary:        Header files for GLib wrapper for poppler
103 Summary(pl.UTF-8):      Pliki nagłówkowe wrappera GLib dla popplera
104 Group:          Development/Libraries
105 Requires:       %{name}-devel = %{version}-%{release}
106 Requires:       %{name}-glib = %{version}-%{release}
107 %{?with_cairo:Requires: cairo-devel >= %{cairo_ver}}
108 Requires:       gtk+2-devel >= 2:2.8.0
109
110 %description glib-devel
111 Header files for GLib wrapper for poppler.
112
113 %description glib-devel -l pl.UTF-8
114 Pliki nagłówkowe wrappera GLib dla popplera.
115
116 %package glib-static
117 Summary:        Static version of GLib wrapper for poppler
118 Summary(pl.UTF-8):      Statyczna wersja wrappera GLib dla popplera
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
125 %description glib-static -l pl.UTF-8
126 Statyczna wersja wrappera GLib dla popplera.
127
128 %package qt
129 Summary:        Qt wrapper for poppler
130 Summary(pl.UTF-8):      Wrapper Qt dla popplera
131 Group:          Libraries
132 Requires:       %{name} = %{version}-%{release}
133
134 %description qt
135 Qt wrapper for poppler.
136
137 %description qt -l pl.UTF-8
138 Wrapper Qt dla popplera.
139
140 %package qt-devel
141 Summary:        Header files for Qt wrapper for poppler
142 Summary(pl.UTF-8):      Pliki nagłówkowe wrappera Qt dla popplera
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
151 %description qt-devel -l pl.UTF-8
152 Pliki nagłówkowe wrappera Qt dla popplera.
153
154 %package qt-static
155 Summary:        Static version of Qt wrapper for poppler
156 Summary(pl.UTF-8):      Statyczna wersja wrappera Qt dla popplera
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
163 %description qt-static -l pl.UTF-8
164 Statyczna wersja wrappera Qt dla popplera.
165
166 %package Qt
167 Summary:        Qt4 wrapper for poppler
168 Summary(pl.UTF-8):      Wrapper Qt4 dla popplera
169 Group:          Libraries
170 Requires:       %{name} = %{version}-%{release}
171
172 %description Qt
173 Qt4 wrapper for poppler.
174
175 %description Qt -l pl.UTF-8
176 Wrapper Qt4 dla popplera.
177
178 %package Qt-devel
179 Summary:        Header files for Qt4 wrapper for poppler
180 Summary(pl.UTF-8):      Pliki nagłówkowe wrappera Qt4 dla popplera
181 Group:          Development/Libraries
182 Requires:       %{name}-Qt = %{version}-%{release}
183 Requires:       %{name}-devel = %{version}-%{release}
184 Requires:       QtGui-devel
185 Requires:       QtXml-devel
186
187 %description Qt-devel
188 Header files for Qt4 wrapper for poppler.
189
190 %description Qt-devel -l pl.UTF-8
191 Pliki nagłówkowe wrapper Qt4 dla popplera.
192
193 %package Qt-static
194 Summary:        Static version of Qt4 wrapper for poppler
195 Summary(pl.UTF-8):      Statyczna wersja wrappera Qt4 dla popplera
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
202 %description Qt-static -l pl.UTF-8
203 Statyczna wersja wrappera Qt4 dla popplera.
204
205 %package progs
206 Summary:        Set of tools for viewing information and converting PDF files
207 Summary(pl.UTF-8):      Zestaw narzędzi do wyświetlania informacji i konwertowania plików PDF
208 Group:          Applications/Publishing
209 Provides:       pdftops
210 Obsoletes:      pdftohtml
211 Obsoletes:      pdftohtml-pdftops
212 Obsoletes:      poppler-utils
213 Obsoletes:      xpdf-tools
214
215 %description progs
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
220
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ż
226   czystego tekstu
227
228 %prep
229 %setup -q
230
231 %build
232 %{?with_apidocs:%{__gtkdocize}}
233 %{__libtoolize}
234 %{__aclocal} -I m4
235 %{__autoconf} -f
236 %{__autoheader}
237 %{__automake}
238 %configure \
239         QTINC=%{_includedir}/qt \
240         QTLIB=%{_libdir} \
241         %{!?with_cairo:--disable-cairo-output} \
242         %{!?with_qt:--disable-poppler-qt} \
243         %{!?with_qt4:--disable-poppler-qt4} \
244         --enable-a4-paper \
245         %{?with_apidocs:--enable-gtk-doc} \
246         --enable-xpdf-headers \
247         --enable-zlib \
248         --enable-dependency-tracking \
249         --with-html-dir=%{_gtkdocdir}
250
251 %{__make}
252
253 %install
254 rm -rf $RPM_BUILD_ROOT
255
256 %{__make} install \
257         DESTDIR=$RPM_BUILD_ROOT
258
259 %if %{without apidocs}
260 # why it still installs them, brr
261 rm -rf $RPM_BUILD_ROOT%{_gtkdocdir}/poppler
262 %endif
263
264 %clean
265 rm -rf $RPM_BUILD_ROOT
266
267 %post   -p /sbin/ldconfig
268 %postun -p /sbin/ldconfig
269
270 %post   glib -p /sbin/ldconfig
271 %postun glib -p /sbin/ldconfig
272
273 %post   qt -p /sbin/ldconfig
274 %postun qt -p /sbin/ldconfig
275
276 %post   Qt -p /sbin/ldconfig
277 %postun Qt -p /sbin/ldconfig
278
279 %files
280 %defattr(644,root,root,755)
281 %doc AUTHORS ChangeLog NEWS README* TODO
282 %attr(755,root,root) %{_libdir}/libpoppler.so.*.*.*
283 %attr(755,root,root) %ghost %{_libdir}/libpoppler.so.5
284
285 %files devel
286 %defattr(644,root,root,755)
287 %attr(755,root,root) %{_libdir}/libpoppler.so
288 %{_libdir}/libpoppler.la
289 %dir %{_includedir}/poppler
290 %{_includedir}/poppler/poppler-config.h
291 %{_includedir}/poppler/[ABCDEFGJLMNOPSTUX]*.h
292 %{_includedir}/poppler/goo
293 %{_includedir}/poppler/fofi
294 %{_includedir}/poppler/splash
295 %exclude %{_includedir}/poppler/glib
296 %{_pkgconfigdir}/poppler.pc
297 %{?with_cairo:%{_pkgconfigdir}/poppler-cairo.pc}
298 %{_pkgconfigdir}/poppler-splash.pc
299
300 %files static
301 %defattr(644,root,root,755)
302 %{_libdir}/libpoppler.a
303
304 %if %{with apidocs}
305 %files apidocs
306 %defattr(644,root,root,755)
307 %{_gtkdocdir}/poppler
308 %endif
309
310 %files glib
311 %defattr(644,root,root,755)
312 %attr(755,root,root) %{_libdir}/libpoppler-glib.so.*.*.*
313 %attr(755,root,root) %ghost %{_libdir}/libpoppler-glib.so.4
314
315 %files glib-devel
316 %defattr(644,root,root,755)
317 %attr(755,root,root) %{_libdir}/libpoppler-glib.so
318 %{_libdir}/libpoppler-glib.la
319 %{_includedir}/poppler/glib
320 %{_pkgconfigdir}/poppler-glib.pc
321
322 %files glib-static
323 %defattr(644,root,root,755)
324 %{_libdir}/libpoppler-glib.a
325
326 %if %{with qt}
327 %files qt
328 %defattr(644,root,root,755)
329 %attr(755,root,root) %{_libdir}/libpoppler-qt.so.*.*.*
330 %attr(755,root,root) %ghost %{_libdir}/libpoppler-qt.so.2
331
332 %files qt-devel
333 %defattr(644,root,root,755)
334 %attr(755,root,root) %{_libdir}/libpoppler-qt.so
335 %{_libdir}/libpoppler-qt.la
336 %{_includedir}/poppler/qt3
337 %{_pkgconfigdir}/poppler-qt.pc
338
339 %files qt-static
340 %defattr(644,root,root,755)
341 %{_libdir}/libpoppler-qt.a
342 %endif
343
344 %if %{with qt4}
345 %files Qt
346 %defattr(644,root,root,755)
347 %attr(755,root,root) %{_libdir}/libpoppler-qt4.so.*.*.*
348 %attr(755,root,root) %ghost %{_libdir}/libpoppler-qt4.so.3
349
350 %files Qt-devel
351 %defattr(644,root,root,755)
352 %attr(755,root,root) %{_libdir}/libpoppler-qt4.so
353 %{_libdir}/libpoppler-qt4.la
354 %{_includedir}/poppler/qt4
355 %{_pkgconfigdir}/poppler-qt4.pc
356
357 %files Qt-static
358 %defattr(644,root,root,755)
359 %{_libdir}/libpoppler-qt4.a
360 %endif
361
362 %files progs
363 %defattr(644,root,root,755)
364 %attr(755,root,root) %{_bindir}/pdf*
365 %{_mandir}/man1/pdf*
This page took 0.049167 seconds and 4 git commands to generate.