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