]> git.pld-linux.org Git - packages/poppler0.61.git/blame_incremental - poppler.spec
- Up to 0.16.15. Release 1.
[packages/poppler0.61.git] / poppler.spec
... / ...
CommitLineData
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%bcond_without cpp # disable cpp wrapper
8%bcond_without glib # disable glib wrapper
9#
10%define cairo_ver 1.10.0
11#
12Summary: PDF rendering library
13Summary(pl.UTF-8): Biblioteka renderująca PDF
14Name: poppler
15Version: 0.16.5
16Release: 1
17License: GPL v2+
18Group: Libraries
19Source0: http://poppler.freedesktop.org/%{name}-%{version}.tar.gz
20# Source0-md5: 2b6e0c26b77a943df3b9bb02d67ca236
21URL: http://poppler.freedesktop.org/
22%{?with_qt4:BuildRequires: QtGui-devel >= 4.4.0}
23%{?with_qt4:BuildRequires: QtTest-devel >= 4.4.0}
24%{?with_qt4:BuildRequires: QtXml-devel >= 4.4.0}
25BuildRequires: autoconf >= 2.59
26BuildRequires: automake
27%{?with_cairo:BuildRequires: cairo-devel >= %{cairo_ver}}
28BuildRequires: docbook-dtd412-xml
29BuildRequires: fontconfig-devel >= 2.0.0
30BuildRequires: freetype-devel >= 2.0
31BuildRequires: gettext-devel
32%{?with_glib:BuildRequires: glib2-devel >= 1:2.18.0}
33BuildRequires: gobject-introspection-devel >= 0.6.7
34%{?with_apidocs:BuildRequires: gtk-doc >= 1.14}
35BuildRequires: lcms-devel
36BuildRequires: libjpeg-devel
37BuildRequires: libstdc++-devel
38BuildRequires: libtool >= 2:1.5
39BuildRequires: libxml2-devel >= 2.0
40BuildRequires: openjpeg-devel
41BuildRequires: pkgconfig >= 1:0.18
42%{?with_qt:BuildRequires: qt-devel >= 3.0}
43%{?with_qt4:BuildRequires: qt4-build}
44BuildRequires: sed >= 4.0
45BuildRequires: which
46BuildRequires: zlib-devel
47BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
48
49%description
50A common PDF rendering library for integrating PDF viewing into
51desktop applications (based on the xpdf-3.0 code base).
52
53%description -l pl.UTF-8
54Wspólna biblioteka renderująca PDF do integrowania oglądania PDF w
55aplikacjach desktopowych (oparta na kodzie xpdf-3.0).
56
57%package devel
58Summary: Poppler header files
59Summary(pl.UTF-8): Pliki nagłówkowe biblioteki Poppler
60Group: Development/Libraries
61Requires: %{name} = %{version}-%{release}
62Requires: fontconfig-devel >= 2.0.0
63Requires: freetype-devel >= 2.0
64Requires: lcms-devel
65Requires: libstdc++-devel
66Requires: openjpeg-devel
67
68%description devel
69Header files for the Poppler library.
70
71%description devel -l pl.UTF-8
72Pliki nagłówkowe biblioteki Poppler.
73
74%package static
75Summary: Poppler static libraries
76Summary(pl.UTF-8): Statyczne biblioteki Poppler
77Group: Development/Libraries
78Requires: %{name}-devel = %{version}-%{release}
79
80%description static
81Poppler static libraries.
82
83%description static -l pl.UTF-8
84Statyczne biblioteki Poppler.
85
86%package apidocs
87Summary: Poppler library API documentation
88Summary(pl.UTF-8): Dokumentacja API biblioteki Poppler
89Group: Documentation
90Requires: gtk-doc-common
91
92%description apidocs
93Poppler library API documentation.
94
95%description apidocs -l pl.UTF-8
96Dokumentacja API biblioteki Poppler.
97
98%package cpp
99Summary: Cpp wrapper for poppler
100Summary(pl.UTF-8): Wrapper cpp dla popplera
101Group: Libraries
102Requires: %{name} = %{version}-%{release}
103
104%description cpp
105Cpp wrapper for poppler.
106
107%description cpp -l pl.UTF-8
108Wrapper cpp dla popplera.
109
110%package cpp-devel
111Summary: Header files for cpp wrapper for poppler
112Summary(pl.UTF-8): Pliki nagłówkowe wrappera cpp dla popplera
113Group: Development/Libraries
114Requires: %{name}-cpp = %{version}-%{release}
115Requires: %{name}-devel = %{version}-%{release}
116
117%description cpp-devel
118Header files for cpp wrapper for poppler.
119
120%description cpp-devel -l pl.UTF-8
121Pliki nagłówkowe wrappera cpp dla popplera.
122
123%package cpp-static
124Summary: Static version of cpp wrapper for poppler
125Summary(pl.UTF-8): Statyczna wersja wrappera cpp dla popplera
126Group: Development/Libraries
127Requires: %{name}-cpp-devel = %{version}-%{release}
128
129%description cpp-static
130Static version of cpp wrapper for poppler.
131
132%description cpp-static -l pl.UTF-8
133Statyczna wersja wrappera cpp dla popplera.
134
135%package glib
136Summary: GLib wrapper for poppler
137Summary(pl.UTF-8): Wrapper GLib dla popplera
138Group: Libraries
139Requires: %{name} = %{version}-%{release}
140%{?with_cairo:Requires: cairo >= %{cairo_ver}}
141Requires: glib2 >= 1:2.18.0
142
143%description glib
144GLib wrapper for poppler.
145
146%description glib -l pl.UTF-8
147Wrapper GLib dla popplera.
148
149%package glib-devel
150Summary: Header files for GLib wrapper for poppler
151Summary(pl.UTF-8): Pliki nagłówkowe wrappera GLib dla popplera
152Group: Development/Libraries
153Requires: %{name}-devel = %{version}-%{release}
154Requires: %{name}-glib = %{version}-%{release}
155%{?with_cairo:Requires: cairo-devel >= %{cairo_ver}}
156Requires: glib2-devel >= 1:2.18.0
157
158%description glib-devel
159Header files for GLib wrapper for poppler.
160
161%description glib-devel -l pl.UTF-8
162Pliki nagłówkowe wrappera GLib dla popplera.
163
164%package glib-static
165Summary: Static version of GLib wrapper for poppler
166Summary(pl.UTF-8): Statyczna wersja wrappera GLib dla popplera
167Group: Development/Libraries
168Requires: %{name}-glib-devel = %{version}-%{release}
169
170%description glib-static
171Static version of GLib wrapper for poppler.
172
173%description glib-static -l pl.UTF-8
174Statyczna wersja wrappera GLib dla popplera.
175
176%package qt
177Summary: Qt wrapper for poppler
178Summary(pl.UTF-8): Wrapper Qt dla popplera
179Group: Libraries
180Requires: %{name} = %{version}-%{release}
181
182%description qt
183Qt wrapper for poppler.
184
185%description qt -l pl.UTF-8
186Wrapper Qt dla popplera.
187
188%package qt-devel
189Summary: Header files for Qt wrapper for poppler
190Summary(pl.UTF-8): Pliki nagłówkowe wrappera Qt dla popplera
191Group: Development/Libraries
192Requires: %{name}-devel = %{version}-%{release}
193Requires: %{name}-qt = %{version}-%{release}
194Requires: qt-devel
195
196%description qt-devel
197Header files for Qt wrapper for poppler.
198
199%description qt-devel -l pl.UTF-8
200Pliki nagłówkowe wrappera Qt dla popplera.
201
202%package qt-static
203Summary: Static version of Qt wrapper for poppler
204Summary(pl.UTF-8): Statyczna wersja wrappera Qt dla popplera
205Group: Development/Libraries
206Requires: %{name}-qt-devel = %{version}-%{release}
207
208%description qt-static
209Static version of Qt wrapper for poppler.
210
211%description qt-static -l pl.UTF-8
212Statyczna wersja wrappera Qt dla popplera.
213
214%package Qt
215Summary: Qt4 wrapper for poppler
216Summary(pl.UTF-8): Wrapper Qt4 dla popplera
217Group: Libraries
218Requires: %{name} = %{version}-%{release}
219Requires: QtGui >= 4.4.0
220Requires: QtXml >= 4.4.0
221
222%description Qt
223Qt4 wrapper for poppler.
224
225%description Qt -l pl.UTF-8
226Wrapper Qt4 dla popplera.
227
228%package Qt-devel
229Summary: Header files for Qt4 wrapper for poppler
230Summary(pl.UTF-8): Pliki nagłówkowe wrappera Qt4 dla popplera
231Group: Development/Libraries
232Requires: %{name}-Qt = %{version}-%{release}
233Requires: %{name}-devel = %{version}-%{release}
234Requires: QtGui-devel >= 4.4.0
235Requires: QtXml-devel >= 4.4.0
236
237%description Qt-devel
238Header files for Qt4 wrapper for poppler.
239
240%description Qt-devel -l pl.UTF-8
241Pliki nagłówkowe wrapper Qt4 dla popplera.
242
243%package Qt-static
244Summary: Static version of Qt4 wrapper for poppler
245Summary(pl.UTF-8): Statyczna wersja wrappera Qt4 dla popplera
246Group: Development/Libraries
247Requires: %{name}-Qt-devel = %{version}-%{release}
248
249%description Qt-static
250Static version of Qt4 wrapper for poppler.
251
252%description Qt-static -l pl.UTF-8
253Statyczna wersja wrappera Qt4 dla popplera.
254
255%package progs
256Summary: Set of tools for viewing information and converting PDF files
257Summary(pl.UTF-8): Zestaw narzędzi do wyświetlania informacji i konwertowania plików PDF
258Group: Applications/Publishing
259Provides: pdftops
260Obsoletes: pdftohtml
261Obsoletes: pdftohtml-pdftops
262Obsoletes: poppler-utils
263Obsoletes: xpdf-tools
264
265%description progs
266Package contains utilites for PDF files. These utilities allow to
267- extract information about PDF files
268- extract images from PDF files
269- convert PDF files to HTML, plain text and PS formats
270
271%description progs -l pl.UTF-8
272Pakiet zawiera zestaw narzędzi do plików PDF. Programy te umożliwiają
273- wyświetlanie informacji o plikach PDF
274- wydobywanie obrazków z plików PDF
275- konwersję plików PDF do formatów takich jak HTML, PS czy też
276 czystego tekstu
277
278%prep
279%setup -q
280
281# fix link with Qt 3 libraries
282%{__sed} -i 's,(POPPLER_QT_LIBS),(libqt3_LIBS),' qt/Makefile.am
283
284%build
285%{?with_apidocs:%{__gtkdocize}}
286%{__libtoolize}
287%{__aclocal} -I m4
288%{__autoconf} -f
289%{__autoheader}
290%{__automake}
291%configure \
292 QTINC=%{_includedir}/qt \
293 QTLIB=%{_libdir} \
294 --disable-gtk-test \
295 %{!?with_cairo:--disable-cairo-output} \
296 %{!?with_qt:--disable-poppler-qt} \
297 %{!?with_qt4:--disable-poppler-qt4} \
298 %{!?with_cpp:--disable-poppler-cpp} \
299 %{!?with_glib:--disable-poppler-glib} \
300 --disable-silent-rules \
301 %{?with_apidocs:--enable-gtk-doc} \
302 --enable-xpdf-headers \
303 --enable-zlib \
304 --enable-dependency-tracking \
305 --with-html-dir=%{_gtkdocdir}
306
307%{__make}
308
309%install
310rm -rf $RPM_BUILD_ROOT
311
312%{__make} install \
313 DESTDIR=$RPM_BUILD_ROOT
314
315%if %{without apidocs}
316# why it still installs them, brr
317%{__rm} -rf $RPM_BUILD_ROOT%{_gtkdocdir}/poppler || :
318%endif
319
320%{__rm} $RPM_BUILD_ROOT%{_libdir}/*.la
321
322%clean
323rm -rf $RPM_BUILD_ROOT
324
325%post -p /sbin/ldconfig
326%postun -p /sbin/ldconfig
327
328%post cpp -p /sbin/ldconfig
329%postun cpp -p /sbin/ldconfig
330
331%post glib -p /sbin/ldconfig
332%postun glib -p /sbin/ldconfig
333
334%post qt -p /sbin/ldconfig
335%postun qt -p /sbin/ldconfig
336
337%post Qt -p /sbin/ldconfig
338%postun Qt -p /sbin/ldconfig
339
340%files
341%defattr(644,root,root,755)
342%doc AUTHORS ChangeLog NEWS README* TODO
343%attr(755,root,root) %{_libdir}/libpoppler.so.*.*.*
344%attr(755,root,root) %ghost %{_libdir}/libpoppler.so.13
345
346%files devel
347%defattr(644,root,root,755)
348%attr(755,root,root) %{_libdir}/libpoppler.so
349%dir %{_includedir}/poppler
350%{_includedir}/poppler/poppler-config.h
351%{_includedir}/poppler/[ABCDEFGHJLMNOPRSTUX]*.h
352%{_includedir}/poppler/fofi
353%{_includedir}/poppler/goo
354%{_includedir}/poppler/splash
355%{_pkgconfigdir}/poppler.pc
356%{?with_cairo:%{_pkgconfigdir}/poppler-cairo.pc}
357%{_pkgconfigdir}/poppler-splash.pc
358
359%files static
360%defattr(644,root,root,755)
361%{_libdir}/libpoppler.a
362
363%if %{with apidocs}
364%files apidocs
365%defattr(644,root,root,755)
366%{_gtkdocdir}/poppler
367%endif
368
369%if %{with cpp}
370%files cpp
371%defattr(644,root,root,755)
372%attr(755,root,root) %{_libdir}/libpoppler-cpp.so.*.*.*
373%attr(755,root,root) %ghost %{_libdir}/libpoppler-cpp.so.0
374
375%files cpp-devel
376%defattr(644,root,root,755)
377%attr(755,root,root) %{_libdir}/libpoppler-cpp.so
378%{_includedir}/poppler/cpp
379%{_pkgconfigdir}/poppler-cpp.pc
380
381%files cpp-static
382%defattr(644,root,root,755)
383%{_libdir}/libpoppler-cpp.a
384%endif
385
386%if %{with glib}
387%files glib
388%defattr(644,root,root,755)
389%attr(755,root,root) %{_libdir}/libpoppler-glib.so.*.*.*
390%attr(755,root,root) %ghost %{_libdir}/libpoppler-glib.so.6
391%{_libdir}/girepository-1.0/Poppler-0.16.typelib
392
393%files glib-devel
394%defattr(644,root,root,755)
395%attr(755,root,root) %{_libdir}/libpoppler-glib.so
396%{_includedir}/poppler/glib
397%{_pkgconfigdir}/poppler-glib.pc
398%{_datadir}/gir-1.0/Poppler-0.16.gir
399
400%files glib-static
401%defattr(644,root,root,755)
402%{_libdir}/libpoppler-glib.a
403%endif
404
405%if %{with qt}
406%files qt
407%defattr(644,root,root,755)
408%attr(755,root,root) %{_libdir}/libpoppler-qt.so.*.*.*
409%attr(755,root,root) %ghost %{_libdir}/libpoppler-qt.so.3
410
411%files qt-devel
412%defattr(644,root,root,755)
413%attr(755,root,root) %{_libdir}/libpoppler-qt.so
414%{_includedir}/poppler/qt3
415%{_pkgconfigdir}/poppler-qt.pc
416
417%files qt-static
418%defattr(644,root,root,755)
419%{_libdir}/libpoppler-qt.a
420%endif
421
422%if %{with qt4}
423%files Qt
424%defattr(644,root,root,755)
425%attr(755,root,root) %{_libdir}/libpoppler-qt4.so.*.*.*
426%attr(755,root,root) %ghost %{_libdir}/libpoppler-qt4.so.3
427
428%files Qt-devel
429%defattr(644,root,root,755)
430%attr(755,root,root) %{_libdir}/libpoppler-qt4.so
431%{_includedir}/poppler/qt4
432%{_pkgconfigdir}/poppler-qt4.pc
433
434%files Qt-static
435%defattr(644,root,root,755)
436%{_libdir}/libpoppler-qt4.a
437%endif
438
439%files progs
440%defattr(644,root,root,755)
441%attr(755,root,root) %{_bindir}/pdf*
442%{_mandir}/man1/pdf*
This page took 0.48148 seconds and 4 git commands to generate.