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