9397
|
1 |
#
|
|
2 |
# spec file for package SUNWgnome-img-viewer
|
|
3 |
#
|
|
4 |
# includes module(s): eog
|
|
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 |
#
|
|
10 |
# Owner: rickju
|
|
11 |
#
|
|
12 |
%include Solaris.inc
|
|
13 |
|
|
14 |
%define eog_bindir /usr/bin
|
|
15 |
%define eog_libdir /usr/lib
|
|
16 |
%define eog_libexecdir /usr/lib
|
|
17 |
|
|
18 |
%use eog = eog.spec
|
|
19 |
|
|
20 |
%define _bindir %{eog_bindir}
|
|
21 |
%define _libexecdir %{eog_libexecdir}
|
|
22 |
%define _libdir %{eog_libdir}
|
|
23 |
|
|
24 |
Name: SUNWgnome-img-viewer
|
|
25 |
Summary: GNOME image viewer
|
|
26 |
Version: %{default_pkg_version}
|
|
27 |
Source: %{name}-manpages-0.1.tar.gz
|
|
28 |
SUNW_BaseDir: %{_basedir}
|
11938
|
29 |
SUNW_Copyright: %{name}.copyright
|
9397
|
30 |
BuildRoot: %{_tmppath}/%{name}-%{version}-build
|
|
31 |
|
|
32 |
%include default-depend.inc
|
|
33 |
Requires: SUNWgnome-libs
|
|
34 |
Requires: SUNWgnome-print
|
|
35 |
Requires: SUNWgnome-img-viewer-root
|
|
36 |
Requires: SUNWgnome-file-mgr
|
|
37 |
Requires: SUNWgnome-camera
|
|
38 |
Requires: SUNWgnome-base-libs
|
|
39 |
Requires: SUNWgnome-component
|
|
40 |
Requires: SUNWgnome-config
|
|
41 |
Requires: SUNWgnome-panel
|
|
42 |
Requires: SUNWgnome-vfs
|
|
43 |
Requires: SUNWjpg
|
|
44 |
Requires: SUNWlibexif
|
|
45 |
Requires: SUNWlibms
|
|
46 |
Requires: SUNWlibpopt
|
|
47 |
Requires: SUNWpostrun
|
12333
|
48 |
Requires: SUNWlcms
|
9397
|
49 |
BuildRequires: SUNWgnome-component-devel
|
|
50 |
BuildRequires: SUNWgnome-config-devel
|
|
51 |
BuildRequires: SUNWgnome-panel-devel
|
|
52 |
BuildRequires: SUNWgnome-vfs-devel
|
|
53 |
BuildRequires: SUNWjpg-devel
|
|
54 |
BuildRequires: SUNWlibexif-devel
|
|
55 |
BuildRequires: SUNWlibpopt-devel
|
|
56 |
BuildRequires: SUNWgnome-file-mgr-devel
|
|
57 |
BuildRequires: SUNWgnome-camera-devel
|
|
58 |
BuildRequires: SUNWgnome-libs-devel
|
|
59 |
BuildRequires: SUNWgnome-print-devel
|
|
60 |
BuildRequires: SUNWgnome-base-libs-devel
|
12333
|
61 |
BuildRequires: SUNWlcms
|
9397
|
62 |
|
|
63 |
%if %build_l10n
|
|
64 |
%package l10n
|
|
65 |
Summary: %{summary} - l10n files
|
|
66 |
SUNW_BaseDir: %{_basedir}
|
|
67 |
%include default-depend.inc
|
|
68 |
Requires: %{name}
|
|
69 |
%endif
|
|
70 |
|
|
71 |
%package root
|
|
72 |
Summary: %{summary} - / filesystem
|
|
73 |
SUNW_BaseDir: /
|
|
74 |
%include default-depend.inc
|
|
75 |
Requires: SUNWpostrun-root
|
|
76 |
Requires: SUNWgnome-config
|
|
77 |
|
9915
|
78 |
%package devel
|
|
79 |
Summary: %{summary} - development files
|
|
80 |
SUNW_BaseDir: %{_basedir}
|
|
81 |
%include default-depend.inc
|
|
82 |
Requires: SUNWgnome-libs
|
|
83 |
Requires: SUNWgnome-print
|
|
84 |
Requires: SUNWgnome-img-viewer-root
|
|
85 |
Requires: SUNWgnome-file-mgr
|
|
86 |
Requires: SUNWgnome-camera
|
|
87 |
Requires: SUNWgnome-base-libs
|
|
88 |
Requires: SUNWgnome-component
|
|
89 |
Requires: SUNWgnome-config
|
|
90 |
Requires: SUNWgnome-panel
|
|
91 |
Requires: SUNWgnome-vfs
|
|
92 |
Requires: SUNWjpg
|
|
93 |
Requires: SUNWlibexif
|
|
94 |
Requires: SUNWlibms
|
|
95 |
Requires: SUNWlibpopt
|
|
96 |
|
9397
|
97 |
%prep
|
|
98 |
rm -rf %name-%version
|
|
99 |
mkdir %name-%version
|
|
100 |
%eog.prep -d %name-%version
|
|
101 |
cd %{_builddir}/%name-%version
|
|
102 |
gzcat %SOURCE0 | tar xf -
|
|
103 |
|
|
104 |
%build
|
|
105 |
export PKG_CONFIG_PATH="%{_pkg_config_path}:/usr/sfw/lib/pkgconfig"
|
|
106 |
export CFLAGS="%optflags -I%{_includedir}"
|
|
107 |
export RPM_OPT_FLAGS="$CFLAGS"
|
|
108 |
export CPPFLAGS="-I/usr/sfw/include"
|
|
109 |
export LDFLAGS="%_ldflags -lm -L/usr/sfw/lib -R/usr/sfw/lib"
|
|
110 |
|
|
111 |
%eog.build -d %name-%version
|
|
112 |
|
|
113 |
%install
|
|
114 |
rm -rf $RPM_BUILD_ROOT
|
|
115 |
%eog.install -d %name-%version
|
|
116 |
|
|
117 |
rm -rf $RPM_BUILD_ROOT%{_mandir}
|
|
118 |
cd %{_builddir}/%name-%version/sun-manpages
|
|
119 |
make install DESTDIR=$RPM_BUILD_ROOT
|
|
120 |
|
|
121 |
chmod 0755 $RPM_BUILD_ROOT%{_mandir}/man1/eog.1
|
|
122 |
|
|
123 |
install -d $RPM_BUILD_ROOT%{eog_libdir}/bonobo/servers
|
|
124 |
|
|
125 |
# Never install English locales because should support full functions
|
|
126 |
# on English locales as same as Solaris.
|
|
127 |
rm -r $RPM_BUILD_ROOT%{_datadir}/gnome/help/eog/en_GB
|
|
128 |
rm -r $RPM_BUILD_ROOT%{_datadir}/locale/en_GB
|
|
129 |
rm $RPM_BUILD_ROOT%{_datadir}/omf/eog/eog-en_GB.omf
|
|
130 |
|
|
131 |
%if %build_l10n
|
|
132 |
%else
|
|
133 |
# REMOVE l10n FILES
|
|
134 |
rm -r $RPM_BUILD_ROOT%{_datadir}/locale
|
|
135 |
rm -r $RPM_BUILD_ROOT%{_datadir}/gnome/help/eog/[a-z]*
|
|
136 |
rm $RPM_BUILD_ROOT%{_datadir}/omf/eog/eog-[a-z][a-z].omf
|
|
137 |
rm $RPM_BUILD_ROOT%{_datadir}/omf/eog/eog-[a-z][a-z]_[A-Z][A-Z].omf
|
|
138 |
%endif
|
|
139 |
# Remove scrollkeeper files.
|
10350
|
140 |
#rm -r $RPM_BUILD_ROOT/var
|
|
141 |
#rm -r $RPM_BUILD_ROOT%{_prefix}/var
|
9397
|
142 |
|
|
143 |
%{?pkgbuild_postprocess: %pkgbuild_postprocess -v -c "%{version}:%{jds_version}:%{name}(eog):$RPM_ARCH:%(date +%%Y-%%m-%%d):%{support_level}" $RPM_BUILD_ROOT}
|
|
144 |
|
|
145 |
%clean
|
|
146 |
rm -rf $RPM_BUILD_ROOT
|
|
147 |
|
|
148 |
%post
|
|
149 |
( echo 'test -x /usr/bin/update-desktop-database || exit 0';
|
|
150 |
echo '/usr/bin/update-desktop-database'
|
|
151 |
) | $BASEDIR/lib/postrun -b -u -c JDS_wait
|
|
152 |
( echo 'test -x /usr/bin/scrollkeeper-update || exit 0';
|
|
153 |
echo '/usr/bin/scrollkeeper-update'
|
|
154 |
) | $BASEDIR/lib/postrun -b -u -c JDS
|
|
155 |
|
|
156 |
%postun
|
|
157 |
test -x $BASEDIR/lib/postrun || exit 0
|
|
158 |
( echo 'test -x /usr/bin/update-desktop-database || exit 0';
|
|
159 |
echo '/usr/bin/update-desktop-database'
|
|
160 |
) | $BASEDIR/lib/postrun -b -u -c JDS
|
|
161 |
( echo 'test -x /usr/bin/scrollkeeper-update || exit 0';
|
|
162 |
echo '/usr/bin/scrollkeeper-update'
|
|
163 |
) | $BASEDIR/lib/postrun -b -u -c JDS
|
|
164 |
|
|
165 |
%post root
|
11370
|
166 |
%include gconf-install.script
|
9397
|
167 |
|
|
168 |
%preun root
|
|
169 |
test -x $BASEDIR/var/lib/postrun/postrun || exit 0
|
|
170 |
( echo 'test -x $PKG_INSTALL_ROOT/usr/bin/gconftool-2 || {';
|
|
171 |
echo ' echo "WARNING: gconftool-2 not found; not uninstalling gconf schemas"';
|
|
172 |
echo ' exit 0';
|
|
173 |
echo '}';
|
|
174 |
echo 'umask 0022';
|
|
175 |
echo 'GCONF_CONFIG_SOURCE=xml:merged:$BASEDIR/etc/gconf/gconf.xml.defaults';
|
|
176 |
echo 'GCONF_BACKEND_DIR=$PKG_INSTALL_ROOT/usr/lib/GConf/2';
|
|
177 |
echo 'LD_LIBRARY_PATH=$PKG_INSTALL_ROOT/usr/lib';
|
|
178 |
echo 'export GCONF_CONFIG_SOURCE GCONF_BACKEND_DIR LD_LIBRARY_PATH';
|
|
179 |
echo 'SDIR=$BASEDIR%{_sysconfdir}/gconf/schemas';
|
|
180 |
echo 'schemas="$SDIR/eog.schemas"';
|
|
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 |
%{eog_bindir}/*
|
|
188 |
%dir %attr (0755, root, bin) %{_libdir}
|
|
189 |
%{eog_libdir}/bonobo/servers
|
|
190 |
# %{eog_libdir}/eog-collection-view
|
|
191 |
# %{eog_libdir}/eog-image-viewer
|
|
192 |
%dir %attr (0755, root, sys) %{_datadir}
|
|
193 |
%dir %attr (0755, root, other) %{_datadir}/applications
|
|
194 |
%{_datadir}/applications/*
|
|
195 |
%{_datadir}/eog
|
|
196 |
%dir %attr (0755, root, other) %{_datadir}/gnome
|
|
197 |
%{_datadir}/gnome/help/*/C
|
|
198 |
# %{_datadir}/idl
|
|
199 |
%{_datadir}/omf/*/*-C.omf
|
|
200 |
%dir %attr (-, root, other) %{_datadir}/icons
|
|
201 |
%dir %attr (-, root, other) %{_datadir}/icons/hicolor
|
|
202 |
%dir %attr (-, root, other) %{_datadir}/icons/hicolor/16x16
|
|
203 |
%dir %attr (-, root, other) %{_datadir}/icons/hicolor/16x16/apps
|
|
204 |
%{_datadir}/icons/hicolor/16x16/apps/eog.png
|
|
205 |
%dir %attr (-, root, other) %{_datadir}/icons/hicolor/22x22
|
|
206 |
%dir %attr (-, root, other) %{_datadir}/icons/hicolor/22x22/apps
|
|
207 |
%{_datadir}/icons/hicolor/22x22/apps/eog.png
|
|
208 |
%dir %attr (-, root, other) %{_datadir}/icons/hicolor/24x24
|
|
209 |
%dir %attr (-, root, other) %{_datadir}/icons/hicolor/24x24/apps
|
|
210 |
%{_datadir}/icons/hicolor/24x24/apps/eog.png
|
|
211 |
%dir %attr (-, root, other) %{_datadir}/icons/hicolor/32x32
|
|
212 |
%dir %attr (-, root, other) %{_datadir}/icons/hicolor/32x32/apps
|
|
213 |
%{_datadir}/icons/hicolor/32x32/apps/eog.png
|
|
214 |
%dir %attr (-, root, other) %{_datadir}/icons/hicolor/scalable
|
|
215 |
%dir %attr (-, root, other) %{_datadir}/icons/hicolor/scalable/apps
|
|
216 |
%{_datadir}/icons/hicolor/scalable/apps/eog.svg
|
|
217 |
%dir %attr(0755, root, bin) %{_mandir}
|
|
218 |
%dir %attr(0755, root, bin) %{_mandir}/*
|
|
219 |
%{_mandir}/*/*
|
|
220 |
|
|
221 |
%if %build_l10n
|
|
222 |
%files l10n
|
|
223 |
%defattr (-, root, bin)
|
|
224 |
%dir %attr (0755, root, sys) %{_datadir}
|
|
225 |
%attr (-, root, other) %{_datadir}/locale
|
|
226 |
%dir %attr (0755, root, other) %{_datadir}/gnome
|
|
227 |
%{_datadir}/gnome/help/eog/[a-z]*
|
|
228 |
%{_datadir}/omf/eog/eog-[a-z][a-z].omf
|
|
229 |
%{_datadir}/omf/eog/eog-[a-z][a-z]_[A-Z][A-Z].omf
|
|
230 |
%endif
|
|
231 |
|
|
232 |
%files root
|
9780
|
233 |
%defattr (-, root, sys)
|
9397
|
234 |
%attr (0755, root, sys) %dir %{_sysconfdir}
|
|
235 |
%{_sysconfdir}/gconf/schemas/eog.schemas
|
|
236 |
|
9915
|
237 |
%files devel
|
|
238 |
%defattr (-, root, bin)
|
|
239 |
%dir %attr (0755, root, bin) %dir %{_libdir}
|
|
240 |
%dir %attr (0755, root, other) %{_libdir}/pkgconfig
|
|
241 |
%{_libdir}/pkgconfig/*
|
|
242 |
%dir %attr (0755, root, bin) %dir %{_includedir}
|
|
243 |
%{_includedir}/*
|
|
244 |
|
9397
|
245 |
%changelog
|
12333
|
246 |
* Wed May 21 2008 - [email protected]
|
|
247 |
- Add Build/Requires: SUNWlcms after check-deps.pl run.
|
11370
|
248 |
* Thu Jan 3 2008 - [email protected]
|
|
249 |
- use gconf-install.script instead of an inline script
|
10572
|
250 |
* Fri Sep 28 2007 - [email protected]
|
|
251 |
- delete Nevada X dep
|
10384
|
252 |
* Tue Aug 28 2007 - [email protected]
|
|
253 |
- Remove pixmaps from %files because they are not installed by new tarball.
|
10350
|
254 |
* Sat Aug 18 2007 - [email protected]
|
|
255 |
- Comment out removal of /var and /usr/var dirs as they are no longer installed.
|
10342
|
256 |
* Thu Aug 16 2007 - [email protected]
|
|
257 |
- Remove actions icons from %files after tarball bump.
|
10178
|
258 |
* Wed Jul 11 2007 - [email protected]
|
|
259 |
- Add eog-image-collection.png and thumbnail-frame.png to %files.
|
9915
|
260 |
* Wed May 16 2007 - [email protected]
|
|
261 |
- Add devel package; add icons to base package.
|
9874
|
262 |
* Thu May 10 2007 - [email protected]
|
|
263 |
- Remove pixmaps dir from %files as it is no longer populated.
|
9780
|
264 |
* Tue Apr 24 2007 - [email protected]
|
|
265 |
- s/0755/-/ in defattr so that files are not made all executable
|
9397
|
266 |
* Wed Feb 14 2006 - [email protected]
|
|
267 |
- Delete en_GB files in %install.
|
|
268 |
* Thu Jan 11 2006 - [email protected]
|
|
269 |
- Add new icons to %files.
|
|
270 |
* Wed Dec 13 2006 - [email protected]
|
|
271 |
- Delete some l10n omf files in %install when not building l10n packages.
|
|
272 |
* Wed Dec 06 2006 - [email protected]
|
|
273 |
- Update packaging for new tarball - remove scrollkeeper files, add omf files
|
|
274 |
to the l10n package.
|
|
275 |
* Wed Nov 29 2006 - [email protected]
|
|
276 |
- Fix packaging as some locales have been removed.
|
|
277 |
* Fri Oct 20 2006 - [email protected]
|
|
278 |
- Fix packaging for new locales.
|
|
279 |
* Mon Sep 04 2006 - [email protected]
|
|
280 |
- New Manpage tarball
|
|
281 |
* Sat Aug 12 2006 - [email protected]
|
|
282 |
- delete some unnecessary env variables
|
|
283 |
* Fri Jul 28 2006 - [email protected]
|
|
284 |
- Remove scrollkeeper files before packaging. Update l10n package as some
|
|
285 |
files are no longer installed.
|
|
286 |
* Fri Jul 14 2006 - [email protected]
|
|
287 |
- update %post/%postun/etc scripts to support diskless client setup,
|
|
288 |
part of 6448317
|
|
289 |
* Thu Jun 29 2006 - [email protected]
|
|
290 |
- update postrun scripts
|
|
291 |
* Sun Jun 11 2006 - [email protected]
|
|
292 |
- change group from other to bin/sys
|
|
293 |
* Fri Jun 2 2006 - [email protected]
|
|
294 |
- use post/preun scripts to install schemas into the merged gconf files
|
|
295 |
* Wed May 10 2006 - [email protected]
|
|
296 |
- merge -share pkg(s) into the base pkg(s)
|
|
297 |
* Tue May 09 2006 - [email protected]
|
|
298 |
- Move gthumb to spec-files-extra/SUNWgnome-img-organizer as it has been EOL'd.
|
|
299 |
* Mon May 01 2006 - [email protected]
|
|
300 |
- Add %{_datadir}/icons to share package.
|
|
301 |
* Mon Feb 20 2006 - [email protected]
|
|
302 |
- Complete update of Build/Requires after running check-deps.pl script.
|
|
303 |
* Thu Feb 16 2006 - [email protected]
|
|
304 |
- Update Build/Requires after running check-deps.pl script.
|
|
305 |
* Wed Feb 15 2006 - [email protected]
|
|
306 |
- Set PKG_CONFIG_PATH to find libgphoto; Set LDFLAGS to link with libpng.
|
|
307 |
* Sat Jan 28 2006 - [email protected]
|
|
308 |
- Add BuildRequires for '-devel' equivalents of the Requires packages.
|
|
309 |
- Added BuildRequires SUNWgnome-camera-devel for gthumb.
|
|
310 |
* Sat Dec 3 2005 - [email protected]
|
|
311 |
- add %post script that runs update-desktop-database
|
|
312 |
* Tue Nov 29 2005 - [email protected]
|
|
313 |
- remove javahelp stuff
|
|
314 |
* Mon Oct 03 2005 - [email protected]
|
|
315 |
- Remove unpackaged files.
|
|
316 |
* Sat Dec 18 2004 - [email protected]
|
|
317 |
- Move gthumb to /usr/sfw per ARC decision.
|
|
318 |
* Sun Nov 14 2004 - [email protected]
|
|
319 |
- move gthumb to /usr/demo/jds
|
|
320 |
* Sat Oct 02 2004 - [email protected]
|
|
321 |
- added %pkgbuild_postprocess
|
|
322 |
* Mon Aug 23 2004 - [email protected]
|
|
323 |
- s/SUNWpl5u/SUNWperl584usr/
|
|
324 |
* Mon Jun 26 2004 [email protected]
|
|
325 |
- change eog.1 permissions to 0755 for Solaris integration error
|
|
326 |
* Sat Jun 26 2004 [email protected]
|
|
327 |
- Changed install location to /usr/...
|
|
328 |
* Wed Jun 2 2004 - [email protected]
|
|
329 |
- Added %{_datadir}/locale to install l10n messages
|
|
330 |
* Tue May 18 2004 - [email protected]
|
|
331 |
- add sfw to LDFLAGS/CPPFLAGS (patch from Shirley)
|
|
332 |
* Tue May 11 2004 - [email protected]
|
|
333 |
- add %{_datadir}/eog to files share so glade files
|
|
334 |
get installed. This corrects core dumping problem
|
|
335 |
when bringing up preferences dialog.
|
|
336 |
* Tue May 04 2004 - [email protected]
|
|
337 |
- add SUNWgnome-camera dependency
|
|
338 |
* Fri Mar 26 2004 - [email protected]
|
|
339 |
- add SUNWgnome-file-mgr dependency (for eel)
|
|
340 |
* Wed Mar 24 2004 - [email protected]
|
|
341 |
- Added SGML man page integration
|
|
342 |
* Mon Mar 01 2004 - <[email protected]>
|
|
343 |
- fix dependencies
|
|
344 |
- define PERL5LIB
|
|
345 |
- file %files share
|
|
346 |
* Mon Feb 23 2004 - <[email protected]>
|
|
347 |
- install gconf schemas at the end of the install stage
|