9397
|
1 |
#
|
|
2 |
# spec file for package SUNWgnome-pdf-viewer
|
|
3 |
#
|
10437
|
4 |
# includes module(s): poppler, poppler-data, evince
|
9397
|
5 |
#
|
10562
|
6 |
# Copyright 2007 Sun Microsystems, Inc.
|
9397
|
7 |
# This file and all modifications and additions to the pristine
|
|
8 |
# package are under the same license as the package itself.
|
|
9 |
#
|
|
10 |
# Owner: mattman
|
|
11 |
#
|
|
12 |
%include Solaris.inc
|
|
13 |
|
10496
|
14 |
%use popplerdata = poppler-data.spec
|
9397
|
15 |
%use poppler = poppler.spec
|
|
16 |
%use evince = evince.spec
|
|
17 |
|
|
18 |
Name: SUNWgnome-pdf-viewer
|
|
19 |
Summary: GNOME PDF document viewer
|
|
20 |
Version: %{default_pkg_version}
|
|
21 |
SUNW_BaseDir: %{_basedir}
|
|
22 |
BuildRoot: %{_tmppath}/%{name}-%{version}-build
|
|
23 |
|
|
24 |
%include default-depend.inc
|
|
25 |
BuildRequires: SUNWlibpopt-devel
|
|
26 |
BuildRequires: SUNWgnome-base-libs-devel
|
|
27 |
BuildRequires: SUNWgnome-libs-devel
|
|
28 |
BuildRequires: SUNWgnome-print-devel
|
|
29 |
BuildRequires: SUNWgnome-file-mgr-devel
|
|
30 |
BuildRequires: SUNWgnome-component-devel
|
|
31 |
BuildRequires: SUNWPython
|
|
32 |
BuildRequires: SUNWfontconfig
|
|
33 |
BuildRequires: SUNWTiff-devel
|
|
34 |
BuildRequires: SUNWdbus-devel
|
|
35 |
BuildRequires: SUNWgnome-config-devel
|
|
36 |
BuildRequires: SUNWgnome-vfs-devel
|
|
37 |
BuildRequires: SUNWjpg-devel
|
|
38 |
BuildRequires: SUNWlibpopt-devel
|
|
39 |
Requires: SUNWlibpopt
|
|
40 |
Requires: SUNWgnome-base-libs
|
|
41 |
Requires: SUNWgnome-libs
|
|
42 |
Requires: SUNWgnome-print
|
|
43 |
Requires: SUNWgnome-file-mgr
|
|
44 |
Requires: SUNWgnome-component
|
|
45 |
Requires: SUNWgnome-pdf-viewer-root
|
|
46 |
Requires: SUNWfontconfig
|
|
47 |
Requires: SUNWTiff
|
|
48 |
Requires: SUNWdbus
|
|
49 |
Requires: SUNWfreetype2
|
|
50 |
Requires: SUNWgnome-config
|
|
51 |
Requires: SUNWgnome-vfs
|
|
52 |
Requires: SUNWjpg
|
|
53 |
Requires: SUNWlibC
|
|
54 |
Requires: SUNWlibms
|
|
55 |
Requires: SUNWlibpopt
|
|
56 |
Requires: SUNWlxml
|
|
57 |
Requires: SUNWzlib
|
|
58 |
Requires: SUNWpostrun
|
|
59 |
|
|
60 |
%package devel
|
|
61 |
Summary: %{summary} - development files
|
|
62 |
SUNW_BaseDir: %{_basedir}
|
|
63 |
%include default-depend.inc
|
|
64 |
Requires: SUNWperl584usr
|
|
65 |
Requires: SUNWgnome-base-libs-devel
|
|
66 |
|
|
67 |
%if %build_l10n
|
|
68 |
%package l10n
|
|
69 |
Summary: %{summary} - l10n files
|
|
70 |
SUNW_BaseDir: %{_basedir}
|
|
71 |
%include default-depend.inc
|
|
72 |
Requires: %{name}
|
|
73 |
%endif
|
|
74 |
|
|
75 |
%package root
|
|
76 |
Summary: %{summary} - / filesystem
|
|
77 |
SUNW_BaseDir: /
|
|
78 |
%include default-depend.inc
|
|
79 |
Requires: SUNWpostrun-root
|
|
80 |
Requires: SUNWgnome-config
|
|
81 |
|
|
82 |
%prep
|
|
83 |
rm -rf %name-%version
|
|
84 |
mkdir %name-%version
|
10496
|
85 |
%popplerdata.prep -d %name-%version
|
9397
|
86 |
%poppler.prep -d %name-%version
|
|
87 |
%evince.prep -d %name-%version
|
|
88 |
|
|
89 |
|
|
90 |
%build
|
|
91 |
export PKG_CONFIG_PATH=%{_pkg_config_path}
|
|
92 |
export LDFLAGS="%_ldflags -L/usr/X11/lib -R /usr/X11/lib -L/usr/sfw/lib -R/usr/sfw/lib -lX11 -lm"
|
|
93 |
export CFLAGS="%optflags -I/usr/sfw/include"
|
|
94 |
%if %cc_is_gcc
|
|
95 |
%else
|
|
96 |
export CXX="${CXX} -norunpath"
|
|
97 |
%endif
|
|
98 |
export CXXFLAGS="%cxx_optflags"
|
|
99 |
export RPM_OPT_FLAGS="$CFLAGS"
|
|
100 |
|
10496
|
101 |
%popplerdata.build -d %name-%version
|
9397
|
102 |
%poppler.build -d %name-%version
|
|
103 |
|
|
104 |
export PKG_CONFIG_PATH=../poppler-%{poppler.version}:%{_pkg_config_path}
|
|
105 |
%evince.build -d %name-%version
|
|
106 |
|
|
107 |
%install
|
|
108 |
rm -rf $RPM_BUILD_ROOT
|
10496
|
109 |
%popplerdata.install -d %name-%version
|
9397
|
110 |
%poppler.install -d %name-%version
|
|
111 |
%evince.install -d %name-%version
|
|
112 |
|
|
113 |
# Remove unneeded scrollkeeper dirs
|
|
114 |
rm -rf $RPM_BUILD_ROOT%{_localstatedir}
|
|
115 |
|
|
116 |
cd $RPM_BUILD_ROOT%{_bindir}
|
|
117 |
ln -s evince gpdf
|
|
118 |
|
|
119 |
# Never install English locales because should support full functions
|
|
120 |
# on English locales as same as Solaris.
|
|
121 |
rm -r $RPM_BUILD_ROOT%{_datadir}/gnome/help/evince/en_GB
|
|
122 |
rm -r $RPM_BUILD_ROOT%{_datadir}/locale/en_GB
|
|
123 |
rm $RPM_BUILD_ROOT%{_datadir}/omf/evince/evince-en_GB.omf
|
|
124 |
|
|
125 |
%if %build_l10n
|
|
126 |
%else
|
|
127 |
# REMOVE l10n FILES
|
|
128 |
rm -r $RPM_BUILD_ROOT%{_datadir}/locale
|
|
129 |
rm -r $RPM_BUILD_ROOT%{_datadir}/gnome/help/*/[a-z]*
|
|
130 |
rm -r $RPM_BUILD_ROOT%{_datadir}/omf/*/*-[a-z]*.omf
|
|
131 |
%endif
|
|
132 |
|
|
133 |
%{?pkgbuild_postprocess: %pkgbuild_postprocess -v -c "%{version}:%{jds_version}:%{name}:$RPM_ARCH:%(date +%%Y-%%m-%%d):%{support_level}" $RPM_BUILD_ROOT}
|
|
134 |
|
|
135 |
%clean
|
|
136 |
rm -rf $RPM_BUILD_ROOT
|
|
137 |
|
|
138 |
%post
|
|
139 |
( echo 'test -x /usr/bin/update-desktop-database || exit 0';
|
|
140 |
echo '/usr/bin/update-desktop-database'
|
|
141 |
) | $BASEDIR/lib/postrun -b -u -c JDS_wait
|
|
142 |
( echo 'test -x /usr/bin/scrollkeeper-update || exit 0';
|
|
143 |
echo '/usr/bin/scrollkeeper-update'
|
|
144 |
) | $BASEDIR/lib/postrun -b -u -c JDS
|
|
145 |
|
|
146 |
%postun
|
|
147 |
test -x $BASEDIR/lib/postrun || exit 0
|
|
148 |
( echo 'test -x /usr/bin/update-desktop-database || exit 0';
|
|
149 |
echo '/usr/bin/update-desktop-database'
|
|
150 |
) | $BASEDIR/lib/postrun -b -u -c JDS
|
|
151 |
( echo 'test -x /usr/bin/scrollkeeper-update || exit 0';
|
|
152 |
echo '/usr/bin/scrollkeeper-update'
|
|
153 |
) | $BASEDIR/lib/postrun -b -u -c JDS
|
|
154 |
|
|
155 |
%post root
|
|
156 |
( echo 'test -x /usr/bin/gconftool-2 || {';
|
|
157 |
echo ' echo "ERROR: gconftool-2 not found"';
|
|
158 |
echo ' exit 0';
|
|
159 |
echo '}';
|
|
160 |
echo 'umask 0022';
|
|
161 |
echo 'GCONF_CONFIG_SOURCE=xml:merged:/etc/gconf/gconf.xml.defaults';
|
|
162 |
echo 'export GCONF_CONFIG_SOURCE';
|
|
163 |
echo '/usr/bin/gconftool-2 --makefile-install-rule %{_sysconfdir}/gconf/schemas/*.schemas'
|
|
164 |
) | $BASEDIR/var/lib/postrun/postrun -u -c JDS_wait
|
|
165 |
|
|
166 |
%preun root
|
|
167 |
test -x $BASEDIR/var/lib/postrun/postrun || exit 0
|
|
168 |
( echo 'test -x $PKG_INSTALL_ROOT/usr/bin/gconftool-2 || {';
|
|
169 |
echo ' echo "WARNING: gconftool-2 not found; not uninstalling gconf schemas"';
|
|
170 |
echo ' exit 0';
|
|
171 |
echo '}';
|
|
172 |
echo 'umask 0022';
|
|
173 |
echo 'GCONF_CONFIG_SOURCE=xml:merged:$BASEDIR/etc/gconf/gconf.xml.defaults';
|
|
174 |
echo 'GCONF_BACKEND_DIR=$PKG_INSTALL_ROOT/usr/lib/GConf/2';
|
|
175 |
echo 'LD_LIBRARY_PATH=$PKG_INSTALL_ROOT/usr/lib';
|
|
176 |
echo 'export GCONF_CONFIG_SOURCE GCONF_BACKEND_DIR LD_LIBRARY_PATH';
|
|
177 |
echo 'SDIR=$BASEDIR%{_sysconfdir}/gconf/schemas';
|
|
178 |
echo 'schemas="$SDIR/evince.schemas';
|
10160
|
179 |
echo ' $SDIR/evince-thumbnailer-ps.schemas';
|
|
180 |
echo ' $SDIR/evince-thumbnailer.schemas"';
|
9397
|
181 |
echo '$PKG_INSTALL_ROOT/usr/bin/gconftool-2 --makefile-uninstall-rule $schemas'
|
|
182 |
) | $BASEDIR/var/lib/postrun/postrun -i -c JDS -a
|
|
183 |
|
|
184 |
%files
|
|
185 |
%defattr (-, root, bin)
|
|
186 |
%dir %attr (0755, root, bin) %{_bindir}
|
|
187 |
%{_bindir}/*
|
|
188 |
%dir %attr (0755, root, bin) %{_libdir}
|
|
189 |
%{_libdir}/nautilus
|
|
190 |
%{_libdir}/lib*.so*
|
|
191 |
%dir %attr (0755, root, sys) %{_datadir}
|
|
192 |
%dir %attr (0755, root, other) %{_datadir}/applications
|
|
193 |
%{_datadir}/applications/*
|
|
194 |
%{_datadir}/evince
|
|
195 |
%dir %attr (0755, root, other) %{_datadir}/gnome
|
|
196 |
%{_datadir}/gnome/help/evince/C
|
|
197 |
%{_datadir}/omf/evince/*-C.omf
|
|
198 |
%attr (-, root, other) %{_datadir}/icons
|
10496
|
199 |
%dir %attr (0755, root, bin) %{_datadir}/poppler
|
|
200 |
%{_datadir}/poppler/*
|
9397
|
201 |
%dir %attr(0755, root, bin) %{_mandir}
|
|
202 |
%dir %attr(0755, root, bin) %{_mandir}/*
|
|
203 |
%{_mandir}/*/*
|
|
204 |
|
|
205 |
%if %build_l10n
|
|
206 |
%files l10n
|
|
207 |
%defattr (-, root, bin)
|
|
208 |
%dir %attr (0755, root, sys) %{_datadir}
|
|
209 |
%dir %attr (0755, root, other) %{_datadir}/gnome
|
|
210 |
%attr (-, root, other) %{_datadir}/locale
|
|
211 |
%{_datadir}/gnome/help/*/[a-z]*
|
|
212 |
%{_datadir}/omf/*/*-[a-z]*.omf
|
|
213 |
%endif
|
|
214 |
|
|
215 |
%files devel
|
|
216 |
%defattr (-, root, bin)
|
|
217 |
%dir %attr (0755, root, bin) %{_libdir}
|
|
218 |
%dir %attr (0755, root, other) %{_libdir}/pkgconfig
|
|
219 |
%{_libdir}/pkgconfig/*
|
|
220 |
%dir %attr (0755, root, bin) %{_includedir}
|
|
221 |
%{_includedir}/*
|
|
222 |
%dir %attr (0755, root, sys) %{_datadir}
|
|
223 |
%{_datadir}/gtk-doc/html
|
|
224 |
|
|
225 |
%files root
|
9780
|
226 |
%defattr (-, root, sys)
|
9397
|
227 |
%attr (0755, root, sys) %dir %{_sysconfdir}
|
|
228 |
%{_sysconfdir}/gconf/schemas/evince.schemas
|
10160
|
229 |
%{_sysconfdir}/gconf/schemas/evince-thumbnailer.schemas
|
9732
|
230 |
%{_sysconfdir}/gconf/schemas/evince-thumbnailer-ps.schemas
|
9397
|
231 |
|
|
232 |
%changelog
|
10569
|
233 |
* Fri Sep 28 2007 - [email protected]
|
|
234 |
- delete SUNWxwrtl dep, not needed since this pkg depends on SUNWgnome-base-libs
|
10562
|
235 |
* Thu Sep 27 2007 - [email protected]
|
|
236 |
- delete some unnecessary env variables
|
10496
|
237 |
* Mon Sep 17 2007 - [email protected]
|
|
238 |
- Remove the now obsolete xpdf fonts since this is not supported in poppler
|
|
239 |
any more since 0.6. Add the poppler-data datafiles which are replacing the
|
|
240 |
xpdf fonts.
|
10160
|
241 |
* Wed Jul 04 2007 - [email protected]
|
|
242 |
- Add evince-thumbnailer.schemas from %files and %preun root back, they were
|
|
243 |
net being generated because evince was building without PDF support.
|
10109
|
244 |
* Fri Jun 22 2007 - [email protected]
|
|
245 |
- Remove evince-thumbnailer.schemas from %files and %preun root as it is no
|
|
246 |
longer in the module.
|
9780
|
247 |
* Tue Apr 24 2007 - [email protected]
|
|
248 |
- s/0755/-/ in defattr so that files are not made all executable
|
9732
|
249 |
* Thu Apr 12 2007 - [email protected]
|
|
250 |
- Add evince-thumbnailer-ps.schemas to %files and %preun root.
|
|
251 |
* Wed Feb 14 2007 - [email protected]
|
9397
|
252 |
- Delete en_GB files in %install.
|
|
253 |
* Tue Nov 28 2006 - [email protected]
|
|
254 |
- Change attr of xpdfrc file in root package to fix 6497737.
|
|
255 |
* Mon Nov 06 2006 - [email protected]
|
|
256 |
- Add XPDF Language Support Packages that are used by poppler to correctly
|
|
257 |
view localised PDF files. Fixes Bug#2143558. (forward port from Stable)
|
|
258 |
- Also fix FIXME comments (same as stable)
|
|
259 |
* Fri Nov 3 2006 - [email protected]
|
|
260 |
- add -lm to LDFLAGS so that libpoppler links against it, fixes 6470804
|
|
261 |
* Fri Sep 08 2006 - [email protected]
|
|
262 |
- Remove "rm" of _mandir during %install, Deliver community pages, pdf*.1
|
|
263 |
* Sat Aug 12 2006 - [email protected]
|
|
264 |
- change datadir/icons permissions back to root:other since it's a stable
|
|
265 |
interface and wasn't supposed to be changed
|
|
266 |
* Fri Jul 14 2006 - [email protected]
|
|
267 |
- update %post/%postun/etc scripts to support diskless client setup,
|
|
268 |
part of 6448317
|
|
269 |
* Thu Jun 29 2006 - [email protected]
|
|
270 |
- update postrun scripts
|
|
271 |
* Sun Jun 11 2006 - [email protected]
|
|
272 |
- change group from other to bin/sys
|
|
273 |
* Fri Jun 2 2006 - [email protected]
|
|
274 |
- use post/preun scripts to install schemas into the merged gconf files
|
|
275 |
* Wed May 10 2006 - [email protected]
|
|
276 |
- merge -share pkg(s) into the base pkg(s)
|
|
277 |
* Wed Mar 15 2006 - [email protected]
|
|
278 |
- Add Build/Requires SUNWgnome-component/-devel for ORBit2.
|
|
279 |
* Tue Mar 14 2006 - [email protected]
|
|
280 |
- Remove unneeded scrollkeeper files before packaging.
|
|
281 |
* Mon Feb 20 2006 - [email protected]
|
|
282 |
- Complete update of Build/Requires after running check-deps.pl script.
|
|
283 |
* Fri Feb 17 2006 - [email protected]
|
|
284 |
- Update Build/Requires after running check-deps.pl script.
|
|
285 |
* Tue Jan 24 2006 - [email protected]
|
|
286 |
- Set perms for %{_datadir} in devel package.
|
|
287 |
* Sun Jan 22 2006 - [email protected]
|
|
288 |
- Add gtk-doc dir to devel package.
|
|
289 |
* Wed Dec 7 2005 - [email protected]
|
|
290 |
- add /usr/sfw/lib to LDFLAGS because without this running evince complains
|
|
291 |
it cannot find libfreetype.so.6
|
|
292 |
* Sat Dec 3 2005 - [email protected]
|
|
293 |
- add %post script that runs update-desktop-database
|
|
294 |
* Thu Dec 01 2005 - [email protected]
|
|
295 |
- Add include dir to CFLAGS to find ft2build.h, a dir missing from freetype2.pc
|
|
296 |
* Tue Nov 29 2005 - [email protected]
|
|
297 |
- remove javahelp stuff
|
|
298 |
* Sat Oct 02 2004 - [email protected]
|
|
299 |
- added %pkgbuild_postprocess
|
|
300 |
* Fri Oct 01 2004 - [email protected]
|
|
301 |
- Added xpdfrc
|
|
302 |
* Mon Aug 23 2004 - [email protected]
|
|
303 |
- s/SUNWpl5u/SUNWperl584usr/
|
|
304 |
* Fri Aug 20 2004 - [email protected]
|
|
305 |
- Fix 5089628: mark two %gconf.xml files as volatile in root package.
|
|
306 |
* Mon Jul 26 2004 - [email protected]
|
|
307 |
- Return mime-info %files line to match Glynn's change to gpdf.spec.
|
|
308 |
* Fri Jul 23 2004 - [email protected]
|
|
309 |
- Remove mime-info %files line to match Glynn's change to gpdf.spec.
|
|
310 |
* Wed Jul 14 2004 - [email protected]
|
|
311 |
- add xpdf language support packs. #4921809
|
|
312 |
* Sat Jun 26 2004 [email protected]
|
|
313 |
- Changed install location to /usr/...
|
|
314 |
* Tue Jun 22 2004 - [email protected]
|
|
315 |
- add xpdf language support packs. #4921809
|
|
316 |
* Wed Jun 2 2004 - [email protected]
|
|
317 |
- Added %{_datadir}/locale to install l10n messages
|
|
318 |
* Mon Apr 05 2004 - [email protected]
|
|
319 |
- Added %_libdir to %files
|
|
320 |
* Wed Mar 24 2004 - [email protected]
|
|
321 |
- Added SGML man page integration
|
|
322 |
* Wed Mar 03 2004 - <[email protected]>
|
|
323 |
- fix %files share
|
|
324 |
- fix gconf files in root subpkg
|
|
325 |
* Mon Mar 01 2004 - <[email protected]>
|
|
326 |
- fix dependencies
|
|
327 |
* Mon Feb 23 2004 - <[email protected]>
|
|
328 |
- install gconf schemas at end of install stage.
|