author | convert-repo |
Tue, 28 Sep 2010 11:41:29 +0000 | |
changeset 20122 | 34a34bffcb68 |
parent 20031 | f6370a7ebdae |
child 20138 | 6a5b62c3e6f0 |
permissions | -rw-r--r-- |
9397 | 1 |
# |
2 |
# spec file for package poppler |
|
3 |
# |
|
17990 | 4 |
# Copyright (c) 2010 Sun Microsystems, Inc. |
9397 | 5 |
# This file and all modifications and additions to the pristine |
6 |
# package are under the same license as the package itself. |
|
7 |
# |
|
17071 | 8 |
%define owner gheet |
9397 | 9 |
# bugdb: bugzilla.freedesktop.org |
10 |
# |
|
16429 | 11 |
|
12 |
%define OSR 3962:0.4.2 |
|
13 |
||
9397 | 14 |
Name: poppler |
20031 | 15 |
License: GPLv2,LGPLv2.1,X/MIT |
9397 | 16 |
Group: System/Libraries |
18242 | 17 |
Version: 0.14.1 |
9397 | 18 |
Release: 1 |
19 |
Distribution: Java Desktop System |
|
17865 | 20 |
Vendor: freedesktop.org |
9397 | 21 |
Summary: PDF Rendering Library |
22 |
Source: http://poppler.freedesktop.org/%{name}-%{version}.tar.gz |
|
23 |
# date:2005-11-29 type:feature owner:laca bugzilla:9730 |
|
9429 | 24 |
Patch1: poppler-01-uninstalled.pc.diff |
15654 | 25 |
# date:2009-04-20 type:bug owner:dkenny bugster:6685564 |
26 |
Patch2: poppler-02-ss12-compiler-bug.diff |
|
16416 | 27 |
# date:2009-08-30 type:bug owner:dkenny |
28 |
Patch3: poppler-03-compiler-errors.diff |
|
17345 | 29 |
# date:2010-01-14 type:bug owner:gheet doo:13889 |
30 |
Patch4: poppler-04-null-font.diff |
|
9397 | 31 |
URL: http://poppler.freedesktop.org/ |
32 |
BuildRoot: %{_tmppath}/%{name}-%{version}-build |
|
33 |
Docdir: %{_docdir}/%{name} |
|
34 |
Autoreqprov: on |
|
35 |
Prereq: /sbin/ldconfig |
|
36 |
||
37 |
%define cairo_version 0.5.0 |
|
38 |
%define gtk2_version 2.4.0 |
|
39 |
||
40 |
Requires: cairo >= %{cairo_version} |
|
41 |
Requires: gtk2 >= %{gtk2_version} |
|
42 |
||
43 |
BuildRequires: cairo-devel >= %{cairo_version} |
|
44 |
BuildRequires: gtk2-devel >= %{gtk2_version} |
|
45 |
||
46 |
Obsoletes: xpdf <= 3.0 |
|
47 |
Provides: xpdf = 3.0 |
|
48 |
||
49 |
%description |
|
50 |
Poppler is a fork of the xpdf PDF viewer developed by Derek Noonburg |
|
51 |
of Glyph and Cog, LLC. The purpose of forking xpdf is twofold. |
|
52 |
First, we want to provide PDF rendering functionality as a shared |
|
53 |
library, to centralize the maintenence effort. Today a number of |
|
54 |
applications incorporate the xpdf code base, and whenever a security |
|
55 |
issue is discovered, all these applications exchange patches and put |
|
56 |
out new releases. In turn, all distributions must package and release |
|
57 |
new version of these xpdf based viewers. It's safe to say that |
|
58 |
there's a lot of duplicated effort with the current situaion. Even if |
|
59 |
poppler in the short term introduces yet another xpdf derived code |
|
60 |
base to the world, we hope that over time these applications will |
|
61 |
adopt poppler. After all, we only need one application to use poppler |
|
62 |
to break even. |
|
63 |
||
64 |
Second, we would like to move libpoppler forward in a number of areas |
|
65 |
that doesn't fit within the goals of xpdf. By design, xpdf depends on |
|
66 |
very few libraries and runs a wide range of X based platforms. This |
|
67 |
is a strong feature and reasonable design goal. However, with poppler |
|
68 |
we would like to replace parts of xpdf that are now available as |
|
69 |
standard components of modern Unix desktop environments. One such |
|
70 |
example is fontconfig, which solves the problem of matching and |
|
71 |
locating fonts on the system, in a standardized and well understood |
|
72 |
way. Another example is cairo, which provides high quality 2D |
|
73 |
rendering. |
|
74 |
||
75 |
%package devel |
|
76 |
Summary: PDF Rendering Library |
|
77 |
Group: Development/Libraries |
|
78 |
Requires: %{name} = %{version} |
|
79 |
Requires: cairo-devel >= %{cairo_version} |
|
80 |
Requires: gtk2-devel >= %{gtk2_version} |
|
81 |
||
82 |
%description devel |
|
83 |
Poppler is a fork of the xpdf PDF viewer developed by Derek Noonburg |
|
84 |
of Glyph and Cog, LLC. The purpose of forking xpdf is twofold. |
|
85 |
First, we want to provide PDF rendering functionality as a shared |
|
86 |
library, to centralize the maintenence effort. Today a number of |
|
87 |
applications incorporate the xpdf code base, and whenever a security |
|
88 |
issue is discovered, all these applications exchange patches and put |
|
89 |
out new releases. In turn, all distributions must package and release |
|
90 |
new version of these xpdf based viewers. It's safe to say that |
|
91 |
there's a lot of duplicated effort with the current situaion. Even if |
|
92 |
poppler in the short term introduces yet another xpdf derived code |
|
93 |
base to the world, we hope that over time these applications will |
|
94 |
adopt poppler. After all, we only need one application to use poppler |
|
95 |
to break even. |
|
96 |
||
97 |
Second, we would like to move libpoppler forward in a number of areas |
|
98 |
that doesn't fit within the goals of xpdf. By design, xpdf depends on |
|
99 |
very few libraries and runs a wide range of X based platforms. This |
|
100 |
is a strong feature and reasonable design goal. However, with poppler |
|
101 |
we would like to replace parts of xpdf that are now available as |
|
102 |
standard components of modern Unix desktop environments. One such |
|
103 |
example is fontconfig, which solves the problem of matching and |
|
104 |
locating fonts on the system, in a standardized and well understood |
|
105 |
way. Another example is cairo, which provides high quality 2D |
|
106 |
rendering. |
|
107 |
||
108 |
%prep |
|
109 |
%setup -q |
|
110 |
%patch1 -p1 |
|
15654 | 111 |
%if %cc_is_gcc |
112 |
%else |
|
15578 | 113 |
%patch2 -p1 |
16416 | 114 |
%patch3 -p1 |
18103 | 115 |
%endif |
17345 | 116 |
%patch4 -p1 |
9397 | 117 |
|
118 |
%build |
|
119 |
%ifos linux |
|
120 |
if [ -x /usr/bin/getconf ]; then |
|
121 |
CPUS=`getconf _NPROCESSORS_ONLN` |
|
122 |
fi |
|
123 |
%else |
|
124 |
CPUS=`/usr/sbin/psrinfo | grep on-line | wc -l | tr -d ' '` |
|
125 |
%endif |
|
126 |
if test "x$CPUS" = "x" -o $CPUS = 0; then |
|
127 |
CPUS=1 |
|
128 |
fi |
|
129 |
||
18139 | 130 |
# create dummy config.rpath required by AC_REQUIRE_AUX_FILE |
131 |
# otherwise automake complains and fails. |
|
132 |
touch config.rpath |
|
133 |
||
16416 | 134 |
libtoolize --force --copy |
16454 | 135 |
aclocal $ACLOCAL_FLAGS -I/usr/share/aclocal -I . -I m4 |
9397 | 136 |
autoheader |
137 |
automake -a -c -f |
|
138 |
autoconf |
|
139 |
CFLAGS="$RPM_OPT_FLAGS" \ |
|
140 |
./configure --prefix=%{_prefix} \ |
|
141 |
--datadir=%{_datadir} \ |
|
142 |
--sysconfdir=%{_sysconfdir} \ |
|
143 |
--enable-poppler-glib \ |
|
9926 | 144 |
--disable-poppler-qt \ |
145 |
--disable-poppler-qt4 \ |
|
9397 | 146 |
--mandir=%{_mandir} \ |
147 |
--enable-zlib \ |
|
16780 | 148 |
--enable-xpdf-headers \ |
9397 | 149 |
%{gtk_doc_option} |
16454 | 150 |
|
151 |
#Workaround a bug in libtool where it's using -Qoption to pass arguments |
|
152 |
#to ld, which causes the build to fail. See bugster#6877423. |
|
153 |
%if %cc_is_gcc |
|
154 |
%else |
|
155 |
perl -p -i.orig -e 's/^whole_archive.*// if (m/^whole_archive_flag_spec=.*\\\${wl}-z.*$/);' libtool |
|
156 |
%endif |
|
157 |
||
9397 | 158 |
make -j $CPUS |
159 |
||
160 |
%install |
|
16416 | 161 |
make DESTDIR=$RPM_BUILD_ROOT GTKDOC_REBASE=/usr/bin/gtkdoc-rebase install |
9397 | 162 |
rm $RPM_BUILD_ROOT%{_libdir}/*.a |
163 |
rm $RPM_BUILD_ROOT%{_libdir}/*.la |
|
10410 | 164 |
rm $RPM_BUILD_ROOT%{_bindir}/pdftoabw |
9397 | 165 |
|
166 |
%clean |
|
167 |
rm -rf $RPM_BUILD_ROOT |
|
168 |
||
169 |
%post |
|
170 |
/sbin/ldconfig |
|
171 |
||
172 |
%postun |
|
173 |
/sbin/ldconfig |
|
174 |
||
175 |
%files |
|
176 |
%defattr(-, root, root) |
|
177 |
%{_bindir} |
|
178 |
%{_libdir}/*.so.* |
|
179 |
%{_mandir}/man1/* |
|
180 |
||
181 |
%files devel |
|
182 |
%defattr(-, root, root) |
|
183 |
%{_includedir}/poppler/ |
|
184 |
%{_libdir}/*.so |
|
185 |
%{_libdir}/pkgconfig/ |
|
186 |
%{_datadir}/gtk-doc |
|
187 |
||
188 |
%changelog |
|
20031 | 189 |
* Mon Aug 30 2010 - [email protected] |
190 |
- Updated licenses. |
|
18242 | 191 |
* Thu Jul 15 2010 - [email protected] |
192 |
- Bump to 0.14.1. Remove upstream patch gdm-05-compile.diff. |
|
193 |
* Thu Jun 17 2010 - [email protected] |
|
18139 | 194 |
- Bump to 0.14.0. Remove upstream patch poppler-05-handle-passwd.diff. |
195 |
Add patch poppler-05-compile.diff to fix some compile issues. |
|
17990 | 196 |
* Thu May 13 2010 - [email protected] |
197 |
- Bump to 0.12.4. |
|
16780 | 198 |
* Thu Oct 15 2009 - [email protected] |
17990 | 199 |
- Add "--enable-xpdf-headers" to ship xpdf headers required by |
200 |
gnome-commander(1.2.8.2). |
|
16552 | 201 |
* Mon Sep 14 2009 - [email protected] |
202 |
- Bump to 0.12.0, stable version. |
|
16454 | 203 |
* Wed Sep 02 2009 - [email protected] |
204 |
- Replace libtool patch with a perl script to replace use of \${wl} with |
|
205 |
nothing since this is what later versions of libtool have done. |
|
16416 | 206 |
* Sun Aug 30 2009 - [email protected] |
207 |
- Bump to 0.11.3, add two patches, one for compiler issues, including a memory |
|
208 |
allocation error if inline functions are used, and another to fix a mis-use |
|
209 |
of the -Qoption flages in libtool causing mis-linking. |
|
16111 | 210 |
* Fri Jul 24 2009 - [email protected] |
211 |
- Bump to 0.10.7. |
|
15662
496807cfc07d
Removed the line "libtoolize ..." to fix build issue
davelam
parents:
15654
diff
changeset
|
212 |
* Wed Apr 22 2009 - [email protected] |
496807cfc07d
Removed the line "libtoolize ..." to fix build issue
davelam
parents:
15654
diff
changeset
|
213 |
- Removed the line "libtoolize ..." to fix build issue. |
15654 | 214 |
* Mon Apr 20 2009 - [email protected] |
215 |
- Bump to 0.10.6 to get security fixes and resolve bug#6827182 |
|
216 |
- Remove upstream patch for munmap compile issue. |
|
217 |
- Add new patch to address SS12 compiler bug#6685564 |
|
15578 | 218 |
* Wed Apr 07 2009 - [email protected] |
219 |
- Add patch poppler-02-munmap-build-issue.diff to fix build issue. |
|
15570 | 220 |
* Tue Apr 06 2009 - [email protected] |
221 |
- Bump to 0.10.5. |
|
13078 | 222 |
* Thu Aug 07 2008 - [email protected] |
223 |
- Bump to 0.8.5. |
|
12815 | 224 |
* Mon Jul 14 2008 - [email protected] |
13078 | 225 |
- Bump to 0.8.4, |
12610 | 226 |
* Fri Jun 06 2008 - [email protected] |
13078 | 227 |
- Bump to 0.8.3. Remove upstream patch poppler-02-cairo-ft-bug.diff. |
12072 | 228 |
* Wed Apr 04 2008 - darren.kenny |
17990 | 229 |
- Bump to 0.8.0. |
12073 | 230 |
* Wed Apr 04 2008 - darren.kenny |
12072 | 231 |
- Apply patch from bug at : http://bugs.freedesktop.org/show_bug.cgi?15216 |
232 |
to fix a crash when handling some FT fonts in PDF documents. |
|
233 |
* Wed Jan 30 2008 - [email protected] |
|
11558 | 234 |
- Bump to 0.6.4. |
11343 | 235 |
* Wed Dec 19 2007 - [email protected] |
236 |
- Bump to 0.6.3. |
|
11280 | 237 |
* Tue Dec 04 2007 - [email protected] |
238 |
- Bump to 0.6.2. |
|
10674 | 239 |
* Fri Oct 19 2007 - [email protected] |
240 |
- Bump to 0.6.1. Remove upstream patch, 02-fixcast. |
|
10437 | 241 |
* Mon Sep 03 2007 - [email protected] |
242 |
- Bump to 0.6.0 |
|
10388 | 243 |
* Tue Aug 28 2007 - [email protected] |
244 |
- Bump to 0.5.91. Remove upstream patch, 02-c++issues. |
|
10160 | 245 |
* Wed Jul 04 2007 - [email protected] |
246 |
- Remove poppler-02-glib-2.diff since it appears to be already in 0.5.9. |
|
247 |
- Add new poppler-02-c++issues.diff patch to fix some C++ Compilation issues |
|
248 |
in 0.5.9. |
|
9926 | 249 |
* Fri May 18 2007 - [email protected] |
17990 | 250 |
- explicitely disable qt/qt4 support. |
9397 | 251 |
* Fri Nov 3 2006 - [email protected] |
252 |
- use %gtk_doc_option in configure so that it can be disabled using |
|
17990 | 253 |
--without-gtk-doc. |
9397 | 254 |
* Sun Jun 11 2006 - [email protected] |
17990 | 255 |
- Bump to 0.5.3 to fix the build of evince. |
9397 | 256 |
- Add patch, 03-glib-2, so that configure looks for glib-2.0, not the old glib. |
257 |
Freedesktop bugzilla #8600. |
|
258 |
* Tue Mar 14 2006 - [email protected] |
|
259 |
- Bump to 0.5.1 as required by evince 0.5.2. |
|
260 |
* Sun Jan 22 2006 - [email protected] |
|
261 |
- Bump to 0.5.0, as required by evince 0.5.0. |
|
262 |
- Point to 'm4' dir in aclocal call. |
|
263 |
- Remove upstream patch, 01-freetype. Renumber others. |
|
264 |
* Tue Jan 17 2006 - [email protected] |
|
265 |
- Bump to 0.4.4. |
|
266 |
* Tue Jan 03 2006 - [email protected] |
|
267 |
- Remove upstream patch, 02-macrofix. |
|
268 |
* Tue Dec 20 2005 - [email protected] |
|
17990 | 269 |
- Bump to 0.4.3. |
9397 | 270 |
* Tue Nov 29 2005 - [email protected] |
271 |
- add uninstalled.pc.diff patch so that poppler can be in the same Solaris |
|
17990 | 272 |
pkg as evince. |
9397 | 273 |
* Thu Oct 13 2005 - [email protected] |
274 |
- Enable poppler-glib as it is required by evince. |
|
275 |
* Fri Sep 30 2005 - [email protected] |
|
17990 | 276 |
- Bump to 0.4.2. |
9397 | 277 |
* Tue Sep 20 2005 - [email protected] |
17990 | 278 |
- add FREETYPE_CFLAGS to CFLAGS where needed. |
9397 | 279 |
* Tue Aug 16 2005 - [email protected] |
280 |
- Bump to 0.4.0. |
|
281 |
* Tue Aug 16 2005 - [email protected] |
|
17990 | 282 |
- Initial spec file for poppler. |