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