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