author | dermotm |
Mon, 24 Jul 2006 12:30:39 +0000 | |
branch | gnome-2-10 |
changeset 19949 | 94f49bf19351 |
parent 19940 | 580b73a315a2 |
permissions | -rw-r--r-- |
557 | 1 |
# |
19693 | 2 |
# spec file for package gpdf |
557 | 3 |
# |
19693 | 4 |
# Copyright (c) 2005 Sun Microsystems, Inc. |
5 |
# This file and all modifications and additions to the pristine |
|
6 |
# package are under the same license as the package itself. |
|
7 |
# |
|
557 | 8 |
Name: gpdf |
9 |
License: GPL |
|
10 |
Group: System/GUI/GNOME |
|
19332 | 11 |
Version: 2.10.0 |
12 |
Release: 1 |
|
19693 | 13 |
Distribution: Java Desktop System |
575 | 14 |
Vendor: Sun Microsystems, Inc. |
557 | 15 |
Summary: A GNOME PDF Viewer based on Xpdf |
19334 | 16 |
Source: http://ftp.gnome.org/pub/GNOME/sources/gpdf/2.10/gpdf-%{version}.tar.bz2 |
19719 | 17 |
Source1: gpdf.1.gz |
2272 | 18 |
Patch1: gpdf-01-gconf-install.diff |
19940 | 19 |
Patch2: gpdf-02-fit-full-screen.diff |
20 |
Patch3: gpdf-03-pkgconfig.diff |
|
21 |
Patch4: gpdf-04-lookupglyph.diff |
|
557 | 22 |
URL: http://www.purl.org/NET/gpdf |
23 |
BuildRoot: %{_tmppath}/%{name}-%{version}-build |
|
24 |
Docdir: %{_defaultdocdir}/doc |
|
19693 | 25 |
Prereq: GConf |
557 | 26 |
|
3628 | 27 |
%define libgnomeui_version 2.6.0 |
28 |
%define gnome_vfs_version 2.6.0 |
|
29 |
%define libgnomeprintui_version 2.6.0 |
|
30 |
%define libglade_version 2.3.6 |
|
31 |
%define xpdf_version 1.01 |
|
2303 | 32 |
|
557 | 33 |
|
34 |
Requires: libgnomeui >= %{libgnomeui_version} |
|
35 |
Requires: gnome-vfs >= %{gnome_vfs_version} |
|
36 |
Requires: libgnomeprintui >= %{libgnomeprintui_version} |
|
37 |
Requires: libglade >= %{libglade_version} |
|
3185 | 38 |
Requires: xpdf >= %{xpdf_version} |
557 | 39 |
BuildRequires: libgnomeui-devel >= %{libgnomeui_version} |
40 |
BuildRequires: gnome-vfs-devel >= %{gnome_vfs_version} |
|
41 |
BuildRequires: libgnomeprintui-devel >= %{libgnomeprintui_version} |
|
42 |
BuildRequires: libglade-devel >= %{libglade_version} |
|
43 |
||
44 |
%description |
|
45 |
Gpdf is an open source viewer for Portable Document Format (PDF) |
|
46 |
files. (These are also sometimes also called 'Acrobat' files, from |
|
47 |
the name of Adobe's PDF software.) The Gpdf project also includes a |
|
48 |
PDF text extractor, PDF-to-PostScript converter, and various other |
|
49 |
utilities. |
|
19693 | 50 |
|
557 | 51 |
Gpdf is designed to be small and efficient. It can use Type 1, |
52 |
TrueType, or standard X fonts. |
|
19693 | 53 |
#' <-- keep emacs syntax highlighting happy |
557 | 54 |
|
55 |
%prep |
|
56 |
%setup -q |
|
2272 | 57 |
%patch1 -p1 |
19334 | 58 |
%patch2 -p1 |
19733 | 59 |
%patch3 -p1 |
3734 | 60 |
%patch4 -p1 |
2272 | 61 |
|
557 | 62 |
%build |
2303 | 63 |
%ifos linux |
3263 | 64 |
if [ -x /usr/bin/getconf ]; then |
65 |
CPUS=`getconf _NPROCESSORS_ONLN` |
|
66 |
fi |
|
67 |
%else |
|
3846 | 68 |
CPUS=`/usr/sbin/psrinfo | grep on-line | wc -l | tr -d ' '` |
3263 | 69 |
%endif |
70 |
if test "x$CPUS" = "x" -o $CPUS = 0; then |
|
71 |
CPUS=1 |
|
72 |
fi |
|
2272 | 73 |
libtoolize --force |
19243 | 74 |
aclocal $ACLOCAL_FLAGS |
2272 | 75 |
automake -a -c -f |
76 |
autoconf |
|
77 |
||
605 | 78 |
CFLAGS="$RPM_OPT_FLAGS" \ |
557 | 79 |
./configure --prefix=%{_prefix} \ |
80 |
--libexecdir=%{_libexecdir} \ |
|
81 |
--sysconfdir=%{_sysconfdir} |
|
3263 | 82 |
make -j $CPUS |
557 | 83 |
|
84 |
%install |
|
85 |
make install DESTDIR=$RPM_BUILD_ROOT |
|
1522 | 86 |
install -d $RPM_BUILD_ROOT%{_mandir}/man1 |
19719 | 87 |
install --mode=0644 %SOURCE1 $RPM_BUILD_ROOT%{_mandir}/man1 |
1465 | 88 |
#Copy zh_HK from zh_TW |
89 |
#Fixes bug 4930405 |
|
1522 | 90 |
install -d $RPM_BUILD_ROOT%{_datadir}/locale/zh_HK/LC_MESSAGES |
91 |
install --mode=0644 $RPM_BUILD_ROOT%{_datadir}/locale/zh_TW/LC_MESSAGES/*.mo $RPM_BUILD_ROOT%{_datadir}/locale/zh_HK/LC_MESSAGES/ |
|
3709 | 92 |
rm -f $RPM_BUILD_ROOT%{_datadir}/mime-info/gpdf.keys |
557 | 93 |
|
94 |
%clean |
|
95 |
rm -rf $RPM_BUILD_ROOT |
|
96 |
||
1710 | 97 |
%post |
98 |
export GCONF_CONFIG_SOURCE=`gconftool-2 --get-default-source` |
|
99 |
SCHEMAS="gpdf.schemas" |
|
100 |
for S in $SCHEMAS; do |
|
101 |
gconftool-2 --makefile-install-rule %{_sysconfdir}/gconf/schemas/$S >/dev/null |
|
102 |
done |
|
103 |
||
557 | 104 |
%files |
105 |
%defattr(-,root,root) |
|
106 |
%doc AUTHORS CHANGES COPYING INSTALL NEWS README |
|
107 |
%{_bindir}/gpdf |
|
108 |
%{_libdir}/bonobo/servers/* |
|
109 |
%{_datadir}/gpdf/glade/*.glade |
|
110 |
%{_datadir}/gnome-2.0/ui/*.xml |
|
111 |
%{_datadir}/application-registry/*.applications |
|
112 |
%{_datadir}/locale/*/LC_MESSAGES/*.mo |
|
113 |
%{_libexecdir}/gnome-pdf-viewer |
|
1710 | 114 |
%{_mandir}/man1/* |
115 |
%{_datadir}/pixmaps/* |
|
3420 | 116 |
%{_datadir}/applications/* |
19848 | 117 |
%{_datadir}/omf/gpdf/*.omf |
1710 | 118 |
%{_datadir}/gnome/help/gpdf/* |
119 |
%{_sysconfdir}/gconf/schemas/gpdf.schemas |
|
557 | 120 |
|
121 |
%changelog |
|
19797 | 122 |
* Fri Sep 09 2005 - [email protected] |
123 |
- adding back in gpdf-05-lookupglyph.diff for fixes for 6268411, |
|
19940 | 124 |
6219093 |
19797 | 125 |
|
19509 | 126 |
* Fri Jul 01 2005 - [email protected] |
127 |
- pkgconfig patch |
|
128 |
||
19643 | 129 |
* Fri May 20 2005 - [email protected] |
130 |
- Updated gpdf-02-lookupglyph.diff to render truetype embedded |
|
131 |
fonts correctly. Fixes bug #6268411. |
|
132 |
||
19669 | 133 |
* Thu May 19 2005 - [email protected] |
134 |
- port to 2.10.0 |
|
135 |
||
19643 | 136 |
* Wed Apr 20 2005 - [email protected] |
5355 | 137 |
- Updated gpdf-02-lookupglyph.diff to take care that ligatures |
138 |
of type1 fonts are displayed properly. |
|
139 |
Fixes bug #6219093. |
|
140 |
||
5090
18c2f2dcf1f7
* gpf.spec: Fix path used in last commit, to fix 6219559.
dc144907
parents:
5088
diff
changeset
|
141 |
* Tue Feb 15 2005 - [email protected] |
18c2f2dcf1f7
* gpf.spec: Fix path used in last commit, to fix 6219559.
dc144907
parents:
5088
diff
changeset
|
142 |
- Correct path used in last commit (for 6219559). |
18c2f2dcf1f7
* gpf.spec: Fix path used in last commit, to fix 6219559.
dc144907
parents:
5088
diff
changeset
|
143 |
|
18c2f2dcf1f7
* gpf.spec: Fix path used in last commit, to fix 6219559.
dc144907
parents:
5088
diff
changeset
|
144 |
* Mon Feb 14 2005 - [email protected] |
5085
d6004c3d8367
* gpf.spec: #6219559: Delete omf files on Linux, as gpdf help should
dc144907
parents:
5082
diff
changeset
|
145 |
- #6219559: Delete omf files on Linux, as gpdf help should not appear because |
d6004c3d8367
* gpf.spec: #6219559: Delete omf files on Linux, as gpdf help should
dc144907
parents:
5082
diff
changeset
|
146 |
it is not supported. |
d6004c3d8367
* gpf.spec: #6219559: Delete omf files on Linux, as gpdf help should
dc144907
parents:
5082
diff
changeset
|
147 |
|
4990 | 148 |
* Tue Feb 01 2005 - [email protected] |
149 |
- Update gpdf-03-multi-launch-apps.diff to open the DnD PDF file on |
|
150 |
the PDF viewer launcher on panel. Fixes bug #4925871. |
|
151 |
||
4933
418a84fc7fc6
* gpdf.spec: #6219559: Delete some doc files on Linux, those that are only
dc144907
parents:
4908
diff
changeset
|
152 |
* Wed Jan 26 2005 - [email protected] |
418a84fc7fc6
* gpdf.spec: #6219559: Delete some doc files on Linux, those that are only
dc144907
parents:
4908
diff
changeset
|
153 |
- #6219559: Delete some doc files on Linux, those that are only used on Solaris. |
418a84fc7fc6
* gpdf.spec: #6219559: Delete some doc files on Linux, those that are only
dc144907
parents:
4908
diff
changeset
|
154 |
|
4897 | 155 |
* Fri Jan 21 2005 - [email protected] |
156 |
- #6219559 : Only deliver gpdf help on Solaris, do not deliver on Linux |
|
157 |
||
4885 | 158 |
* Thu Jan 20 2005 - [email protected] |
159 |
- Added patch gpdf-07-fit-full-screen.diff to patch bug #6194586 |
|
160 |
||
4844 | 161 |
* Fri Jan 14 2005 - [email protected] |
162 |
- Updated l10n help tarball for cinnabar-linux |
|
163 |
||
4816 | 164 |
* Tue Jan 11 2005 [email protected] |
165 |
- URL updated |
|
166 |
||
4149 | 167 |
* Tue Oct 05 2004 [email protected] |
168 |
- Added gpdf-06-g11n-i18n-ui.diff to localize bookmark. |
|
169 |
Fixed 6173631. |
|
170 |
||
3934 | 171 |
* Wed Sep 15 2004 [email protected] |
3937 | 172 |
Integrating gpdf-06-remove-acroread.diff into gpdf-03-multi-launch-apps.diff |
173 |
So removing gpdf-06-remove-acroread.diff |
|
174 |
||
175 |
* Wed Sep 15 2004 [email protected] |
|
3934 | 176 |
- No need of hardcoding the path for acroread. |
177 |
||
3883 | 178 |
* Wed Sep 08 2004 [email protected] |
179 |
- Fixes overwriting of files for `Save As` option. |
|
180 |
Fixes bug #5083054. |
|
181 |
||
3799 | 182 |
* Tue Aug 31 2004 [email protected] |
183 |
- Changed patch3 - gpdf-03-multi-launch-apps.diff for pdflaunch.c |
|
184 |
Fixes bug# 5087934 |
|
185 |
||
3734 | 186 |
* Wed Aug 25 2004 [email protected] |
187 |
- Added l10n help contents with patch |
|
188 |
||
3709 | 189 |
* Tue Aug 24 2004 [email protected] |
190 |
- remove mime info file |
|
3487 | 191 |
* Thu Aug 05 2004 [email protected] |
192 |
- Incorporate new docs tarball from [email protected]. |
|
193 |
||
3482 | 194 |
* Thu Aug 05 2004 - [email protected] |
195 |
- Update patches/gpdf-03-multi-launch-apps.diff to add 'pdflaunch' |
|
196 |
to .applications file. Fixes bug #5081909. |
|
197 |
||
3424 | 198 |
* Mon Jul 26 2004 - [email protected] |
199 |
- Bump version to 0.132. Fixes #5072626 |
|
200 |
||
3420 | 201 |
* Mon Jul 26 2004 - [email protected] |
202 |
- Install a crackrock script so that we have an acccessible |
|
203 |
pdf viewer [gpdf] or non-accessible pdf viewer [acroread] which |
|
204 |
is run depending on a few gconf keys and architecture. Sigh. |
|
205 |
||
3383 | 206 |
* Thu Jul 22 2004 - [email protected] |
3384 | 207 |
- Remove the menu entry so that it doesn't show up. |
208 |
||
209 |
* Thu Jul 22 2004 - [email protected] |
|
3383 | 210 |
- Remove the mime key so that acroread is default pdf |
211 |
viewer. |
|
212 |
||
3279
5d64ee516a02
Bumped l10n tarball revision from 1.1 to 1.2 in all spec-files.
damiend
parents:
3263
diff
changeset
|
213 |
* Thu Jul 08 2004 - [email protected] |
5d64ee516a02
Bumped l10n tarball revision from 1.1 to 1.2 in all spec-files.
damiend
parents:
3263
diff
changeset
|
214 |
- Updated l10n content to gpdf-l10n-po-1.2.tar.bz2 |
5d64ee516a02
Bumped l10n tarball revision from 1.1 to 1.2 in all spec-files.
damiend
parents:
3263
diff
changeset
|
215 |
|
3628 | 216 |
* Wed Jul 07 2004 - [email protected] |
217 |
- Ported to rpm4 |
|
218 |
||
3263 | 219 |
* Wed Jul 07 2004 - [email protected] |
220 |
- added "-j $CPUS" to make to speed up builds |
|
221 |
||
3185 | 222 |
* Tue Jun 22 2004 [email protected] |
223 |
- Added dependency on xpdf so language packs are available to gpdf |
|
224 |
||
3146
599f89f3b72a
- Added glyph lookup for embedded font patch gpdf-02-lookupglyph.diff
mk84910
parents:
3120
diff
changeset
|
225 |
* Tue Jun 15 2004 [email protected] |
599f89f3b72a
- Added glyph lookup for embedded font patch gpdf-02-lookupglyph.diff
mk84910
parents:
3120
diff
changeset
|
226 |
- Added glyph lookup for embedded font patch gpdf-02-lookupglyph.diff |
599f89f3b72a
- Added glyph lookup for embedded font patch gpdf-02-lookupglyph.diff
mk84910
parents:
3120
diff
changeset
|
227 |
|
3051
b2a31638c06a
Incorporate new docs tarball from [email protected].
dc144907
parents:
2958
diff
changeset
|
228 |
* Wed Jun 02 2004 [email protected] |
b2a31638c06a
Incorporate new docs tarball from [email protected].
dc144907
parents:
2958
diff
changeset
|
229 |
- Incorporate new docs tarball from [email protected]. |
b2a31638c06a
Incorporate new docs tarball from [email protected].
dc144907
parents:
2958
diff
changeset
|
230 |
|
2736
bd6e69980863
Updated all spec files to reflect 1.1 version l10n tarballs delivered into
damiend
parents:
2619
diff
changeset
|
231 |
* Wed May 12 2004 - [email protected] |
bd6e69980863
Updated all spec files to reflect 1.1 version l10n tarballs delivered into
damiend
parents:
2619
diff
changeset
|
232 |
- Updated l10n content to gpdf-l10n-po-1.1.tar.bz2 |
bd6e69980863
Updated all spec files to reflect 1.1 version l10n tarballs delivered into
damiend
parents:
2619
diff
changeset
|
233 |
|
2545 | 234 |
* Thu Apr 22 2004 - [email protected] |
235 |
- bump to 0.131 |
|
236 |
||
2485 | 237 |
* Sun Apr 18 2004 - [email protected] |
238 |
- enable javahelp conversion on Solaris |
|
239 |
||
2362
ef2590f64b05
Javahelp conversion : surrounded by %ifos calls, until solaris specifics are resolved
mattk
parents:
2350
diff
changeset
|
240 |
* Thu Apr 01 2004 - [email protected] |
ef2590f64b05
Javahelp conversion : surrounded by %ifos calls, until solaris specifics are resolved
mattk
parents:
2350
diff
changeset
|
241 |
- Javahelp conversion |
ef2590f64b05
Javahelp conversion : surrounded by %ifos calls, until solaris specifics are resolved
mattk
parents:
2350
diff
changeset
|
242 |
|
2350 | 243 |
* Mon Mar 29 2004 - [email protected] |
244 |
- Updated l10n content to gpdf-l10n-po-1.0.tar.bz2 |
|
245 |
||
2303 | 246 |
* Wed Mar 24 2004 - [email protected] |
247 |
- Use JDS CBE, and remove annot compile patch. |
|
248 |
||
2283
25c4e1bde30e
Hack/Fix for compile problem, needs proper looking at by maintainer
mattk
parents:
2280
diff
changeset
|
249 |
* Mon Mar 22 2004 - [email protected] |
25c4e1bde30e
Hack/Fix for compile problem, needs proper looking at by maintainer
mattk
parents:
2280
diff
changeset
|
250 |
- fix compile prob by adding patch : 02-annot-compile-prob |
25c4e1bde30e
Hack/Fix for compile problem, needs proper looking at by maintainer
mattk
parents:
2280
diff
changeset
|
251 |
|
2272 | 252 |
* Mon Mar 22 2004 - [email protected] |
253 |
- Bump to 0.125 and remove all the patches - |
|
254 |
install-data-local, thumnail-cc, weight-undefined |
|
255 |
and potfiles. |
|
256 |
||
2191 | 257 |
* Thu Mar 11 2004 - [email protected] |
258 |
- added gpdf-04-g11n-potfiles.diff |
|
259 |
||
2110 | 260 |
* Tue Mar 02 2004 - <[email protected]> |
261 |
- Patch 03 to fix compile error |
|
262 |
||
1710 | 263 |
* Mon Feb 16 2004 - <[email protected]> |
264 |
- Bump to 0.122, remove patch 01-deprecated, |
|
265 |
add patch 01-install-data-local |
|
266 |
||
1514 | 267 |
* Thu Jan 09 2004 - <[email protected]> |
268 |
- Add patch #1 to fix build breakage |
|
269 |
||
1465 | 270 |
* Wed Dec 17 2003 - <[email protected]> |
271 |
- Bump to 0.120 tarball |
|
272 |
||
1424 | 273 |
* Fri Nov 21 2003 - <[email protected]> |
274 |
- Fixes 4949480. By not installing gpdf.keys |
|
275 |
||
1269 | 276 |
* Wed Oct 15 2003 - <[email protected]> |
277 |
- update to version 0.111, reset release. |
|
278 |
||
1205 | 279 |
* Tue Oct 07 2003 - <[email protected]> |
280 |
- Remove menu entry patch and dont install .desktop file |
|
281 |
||
963 | 282 |
* Tue Aug 05 2003 - <[email protected]> |
283 |
- Update tarball, bump version, reset release. |
|
284 |
||
626 | 285 |
* Thu Jul 17 2003 - <[email protected]> |
286 |
- Add a menu icon |
|
287 |
||
557 | 288 |
* Mon Jul 14 2003 - <[email protected]> |
289 |
- Initial spec file. |