9397
|
1 |
|
|
2 |
# spec file for package SUNWgnome-games
|
|
3 |
#
|
|
4 |
# includes module(s): gnome-games
|
|
5 |
#
|
|
6 |
# Copyright (c) 2004 Sun Microsystems, Inc.
|
|
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: gman
|
|
11 |
#
|
|
12 |
%include Solaris.inc
|
|
13 |
|
|
14 |
%define makeinstall make install DESTDIR=$RPM_BUILD_ROOT
|
|
15 |
%use gnome_games = gnome-games.spec
|
|
16 |
|
|
17 |
Name: SUNWgnome-games
|
|
18 |
Summary: GNOME games
|
|
19 |
Version: %{default_pkg_version}
|
|
20 |
SUNW_BaseDir: %{_basedir}
|
10897
|
21 |
SUNW_Copyright: %{name}.copyright
|
9397
|
22 |
BuildRoot: %{_tmppath}/%{name}-%{version}-build
|
|
23 |
|
|
24 |
%include default-depend.inc
|
|
25 |
BuildRequires: SUNWlibrsvg-devel
|
|
26 |
BuildRequires: SUNWPython-devel
|
|
27 |
BuildRequires: SUNWgnome-libs-devel
|
|
28 |
BuildRequires: SUNWgnome-vfs-devel
|
|
29 |
BuildRequires: SUNWgnome-config-devel
|
|
30 |
BuildRequires: SUNWgnome-base-libs-devel
|
|
31 |
BuildRequires: SUNWgnome-python-desktop-devel
|
|
32 |
Requires: SUNWgnome-libs
|
|
33 |
Requires: SUNWgnome-config
|
|
34 |
Requires: SUNWlibms
|
|
35 |
Requires: SUNWgnome-base-libs
|
|
36 |
Requires: SUNWgnome-python-desktop
|
|
37 |
Requires: SUNWlibrsvg
|
|
38 |
Requires: SUNWPython
|
|
39 |
Requires: SUNWpostrun
|
|
40 |
|
|
41 |
%if %build_l10n
|
|
42 |
%package l10n
|
|
43 |
Summary: %{summary} - l10n files
|
|
44 |
SUNW_BaseDir: %{_basedir}
|
|
45 |
%include default-depend.inc
|
|
46 |
Requires: %{name}
|
|
47 |
%endif
|
|
48 |
|
|
49 |
%package root
|
|
50 |
Summary: %{summary} - / filesystem
|
|
51 |
SUNW_BaseDir: /
|
|
52 |
%include default-depend.inc
|
|
53 |
Requires: SUNWgnome-libs
|
|
54 |
Requires: SUNWpostrun-root
|
|
55 |
Requires: SUNWgnome-config
|
|
56 |
|
|
57 |
%prep
|
|
58 |
rm -rf %name-%version
|
|
59 |
mkdir %name-%version
|
|
60 |
%gnome_games.prep -d %name-%version
|
|
61 |
|
|
62 |
%build
|
|
63 |
export PKG_CONFIG_PATH=%{_pkg_config_path}
|
|
64 |
export CFLAGS="%optflags -I%{_includedir} -I/usr/sfw/include -xc99"
|
|
65 |
export RPM_OPT_FLAGS="$CFLAGS"
|
|
66 |
export LDFLAGS="%_ldflags -lX11 -L/usr/sfw/lib -lexpat"
|
10007
|
67 |
export PATH="$PATH:"`dirname $CXX`
|
|
68 |
export CXX=`basename $CXX`
|
9397
|
69 |
|
|
70 |
%gnome_games.build -d %name-%version
|
|
71 |
|
|
72 |
%install
|
|
73 |
rm -rf $RPM_BUILD_ROOT
|
|
74 |
%gnome_games.install -d %name-%version
|
|
75 |
|
|
76 |
rm -rf $RPM_BUILD_ROOT%{_localstatedir}/lib/games
|
|
77 |
rmdir $RPM_BUILD_ROOT%{_localstatedir}/lib
|
|
78 |
rmdir $RPM_BUILD_ROOT%{_localstatedir}
|
|
79 |
# Remove these empty dirs.
|
|
80 |
rmdir $RPM_BUILD_ROOT%{_includedir}
|
|
81 |
|
|
82 |
%if %build_l10n
|
|
83 |
%else
|
|
84 |
# REMOVE l10n FILES*files-list*
|
10809
|
85 |
rm -r $RPM_BUILD_ROOT%{_datadir}/locale
|
|
86 |
rm -r $RPM_BUILD_ROOT%{_datadir}/gnome/help/[a-z]*/[a-z]*
|
|
87 |
rm -r $RPM_BUILD_ROOT%{_datadir}/omf/*/*-[a-z]*.omf
|
|
88 |
rmdir $RPM_BUILD_ROOT%{_datadir}/omf/gnome-sudoku
|
|
89 |
rmdir $RPM_BUILD_ROOT%{_datadir}/omf/gnome-games
|
|
90 |
rmdir $RPM_BUILD_ROOT%{_datadir}/omf/same-gnome
|
9397
|
91 |
%endif
|
|
92 |
|
|
93 |
%{?pkgbuild_postprocess: %pkgbuild_postprocess -v -c "%{version}:%{jds_version}:%{name}:$RPM_ARCH:%(date +%%Y-%%m-%%d):unsupported" $RPM_BUILD_ROOT}
|
|
94 |
|
|
95 |
%clean
|
|
96 |
rm -rf $RPM_BUILD_ROOT
|
|
97 |
|
|
98 |
%post
|
|
99 |
( echo 'test -x /usr/bin/update-desktop-database || exit 0';
|
|
100 |
echo '/usr/bin/update-desktop-database'
|
|
101 |
) | $BASEDIR/lib/postrun -b -u -c JDS_wait
|
|
102 |
( echo 'test -x /usr/bin/scrollkeeper-update || exit 0';
|
|
103 |
echo '/usr/bin/scrollkeeper-update'
|
|
104 |
) | $BASEDIR/lib/postrun -b -u -c JDS
|
|
105 |
|
|
106 |
%postun
|
|
107 |
test -x $BASEDIR/lib/postrun || exit 0
|
|
108 |
( echo 'test -x /usr/bin/update-desktop-database || exit 0';
|
|
109 |
echo '/usr/bin/update-desktop-database'
|
|
110 |
) | $BASEDIR/lib/postrun -b -u -c JDS
|
|
111 |
( echo 'test -x /usr/bin/scrollkeeper-update || exit 0';
|
|
112 |
echo '/usr/bin/scrollkeeper-update'
|
|
113 |
) | $BASEDIR/lib/postrun -b -u -c JDS
|
|
114 |
|
|
115 |
%post root
|
|
116 |
( echo 'test -x /usr/bin/gconftool-2 || {';
|
|
117 |
echo ' echo "ERROR: gconftool-2 not found"';
|
|
118 |
echo ' exit 0';
|
|
119 |
echo '}';
|
|
120 |
echo 'umask 0022';
|
|
121 |
echo 'GCONF_CONFIG_SOURCE=xml:merged:/etc/gconf/gconf.xml.defaults';
|
|
122 |
echo 'export GCONF_CONFIG_SOURCE';
|
|
123 |
echo '/usr/bin/gconftool-2 --makefile-install-rule %{_sysconfdir}/gconf/schemas/*.schemas'
|
|
124 |
) | $BASEDIR/var/lib/postrun/postrun -u -c JDS_wait
|
|
125 |
|
|
126 |
%preun root
|
|
127 |
test -x $BASEDIR/var/lib/postrun/postrun || exit 0
|
|
128 |
( echo 'test -x $PKG_INSTALL_ROOT/usr/bin/gconftool-2 || {';
|
|
129 |
echo ' echo "WARNING: gconftool-2 not found; not uninstalling gconf schemas"';
|
|
130 |
echo ' exit 0';
|
|
131 |
echo '}';
|
|
132 |
echo 'umask 0022';
|
|
133 |
echo 'GCONF_CONFIG_SOURCE=xml:merged:$BASEDIR/etc/gconf/gconf.xml.defaults';
|
|
134 |
echo 'GCONF_BACKEND_DIR=$PKG_INSTALL_ROOT/usr/lib/GConf/2';
|
|
135 |
echo 'LD_LIBRARY_PATH=$PKG_INSTALL_ROOT/usr/lib';
|
|
136 |
echo 'export GCONF_CONFIG_SOURCE GCONF_BACKEND_DIR LD_LIBRARY_PATH';
|
|
137 |
echo 'SDIR=$BASEDIR%{_sysconfdir}/gconf/schemas';
|
|
138 |
echo 'schemas="$SDIR/glines.schemas';
|
|
139 |
echo ' $SDIR/glchess.schemas';
|
|
140 |
echo ' $SDIR/gnect.schemas';
|
|
141 |
echo ' $SDIR/gnibbles.schemas';
|
|
142 |
echo ' $SDIR/gnobots2.schemas';
|
|
143 |
echo ' $SDIR/gnomine.schemas';
|
|
144 |
echo ' $SDIR/gnotravex.schemas';
|
|
145 |
echo ' $SDIR/gnotski.schemas';
|
|
146 |
echo ' $SDIR/gtali.schemas';
|
|
147 |
echo ' $SDIR/iagno.schemas';
|
|
148 |
echo ' $SDIR/same-gnome.schemas';
|
|
149 |
echo ' $SDIR/mahjongg.schemas"';
|
|
150 |
echo '$PKG_INSTALL_ROOT/usr/bin/gconftool-2 --makefile-uninstall-rule $schemas'
|
|
151 |
) | $BASEDIR/var/lib/postrun/postrun -i -c JDS -a
|
|
152 |
|
|
153 |
%files
|
|
154 |
%defattr (-, root, bin)
|
|
155 |
%dir %attr (0755, root, bin) %{_bindir}
|
|
156 |
%{_bindir}/*
|
|
157 |
%dir %attr (0755, root, bin) %{_libdir}
|
10036
|
158 |
%{_libdir}/gnome-games
|
9397
|
159 |
%{_libdir}/python?.?/vendor-packages
|
|
160 |
%dir %attr (0755, root, sys) %{_datadir}
|
|
161 |
%dir %attr (0755, root, other) %{_datadir}/applications
|
|
162 |
%{_datadir}/applications/*
|
|
163 |
%{_datadir}/gnect
|
|
164 |
%{_datadir}/ggz
|
|
165 |
%{_datadir}/gnibbles
|
|
166 |
%{_datadir}/gnobots2
|
|
167 |
%dir %attr (0755, root, other) %{_datadir}/gnome
|
|
168 |
%{_datadir}/gnome/help/*/C
|
|
169 |
%{_datadir}/glchess
|
10259
|
170 |
%{_datadir}/gnome-games/gnotski
|
9397
|
171 |
%{_datadir}/gnome-games/mahjongg
|
10036
|
172 |
%{_datadir}/gnome-games/pixmaps
|
9397
|
173 |
%{_datadir}/gnome-games/same-gnome
|
10036
|
174 |
%{_datadir}/gnome-games/sounds
|
|
175 |
%{_datadir}/gnome-games-common
|
9397
|
176 |
%{_datadir}/gnome-sudoku
|
|
177 |
%{_datadir}/omf/*/*-C.omf
|
|
178 |
%dir %attr (0755, root, other) %{_datadir}/pixmaps
|
|
179 |
%{_datadir}/pixmaps/*
|
|
180 |
%attr (-, root, other) %{_datadir}/icons
|
|
181 |
|
|
182 |
%if %build_l10n
|
|
183 |
%files l10n
|
|
184 |
%defattr (-, root, bin)
|
|
185 |
%dir %attr (0755, root, sys) %{_datadir}
|
|
186 |
%dir %attr (0755, root, other) %{_datadir}/gnome
|
|
187 |
%attr (-, root, other) %{_datadir}/locale
|
|
188 |
%{_datadir}/gnome/help/[a-z]*/[a-z]*
|
|
189 |
%{_datadir}/omf/*/*-[a-z][a-z].omf
|
9618
|
190 |
%{_datadir}/omf/*/*-[a-z][a-z]_[A-Z][A-Z].omf
|
9397
|
191 |
%endif
|
|
192 |
|
|
193 |
%files root
|
|
194 |
%defattr (-, root, sys)
|
|
195 |
%attr(0755, root, sys) %dir %{_sysconfdir}
|
|
196 |
%{_sysconfdir}/gconf/schemas/glchess.schemas
|
|
197 |
%{_sysconfdir}/gconf/schemas/glines.schemas
|
|
198 |
%{_sysconfdir}/gconf/schemas/gnect.schemas
|
|
199 |
%{_sysconfdir}/gconf/schemas/gnibbles.schemas
|
|
200 |
%{_sysconfdir}/gconf/schemas/gnobots2.schemas
|
|
201 |
%{_sysconfdir}/gconf/schemas/gnomine.schemas
|
|
202 |
%{_sysconfdir}/gconf/schemas/gnotravex.schemas
|
|
203 |
%{_sysconfdir}/gconf/schemas/gnotski.schemas
|
|
204 |
%{_sysconfdir}/gconf/schemas/gtali.schemas
|
|
205 |
%{_sysconfdir}/gconf/schemas/iagno.schemas
|
|
206 |
%{_sysconfdir}/gconf/schemas/same-gnome.schemas
|
|
207 |
%{_sysconfdir}/gconf/schemas/mahjongg.schemas
|
|
208 |
|
|
209 |
|
|
210 |
%changelog
|
10809
|
211 |
* Fri Feb 22 2008 - [email protected]
|
|
212 |
- Remove some empty dirs for non-l10n builds.
|
10036
|
213 |
* Mon Jun 11 2007 - [email protected]
|
10259
|
214 |
- Update %files to 2.19.6 tarball - add %{_datadir}/gnome-games/gnotski.
|
|
215 |
* Mon Jun 11 2007 - [email protected]
|
10036
|
216 |
- Update %files to 2.19.3 tarball.
|
10007
|
217 |
* Wed Jun 06 2007 - [email protected]
|
|
218 |
- Add $CXX dir to PATH so that configure can find it. Set $CXX to 'CC', again so
|
|
219 |
configure can find it (via PATH).
|
9618
|
220 |
* Fri Mar 23 2007 - [email protected]
|
|
221 |
- Add en_GB omf files to %files.
|
9397
|
222 |
* Tue Feb 20 2007 - [email protected]
|
|
223 |
- Remove %if/%endif with_guile code as aisleriot is no longer built - it is
|
|
224 |
excluded via a configure option in gnome-games.spec.
|
|
225 |
* Fri Feb 16 2007 - [email protected]
|
|
226 |
- Add Build/Requires SUNWgnome-python-desktop/-devel.
|
|
227 |
* Mon Feb 12 2007 - [email protected]
|
|
228 |
- aisleriot game is only built when SFEguile is installed. Use %if/%endif to
|
|
229 |
include its files only when SFEguile is installed.
|
|
230 |
* Sat Feb 10 2007 - [email protected]
|
|
231 |
- Add sol-games dir to %files and aisleriot.schemas to %files and %preun root.
|
|
232 |
* Sun Jan 28 2007 - [email protected]
|
|
233 |
- add -xc99 to CFLAGS
|
|
234 |
* Tue Jan 09 2007 - [email protected]
|
|
235 |
- Add glchess.schemas to %preun root and to %files.
|
|
236 |
* Thu Dec 07 2006 - [email protected]
|
|
237 |
- Add python libs dir and glchess/gnome-sudoku dirs.
|
|
238 |
* Fri Nov 24 2006 - [email protected]
|
|
239 |
- Remove empty %{_libdir}. Remove glchess and gnome-sudoku games as they were
|
|
240 |
not installed.
|
|
241 |
* Wed Nov 22 2006 - [email protected]
|
|
242 |
- 2.17.1 changes - remove gataxx references; add glchess, gnome-sudoku and ggz
|
|
243 |
games.
|
|
244 |
* Thu Nov 09 2006 - [email protected]
|
|
245 |
- Add BuildRequires SUNWgnome-vfs-devel as gnome-libs pc file requires
|
|
246 |
gnome-vfs.
|
|
247 |
* Mon Aug 21 2006 - [email protected]
|
|
248 |
- Fix l10n package - C locale omf file was in base and l10n package.
|
|
249 |
* Thu Aug 17 2006 - [email protected]
|
|
250 |
- Change 'icons' line in %files to pick up files.
|
|
251 |
* Sat Aug 12 2006 - [email protected]
|
|
252 |
- delete some unnecessary env variables
|
|
253 |
* Sat Aug 12 2006 - [email protected]
|
|
254 |
- change datadir/icons permissions back to root:other since it's a stable
|
|
255 |
interface and wasn't supposed to be changed
|
|
256 |
* Fri Jul 14 2006 - [email protected]
|
|
257 |
- update %post/%postun/etc scripts to support diskless client setup,
|
|
258 |
part of 6448317
|
|
259 |
* Thu Jun 29 2006 - [email protected]
|
|
260 |
- update postrun scripts
|
|
261 |
* Mon Jun 26 2006 - [email protected]
|
|
262 |
- move back to /usr, part of CR 6412650
|
|
263 |
* Sun Jun 11 2006 - [email protected]
|
|
264 |
- change group from other to bin/sys
|
|
265 |
* Sat Jun 10 2006 - [email protected]
|
|
266 |
- delete -devel pkg: it was empty
|
|
267 |
* Thu May 25 2006 - [email protected]
|
|
268 |
- use post/preun scripts to install schemas into the merged gconf files
|
|
269 |
* Wed May 10 2006 - [email protected]
|
|
270 |
- merge -share pkg(s) into the base pkg(s)
|
|
271 |
* Mon Feb 20 2006 - [email protected]
|
|
272 |
- Complete update of Build/Requires after running check-deps.pl script.
|
|
273 |
* Thu Feb 16 2006 - [email protected]
|
|
274 |
- Update Build/Requires after running check-deps.pl script.
|
|
275 |
* Fri Jan 06 2006 - [email protected]
|
|
276 |
- Fix %files for updated file list.
|
|
277 |
* Sat Dec 3 2005 - [email protected]
|
|
278 |
- add %post script that runs update-desktop-database
|
|
279 |
* Tue Nov 29 2005 - [email protected]
|
|
280 |
- remove javahelp stuff
|
|
281 |
* Tue Sep 13 2005 - [email protected]
|
|
282 |
- Remove unpackaged files or add to %files
|
|
283 |
* Thu Jul 28 2005 - [email protected]
|
|
284 |
- Add SUNWlibrsvg-devel build dependency. Add SUNWlibrsvg runtime dependency.
|
|
285 |
* Tue May 24 2005 - [email protected]
|
|
286 |
- Bump to 2.10 and fix packaging.
|
|
287 |
* Mon Dec 13 2004 - [email protected]
|
|
288 |
- Move to /usr/sfw to implement ARC decision.
|
|
289 |
* Fri Nov 12 2004 - [email protected]
|
|
290 |
- move to /usr/demo/jds
|
|
291 |
* Tue Oct 05 2004 - [email protected]
|
|
292 |
- Added localized help to l10n package
|
|
293 |
* Sat Oct 02 2004 - [email protected]
|
|
294 |
- added %pkgbuild_postprocess
|
|
295 |
* Mon Aug 23 2004 - [email protected]
|
|
296 |
- s/SUNWpl5u/SUNWperl584usr/
|
|
297 |
* Sat Jun 26 2004 [email protected]
|
|
298 |
- Changed install location to /usr/...
|
|
299 |
* Wed Jun 2 2004 - [email protected]
|
|
300 |
- Added %{_datadir}/locale to install l10n messages
|
|
301 |
* Thu May 27 2004 - [email protected]
|
|
302 |
- Comment out SUNWcspu lines. Will uncomment when Metropolis branch created.
|
|
303 |
* Wed May 26 2004 - [email protected]
|
|
304 |
- Add SUNWcspu (with libucb.so and scandir) to Requires and BuildRequires.
|
|
305 |
configure was breaking because of its absense.
|
|
306 |
* Mon May 10 2004 - [email protected]
|
|
307 |
- Putting back %{_sysconfig}/gconf into packaging which got
|
|
308 |
accidently simplified away in Laca's last change. Now the
|
|
309 |
games work again.
|
|
310 |
* Tue Apr 20 2004 - [email protected]
|
|
311 |
- simlify %files
|
|
312 |
- add javahelp
|
|
313 |
* Thu Apr 08 2004 - [email protected]
|
|
314 |
- added missing %defattr
|
|
315 |
* Fri Mar 26 2004 - [email protected]
|
|
316 |
- Created,
|