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