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