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