1 | %define name poppler020 |
---|
2 | %define version 0.20.4 |
---|
3 | %define release 2%{?_dist_release} |
---|
4 | |
---|
5 | Summary: PDF rendering library. |
---|
6 | Summary(ja): PDF レンダリング用ライブラリ |
---|
7 | Name: %{name} |
---|
8 | Version: %{version} |
---|
9 | Release: %{release} |
---|
10 | |
---|
11 | Source0: http://poppler.freedesktop.org/poppler-%{version}.tar.gz |
---|
12 | |
---|
13 | License: GPLv2 |
---|
14 | Group: System Environment/Libraries |
---|
15 | URL: http://poppler.freedesktop.org/ |
---|
16 | |
---|
17 | BuildRequires: gtk2-devel >= 2.2.0 |
---|
18 | BuildRequires: zlib-devel |
---|
19 | BuildRequires: libjpeg-devel |
---|
20 | BuildRequires: openjpeg-devel |
---|
21 | BuildRequires: cairo-devel |
---|
22 | BuildRequires: qt4-devel >= 4.4.0 |
---|
23 | BuildRequires: libXmu-devel |
---|
24 | BuildRequires: lcms2-devel |
---|
25 | BuildRequires: libtiff-devel |
---|
26 | |
---|
27 | Requires: poppler-data >= 0.3.0 |
---|
28 | |
---|
29 | BuildRoot: %{_tmppath}/%{name}-%{version}-root |
---|
30 | |
---|
31 | Obsoletes: %{name}-qt < 0.18 |
---|
32 | Obsoletes: %{name}-qt-devel < 0.18 |
---|
33 | |
---|
34 | Vendor: Project Vine |
---|
35 | Distribution: Vine Linux |
---|
36 | Packager: Takemikaduchi |
---|
37 | |
---|
38 | %description |
---|
39 | Poppler is a PDF rendering library based on the xpdf-3.0 code base. |
---|
40 | |
---|
41 | %description -l ja |
---|
42 | Popplerは xpdf-3.0 のコードをベースにした PDF レンダリング用ライブラリ |
---|
43 | です。 |
---|
44 | |
---|
45 | %prep |
---|
46 | %setup -q -n poppler-%{version} |
---|
47 | |
---|
48 | %build |
---|
49 | %configure \ |
---|
50 | --enable-silent-rules \ |
---|
51 | --enable-shared \ |
---|
52 | --disable-static \ |
---|
53 | --enable-xpdf-headers \ |
---|
54 | --enable-zlib \ |
---|
55 | --enable-introspection=yes \ |
---|
56 | --disable-gtk-doc \ |
---|
57 | --enable-poppler-qt4 |
---|
58 | |
---|
59 | %{__make} |
---|
60 | |
---|
61 | |
---|
62 | %install |
---|
63 | %{__rm} -rf ${RPM_BUILD_ROOT} |
---|
64 | %makeinstall |
---|
65 | |
---|
66 | # remove unnecessary files. |
---|
67 | %{__rm} -rf ${RPM_BUILD_ROOT}/%{_libdir}/libpoppler.la |
---|
68 | %{__rm} -rf ${RPM_BUILD_ROOT}/%{_libdir}/libpoppler-cpp.la |
---|
69 | %{__rm} -rf ${RPM_BUILD_ROOT}/%{_libdir}/libpoppler-glib.la |
---|
70 | %{__rm} -rf ${RPM_BUILD_ROOT}/%{_libdir}/libpoppler-qt4.la |
---|
71 | |
---|
72 | %clean |
---|
73 | %{__rm} -rf ${RPM_BUILD_ROOT} |
---|
74 | |
---|
75 | %post -p /sbin/ldconfig |
---|
76 | |
---|
77 | %postun -p /sbin/ldconfig |
---|
78 | |
---|
79 | %files |
---|
80 | %defattr(-,root,root) |
---|
81 | %doc AUTHORS COPYING ChangeLog INSTALL NEWS README* TODO |
---|
82 | %{_libdir}/libpoppler.so.* |
---|
83 | |
---|
84 | |
---|
85 | %changelog |
---|
86 | * Sun Aug 02 2015 Yoji TOYODA <bsyamato@sea.plala.or.jp> 0.20.4-2 |
---|
87 | - rebuild with libpng-1.6.12 |
---|
88 | |
---|
89 | * Sat Oct 26 2013 Yoji TOYODA <bsyamato@sea.plala.or.jp> 0.20.4-1 |
---|
90 | - changed %%name to "poppler020" for compatibility. |
---|
91 | |
---|