]> git.pld-linux.org Git - packages/poppler.git/blob - poppler.spec
- up to 0.12.2
[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.2
14 Release:        1
15 License:        GPL v2+
16 Group:          Libraries
17 Source0:        http://poppler.freedesktop.org/%{name}-%{version}.tar.gz
18 # Source0-md5:  60c00b55acf7dd389bf256d178af70bf
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:  glib2-devel >= 1:2.6.0
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:       glib2 >= 1:2.6.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:       glib2-devel >= 1:2.6.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         --disable-gtk-test \
242         %{!?with_cairo:--disable-cairo-output} \
243         %{!?with_qt:--disable-poppler-qt} \
244         %{!?with_qt4:--disable-poppler-qt4} \
245         --enable-a4-paper \
246         %{?with_apidocs:--enable-gtk-doc} \
247         --enable-xpdf-headers \
248         --enable-zlib \
249         --enable-dependency-tracking \
250         --with-html-dir=%{_gtkdocdir}
251
252 %{__make}
253
254 %install
255 rm -rf $RPM_BUILD_ROOT
256
257 %{__make} install \
258         DESTDIR=$RPM_BUILD_ROOT
259
260 %if %{without apidocs}
261 # why it still installs them, brr
262 rm -rf $RPM_BUILD_ROOT%{_gtkdocdir}/poppler
263 %endif
264
265 %clean
266 rm -rf $RPM_BUILD_ROOT
267
268 %post   -p /sbin/ldconfig
269 %postun -p /sbin/ldconfig
270
271 %post   glib -p /sbin/ldconfig
272 %postun glib -p /sbin/ldconfig
273
274 %post   qt -p /sbin/ldconfig
275 %postun qt -p /sbin/ldconfig
276
277 %post   Qt -p /sbin/ldconfig
278 %postun Qt -p /sbin/ldconfig
279
280 %files
281 %defattr(644,root,root,755)
282 %doc AUTHORS ChangeLog NEWS README* TODO
283 %attr(755,root,root) %{_libdir}/libpoppler.so.*.*.*
284 %attr(755,root,root) %ghost %{_libdir}/libpoppler.so.5
285
286 %files devel
287 %defattr(644,root,root,755)
288 %attr(755,root,root) %{_libdir}/libpoppler.so
289 %{_libdir}/libpoppler.la
290 %dir %{_includedir}/poppler
291 %{_includedir}/poppler/poppler-config.h
292 %{_includedir}/poppler/[ABCDEFGJLMNOPSTUX]*.h
293 %{_includedir}/poppler/goo
294 %{_includedir}/poppler/fofi
295 %{_includedir}/poppler/splash
296 %exclude %{_includedir}/poppler/glib
297 %{_pkgconfigdir}/poppler.pc
298 %{?with_cairo:%{_pkgconfigdir}/poppler-cairo.pc}
299 %{_pkgconfigdir}/poppler-splash.pc
300
301 %files static
302 %defattr(644,root,root,755)
303 %{_libdir}/libpoppler.a
304
305 %if %{with apidocs}
306 %files apidocs
307 %defattr(644,root,root,755)
308 %{_gtkdocdir}/poppler
309 %endif
310
311 %files glib
312 %defattr(644,root,root,755)
313 %attr(755,root,root) %{_libdir}/libpoppler-glib.so.*.*.*
314 %attr(755,root,root) %ghost %{_libdir}/libpoppler-glib.so.4
315
316 %files glib-devel
317 %defattr(644,root,root,755)
318 %attr(755,root,root) %{_libdir}/libpoppler-glib.so
319 %{_libdir}/libpoppler-glib.la
320 %{_includedir}/poppler/glib
321 %{_pkgconfigdir}/poppler-glib.pc
322
323 %files glib-static
324 %defattr(644,root,root,755)
325 %{_libdir}/libpoppler-glib.a
326
327 %if %{with qt}
328 %files qt
329 %defattr(644,root,root,755)
330 %attr(755,root,root) %{_libdir}/libpoppler-qt.so.*.*.*
331 %attr(755,root,root) %ghost %{_libdir}/libpoppler-qt.so.2
332
333 %files qt-devel
334 %defattr(644,root,root,755)
335 %attr(755,root,root) %{_libdir}/libpoppler-qt.so
336 %{_libdir}/libpoppler-qt.la
337 %{_includedir}/poppler/qt3
338 %{_pkgconfigdir}/poppler-qt.pc
339
340 %files qt-static
341 %defattr(644,root,root,755)
342 %{_libdir}/libpoppler-qt.a
343 %endif
344
345 %if %{with qt4}
346 %files Qt
347 %defattr(644,root,root,755)
348 %attr(755,root,root) %{_libdir}/libpoppler-qt4.so.*.*.*
349 %attr(755,root,root) %ghost %{_libdir}/libpoppler-qt4.so.3
350
351 %files Qt-devel
352 %defattr(644,root,root,755)
353 %attr(755,root,root) %{_libdir}/libpoppler-qt4.so
354 %{_libdir}/libpoppler-qt4.la
355 %{_includedir}/poppler/qt4
356 %{_pkgconfigdir}/poppler-qt4.pc
357
358 %files Qt-static
359 %defattr(644,root,root,755)
360 %{_libdir}/libpoppler-qt4.a
361 %endif
362
363 %files progs
364 %defattr(644,root,root,755)
365 %attr(755,root,root) %{_bindir}/pdf*
366 %{_mandir}/man1/pdf*
This page took 1.128229 seconds and 4 git commands to generate.