]> git.pld-linux.org Git - packages/poppler.git/blob - poppler.spec
- BR: gdk-pixbuf-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.0
14 Release:        1
15 License:        GPL v2+
16 Group:          Libraries
17 Source0:        http://poppler.freedesktop.org/%{name}-%{version}.tar.gz
18 # Source0-md5:  399b25d9d71ad22bc9a2a9281769c49c
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:  gdk-pixbuf-devel
29 BuildRequires:  gtk+2-devel >= 2:2.8.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:  zlib-devel
39 BuildRoot:      %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
40
41 %description
42 A common PDF rendering library for integrating PDF viewing into
43 desktop applications (based on the xpdf-3.0 code base).
44
45 %description -l pl.UTF-8
46 Wspólna biblioteka renderująca PDF do integrowania oglądania PDF w
47 aplikacjach desktopowych (oparta na kodzie xpdf-3.0).
48
49 %package devel
50 Summary:        Poppler header files
51 Summary(pl.UTF-8):      Pliki nagłówkowe biblioteki Poppler
52 Group:          Development/Libraries
53 Requires:       %{name} = %{version}-%{release}
54 Requires:       fontconfig-devel
55 Requires:       freetype-devel >= 2.0
56 Requires:       libstdc++-devel
57
58 %description devel
59 Header files for the Poppler library.
60
61 %description devel -l pl.UTF-8
62 Pliki nagłówkowe biblioteki Poppler.
63
64 %package static
65 Summary:        Poppler static libraries
66 Summary(pl.UTF-8):      Statyczne biblioteki Poppler
67 Group:          Development/Libraries
68 Requires:       %{name}-devel = %{version}-%{release}
69
70 %description static
71 Poppler static libraries.
72
73 %description static -l pl.UTF-8
74 Statyczne biblioteki Poppler.
75
76 %package apidocs
77 Summary:        Poppler library API documentation
78 Summary(pl.UTF-8):      Dokumentacja API biblioteki Poppler
79 Group:          Documentation
80 Requires:       gtk-doc-common
81
82 %description apidocs
83 Poppler library API documentation.
84
85 %description apidocs -l pl.UTF-8
86 Dokumentacja API biblioteki Poppler.
87
88 %package glib
89 Summary:        GLib wrapper for poppler
90 Summary(pl.UTF-8):      Wrapper GLib dla popplera
91 Group:          Libraries
92 Requires:       %{name} = %{version}-%{release}
93 %{?with_cairo:Requires: cairo >= %{cairo_ver}}
94 Requires:       gtk+2 >= 2:2.8.0
95
96 %description glib
97 GLib wrapper for poppler.
98
99 %description glib -l pl.UTF-8
100 Wrapper GLib dla popplera.
101
102 %package glib-devel
103 Summary:        Header files for GLib wrapper for poppler
104 Summary(pl.UTF-8):      Pliki nagłówkowe wrappera GLib dla popplera
105 Group:          Development/Libraries
106 Requires:       %{name}-devel = %{version}-%{release}
107 Requires:       %{name}-glib = %{version}-%{release}
108 %{?with_cairo:Requires: cairo-devel >= %{cairo_ver}}
109 Requires:       gtk+2-devel >= 2:2.8.0
110
111 %description glib-devel
112 Header files for GLib wrapper for poppler.
113
114 %description glib-devel -l pl.UTF-8
115 Pliki nagłówkowe wrappera GLib dla popplera.
116
117 %package glib-static
118 Summary:        Static version of GLib wrapper for poppler
119 Summary(pl.UTF-8):      Statyczna wersja wrappera GLib dla popplera
120 Group:          Development/Libraries
121 Requires:       %{name}-glib-devel = %{version}-%{release}
122
123 %description glib-static
124 Static version of GLib wrapper for poppler.
125
126 %description glib-static -l pl.UTF-8
127 Statyczna wersja wrappera GLib dla popplera.
128
129 %package qt
130 Summary:        Qt wrapper for poppler
131 Summary(pl.UTF-8):      Wrapper Qt dla popplera
132 Group:          Libraries
133 Requires:       %{name} = %{version}-%{release}
134
135 %description qt
136 Qt wrapper for poppler.
137
138 %description qt -l pl.UTF-8
139 Wrapper Qt dla popplera.
140
141 %package qt-devel
142 Summary:        Header files for Qt wrapper for poppler
143 Summary(pl.UTF-8):      Pliki nagłówkowe wrappera Qt dla popplera
144 Group:          Development/Libraries
145 Requires:       %{name}-devel = %{version}-%{release}
146 Requires:       %{name}-qt = %{version}-%{release}
147 Requires:       qt-devel
148
149 %description qt-devel
150 Header files for Qt wrapper for poppler.
151
152 %description qt-devel -l pl.UTF-8
153 Pliki nagłówkowe wrappera Qt dla popplera.
154
155 %package qt-static
156 Summary:        Static version of Qt wrapper for poppler
157 Summary(pl.UTF-8):      Statyczna wersja wrappera Qt dla popplera
158 Group:          Development/Libraries
159 Requires:       %{name}-qt-devel = %{version}-%{release}
160
161 %description qt-static
162 Static version of Qt wrapper for poppler.
163
164 %description qt-static -l pl.UTF-8
165 Statyczna wersja wrappera Qt dla popplera.
166
167 %package Qt
168 Summary:        Qt4 wrapper for poppler
169 Summary(pl.UTF-8):      Wrapper Qt4 dla popplera
170 Group:          Libraries
171 Requires:       %{name} = %{version}-%{release}
172
173 %description Qt
174 Qt4 wrapper for poppler.
175
176 %description Qt -l pl.UTF-8
177 Wrapper Qt4 dla popplera.
178
179 %package Qt-devel
180 Summary:        Header files for Qt4 wrapper for poppler
181 Summary(pl.UTF-8):      Pliki nagłówkowe wrappera Qt4 dla popplera
182 Group:          Development/Libraries
183 Requires:       %{name}-Qt = %{version}-%{release}
184 Requires:       %{name}-devel = %{version}-%{release}
185 Requires:       QtGui-devel
186 Requires:       QtXml-devel
187
188 %description Qt-devel
189 Header files for Qt4 wrapper for poppler.
190
191 %description Qt-devel -l pl.UTF-8
192 Pliki nagłówkowe wrapper Qt4 dla popplera.
193
194 %package Qt-static
195 Summary:        Static version of Qt4 wrapper for poppler
196 Summary(pl.UTF-8):      Statyczna wersja wrappera Qt4 dla popplera
197 Group:          Development/Libraries
198 Requires:       %{name}-Qt-devel = %{version}-%{release}
199
200 %description Qt-static
201 Static version of Qt4 wrapper for poppler.
202
203 %description Qt-static -l pl.UTF-8
204 Statyczna wersja wrappera Qt4 dla popplera.
205
206 %package progs
207 Summary:        Set of tools for viewing information and converting PDF files
208 Summary(pl.UTF-8):      Zestaw narzędzi do wyświetlania informacji i konwertowania plików PDF
209 Group:          Applications/Publishing
210 Provides:       pdftops
211 Obsoletes:      pdftohtml
212 Obsoletes:      pdftohtml-pdftops
213 Obsoletes:      poppler-utils
214 Obsoletes:      xpdf-tools
215
216 %description progs
217 Package contains utilites for PDF files. These utilities allow to
218 - extract information about PDF files
219 - extract images from PDF files
220 - convert PDF files to HTML, plain text and PS formats
221
222 %description progs -l pl.UTF-8
223 Pakiet zawiera zestaw narzędzi do plików PDF. Programy te umożliwiają
224 - wyświetlanie informacji o plikach PDF
225 - wydobywanie obrazków z plików PDF
226 - konwersję plików PDF do formatów takich jak HTML, PS czy też
227   czystego tekstu
228
229 %prep
230 %setup -q
231
232 %build
233 %{?with_apidocs:%{__gtkdocize}}
234 %{__libtoolize}
235 %{__aclocal} -I m4
236 %{__autoconf} -f
237 %{__autoheader}
238 %{__automake}
239 %configure \
240         QTINC=%{_includedir}/qt \
241         QTLIB=%{_libdir} \
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 0.078096 seconds and 4 git commands to generate.