]> git.pld-linux.org Git - packages/poppler.git/blob - poppler.spec
- License is GPL (not LGPL) - see README
[packages/poppler.git] / poppler.spec
1 #
2 # Conditional build:
3 %bcond_with     cairo   # enable Cairo backend
4 #
5 Summary:        PDF rendering library
6 Summary(pl):    Biblioteka renderuj±ca PDF
7 Name:           poppler
8 Version:        0.1.1
9 Release:        0.1
10 License:        GPL
11 Group:          Libraries
12 Source0:        http://poppler.freedesktop.org/%{name}-%{version}.tar.gz
13 # Source0-md5:  d10982c93a1ccee79a14bb277f94990a
14 URL:            http://poppler.freedesktop.org/
15 %{?with_cairo:BuildRequires:    cairo-devel >= 0.3.0}
16 BuildRequires:  fontconfig-devel
17 BuildRequires:  freetype-devel >= 2.0
18 BuildRequires:  libstdc++-devel
19 BuildRequires:  pkgconfig
20 %{?with_cairo:Requires: cairo >= 0.3.0}
21 BuildRoot:      %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
22
23 %description
24 A common PDF rendering library for integrating PDF viewing into
25 desktop applications (based on the xpdf-3.0 code base).
26
27 %description -l pl
28 Wspólna biblioteka renderuj±ca PDF do integrowania ogl±dania PDF w
29 aplikacjach desktopowych (oparta na kodzie xpdf-3.0).
30
31 %package devel
32 Summary:        Poppler header files
33 Summary(pl):    Pliki nag³ówkowe biblioteki Poppler
34 Group:          Development/Libraries
35 Requires:       %{name} = %{version}-%{release}
36 %{?with_cairo:Requires: cairo-devel >= 0.3.0}
37 Requires:       fontconfig-devel
38 Requires:       freetype-devel >= 2.0
39 Requires:       libstdc++-devel
40
41 %description devel
42 Header files for the Poppler library.
43
44 %description devel -l pl
45 Pliki nag³ówkowe biblioteki Poppler.
46
47 %package static
48 Summary:        Poppler static libraries
49 Summary(pl):    Statyczne biblioteki Poppler
50 Group:          Development/Libraries
51 Requires:       %{name}-devel = %{version}-%{release}
52
53 %description static
54 Poppler static libraries.
55
56 %description static -l pl
57 Statyczne biblioteki Poppler.
58
59 %prep
60 %setup -q
61
62 %build
63 %configure \
64         %{!?with_cairo:--disable-cairo-output}
65 %{__make}
66
67 %install
68 rm -rf $RPM_BUILD_ROOT
69
70 %{__make} install \
71         DESTDIR=$RPM_BUILD_ROOT
72
73 %clean
74 rm -rf $RPM_BUILD_ROOT
75
76 %post   -p /sbin/ldconfig
77 %postun -p /sbin/ldconfig
78
79 %files
80 %defattr(644,root,root,755)
81 %doc AUTHORS ChangeLog NEWS README* TODO
82 %attr(755,root,root) %{_libdir}/lib*.so.*.*
83
84 %files devel
85 %defattr(644,root,root,755)
86 %attr(755,root,root) %{_libdir}/lib*.so
87 %{_libdir}/lib*.la
88 %{_includedir}/poppler
89 %{_pkgconfigdir}/*.pc
90
91 %files static
92 %defattr(644,root,root,755)
93 %{_libdir}/lib*.a
This page took 0.067729 seconds and 4 git commands to generate.