1 |
%define url_ver %(echo %{version}|cut -d. -f1,2) |
2 |
|
3 |
Summary: GNOME games |
4 |
Name: gnome-games |
5 |
Version: 3.3.1 |
6 |
Release: %mkrel 1 |
7 |
License: GPLv2+ |
8 |
Group: Games/Other |
9 |
URL: http://live.gnome.org/GnomeGames/ |
10 |
Source0: http://download.gnome.org/sources/%{name}/%{url_ver}/%{name}-%{version}.tar.xz |
11 |
BuildRequires: pkgconfig(cairo) >= 1.10.0 |
12 |
BuildRequires: pkgconfig(clutter-1.0) >= 1.0.0 |
13 |
BuildRequires: pkgconfig(clutter-gtk-1.0) >= 0.91.6 |
14 |
BuildRequires: pkgconfig(gconf-2.0) >= 2.0 |
15 |
BuildRequires: pkgconfig(gio-2.0) >= 2.25.7 |
16 |
BuildRequires: pkgconfig(gl) |
17 |
BuildRequires: pkgconfig(glu) |
18 |
BuildRequires: pkgconfig(gmodule-2.0) |
19 |
BuildRequires: pkgconfig(gobject-2.0) |
20 |
BuildRequires: pkgconfig(gthread-2.0) |
21 |
BuildRequires: pkgconfig(gtk+-3.0) >= 2.91.7 |
22 |
BuildRequires: pkgconfig(ice) |
23 |
BuildRequires: pkgconfig(libcanberra-gtk3) >= 0.26 |
24 |
BuildRequires: pkgconfig(librsvg-2.0) >= 2.32.0 |
25 |
BuildRequires: pkgconfig(pygobject-2.0) >= 2.28.3 |
26 |
BuildRequires: pkgconfig(sm) |
27 |
BuildRequires: pkgconfig(sqlite3) |
28 |
BuildRequires: pkgconfig(x11) |
29 |
BuildRequires: gobject-introspection-devel |
30 |
BuildRequires: scrollkeeper |
31 |
BuildRequires: gnome-doc-utils |
32 |
BuildRequires: intltool |
33 |
BuildRequires: gob2 |
34 |
BuildRequires: automake |
35 |
BuildRequires: gnome-common |
36 |
BuildRequires: desktop-file-utils |
37 |
BuildRequires: x11-server-xvfb |
38 |
BuildRequires: vala >= 0.12.0 |
39 |
# (wally) Aisleriot was split out of gnome-games into a separate package |
40 |
Requires: aisleriot |
41 |
Requires: glchess |
42 |
Requires: glines |
43 |
Requires: gnect |
44 |
Requires: gnibbles |
45 |
Requires: gnobots2 |
46 |
Requires: gnome-mahjongg |
47 |
Requires: gnome-sudoku |
48 |
Requires: gnomine |
49 |
Requires: gnotravex |
50 |
Requires: gnotski |
51 |
Requires: gtali |
52 |
Requires: iagno |
53 |
Requires: quadrapassel |
54 |
Obsoletes: lightsoff |
55 |
Obsoletes: swell-foop |
56 |
|
57 |
%description |
58 |
The gnome-games package includes games for the GNOME GUI desktop environment. |
59 |
They include: |
60 |
|
61 |
Ataxx Disk-flipping game where players try and control most disks. |
62 |
Four-in-a-row Players tries to make a line of four disks. (Connect Four) |
63 |
Iagno GNOME version of the popular Othello (R) chess. |
64 |
Klotski A series of sliding block puzzles. |
65 |
Lines Move balls around the grid to form lines of the same colour |
66 |
to make them disappear, while more balls keep dropping in. |
67 |
Mahjongg Remove tiles in matching pairs from a pile to dismantle it. |
68 |
Mines The popular logic puzzle minesweeper. |
69 |
Nibbles Pilot a worm around a maze trying to collect diamonds. |
70 |
Robots Classic BSD robots game, avoiding robots approaching you. |
71 |
Same GNOME In a grid of stones of different colors, try remove stones |
72 |
where two or more of the same colour touch each other. |
73 |
Tali Poker-like dice game without money, similar to Yahtzee. |
74 |
Tetravex A puzzle where you match tiles edges together. |
75 |
GLChess Chess with a 3D board. |
76 |
Quadrapassel Tetris clone. |
77 |
|
78 |
#----------------------------------------------------------- |
79 |
%package common |
80 |
Summary: Common files for GNOME Games |
81 |
Group: Games/Other |
82 |
Conflicts: gnome-games < 2.29.6-2 |
83 |
|
84 |
%description common |
85 |
Common files for GNOME Games. |
86 |
|
87 |
%files common -f %{name}.lang |
88 |
%defattr(-, root, root) |
89 |
%{_libdir}/gnome-games |
90 |
%{_datadir}/glib-2.0/schemas/org.gnome.Games.WindowState.gschema.xml |
91 |
%dir %{_datadir}/gnome-games |
92 |
%{_datadir}/gnome-games/pixmaps |
93 |
%{_datadir}/gnome-games/sounds |
94 |
%{_datadir}/gnome-games/icons |
95 |
|
96 |
#----------------------------------------------------------- |
97 |
|
98 |
%package -n glchess |
99 |
Summary: Chess with a 3D board |
100 |
Group: Games/Other |
101 |
Conflicts: gnome-games < 2.29.6-2 |
102 |
Requires: %{name}-common = %{version}-%{release} |
103 |
|
104 |
%description -n glchess |
105 |
Chess with a 3D board. |
106 |
|
107 |
%files -n glchess -f glchess.lang |
108 |
%defattr(-, root, root) |
109 |
%{_datadir}/glib-2.0/schemas/org.gnome.glchess.gschema.xml |
110 |
%attr(2555, root, games) %{_bindir}/glchess |
111 |
%attr(2555, root, games) %{_bindir}/gnome-gnuchess |
112 |
%{_datadir}/glchess |
113 |
%{_datadir}/applications/glchess.desktop |
114 |
%{_iconsdir}/*/*/*/gnome-glchess.* |
115 |
%{_mandir}/man6/glchess.* |
116 |
%dir %{_datadir}/omf/glchess |
117 |
%{_datadir}/omf/glchess/glchess-C.omf |
118 |
|
119 |
#----------------------------------------------------------- |
120 |
%package -n glines |
121 |
Summary: Move balls |
122 |
Group: Games/Other |
123 |
Conflicts: gnome-games < 2.29.6-2 |
124 |
Requires: %{name}-common = %{version}-%{release} |
125 |
|
126 |
%description -n glines |
127 |
Move balls around the grid to form lines of the same colour |
128 |
to make them disappear, while more balls keep dropping in. |
129 |
|
130 |
%preun -n glines |
131 |
%preun_uninstall_gconf_schemas glines |
132 |
|
133 |
%pre -n glines |
134 |
[ -d %{_localstatedir}/games ] || mkdir -p %{_localstatedir}/games |
135 |
for i in glines.Large \ |
136 |
glines.Medium \ |
137 |
glines.Small \ |
138 |
; do |
139 |
%create_ghostfile %{_localstatedir}/games/$i.scores games games 0664 |
140 |
if [ -f "%{_localstatedir}/games/$i.scores" -a ! -s "%{_localstatedir}/games/$i.scores" ]; then |
141 |
echo "0.000000 `date +%s` gnome" >> %{_localstatedir}/games/$i.scores |
142 |
fi |
143 |
done |
144 |
|
145 |
%files -n glines -f glines.lang |
146 |
%defattr(-, root, root) |
147 |
%attr(2555, root, games) %{_bindir}/glines |
148 |
%{_datadir}/glib-2.0/schemas/org.gnome.glines.gschema.xml |
149 |
%{_datadir}/gnome-games/glines |
150 |
%{_datadir}/applications/glines.desktop |
151 |
%{_iconsdir}/*/*/*/gnome-glines.* |
152 |
%{_mandir}/man6/glines.* |
153 |
%dir %{_datadir}/omf/glines |
154 |
%{_datadir}/omf/glines/glines-C.omf |
155 |
%attr(664, games, games) %ghost %{_localstatedir}/games/glines.*.scores |
156 |
|
157 |
#----------------------------------------------------------- |
158 |
%package -n gnect |
159 |
Summary: A four-in-a-row game |
160 |
Group: Games/Other |
161 |
Conflicts: gnome-games < 2.29.6-2 |
162 |
Requires: %{name}-common = %{version}-%{release} |
163 |
|
164 |
%description -n gnect |
165 |
gnect is a four-in-a-row game for the GNOME Project. |
166 |
The object of the game is to build a line of four of your marbles |
167 |
while trying to stop your opponent (human or computer) building a |
168 |
line of his or her own. A line can be horizontal, vertical or |
169 |
diagonal. |
170 |
|
171 |
%preun -n gnect |
172 |
%preun_uninstall_gconf_schemas gnect |
173 |
|
174 |
%files -n gnect -f gnect.lang |
175 |
%defattr(-, root, root) |
176 |
%{_sysconfdir}/gconf/schemas/gnect.schemas |
177 |
%attr(2555, root, games) %{_bindir}/gnect |
178 |
%{_datadir}/gnome-games/gnect |
179 |
%{_datadir}/applications/gnect.desktop |
180 |
%{_iconsdir}/*/*/*/gnome-gnect.* |
181 |
%{_mandir}/man6/gnect.* |
182 |
%dir %{_datadir}/omf/gnect |
183 |
%{_datadir}/omf/gnect/gnect-C.omf |
184 |
|
185 |
#----------------------------------------------------------- |
186 |
%package -n gnibbles |
187 |
Summary: A worm game |
188 |
Group: Games/Other |
189 |
Conflicts: gnome-games < 2.29.6-2 |
190 |
Requires: %{name}-common = %{version}-%{release} |
191 |
|
192 |
%description -n gnibbles |
193 |
Nibbles is a worm game for GNOME. The player controls a 2D |
194 |
worm while trying to get food. Getting food gives points, |
195 |
but hitting anything causes a loss of points. When all points |
196 |
are lost, the player loses. |
197 |
|
198 |
%pre -n gnibbles |
199 |
[ -d %{_localstatedir}/games ] || mkdir -p %{_localstatedir}/games |
200 |
for i in \ |
201 |
gnibbles.1.0 \ |
202 |
gnibbles.1.1 \ |
203 |
gnibbles.2.0 \ |
204 |
gnibbles.2.1 \ |
205 |
gnibbles.3.0 \ |
206 |
gnibbles.3.1 \ |
207 |
gnibbles.4.0 \ |
208 |
gnibbles.4.1 \ |
209 |
; do |
210 |
%create_ghostfile %{_localstatedir}/games/$i.scores games games 0664 |
211 |
if [ -f "%{_localstatedir}/games/$i.scores" -a ! -s "%{_localstatedir}/games/$i.scores" ]; then |
212 |
echo "0.000000 `date +%s` gnome" >> %{_localstatedir}/games/$i.scores |
213 |
fi |
214 |
done |
215 |
|
216 |
%preun -n gnibbles |
217 |
%preun_uninstall_gconf_schemas gnibbles |
218 |
|
219 |
%files -n gnibbles -f gnibbles.lang |
220 |
%defattr(-, root, root) |
221 |
%{_sysconfdir}/gconf/schemas/gnibbles.schemas |
222 |
%attr(2555, root, games) %{_bindir}/gnibbles |
223 |
%{_datadir}/gnome-games/gnibbles |
224 |
%{_datadir}/applications/gnibbles.desktop |
225 |
%{_iconsdir}/*/*/*/gnome-gnibbles.* |
226 |
%{_mandir}/man6/gnibbles.* |
227 |
%dir %{_datadir}/omf/gnibbles |
228 |
%{_datadir}/omf/gnibbles/gnibbles-C.omf |
229 |
%attr(664, games, games) %ghost %{_localstatedir}/games/gnibbles.*.scores |
230 |
|
231 |
#----------------------------------------------------------- |
232 |
%package -n gnobots2 |
233 |
Summary: Graphical version of text based robots game |
234 |
Group: Games/Other |
235 |
Conflicts: gnome-games < 2.29.6-2 |
236 |
Requires: %{name}-common = %{version}-%{release} |
237 |
|
238 |
%description -n gnobots2 |
239 |
Robots is a graphical version of the original text based |
240 |
robots game, which can be found on a number of UNIX systems. |
241 |
The player must outwit the robots chasing him/her by getting |
242 |
them to run into each other. |
243 |
|
244 |
%pre -n gnobots2 |
245 |
[ -d %{_localstatedir}/games ] || mkdir -p %{_localstatedir}/games |
246 |
for i in \ |
247 |
gnobots2.classic_robots-safe \ |
248 |
gnobots2.classic_robots-super-safe \ |
249 |
gnobots2.classic_robots \ |
250 |
gnobots2.nightmare-safe \ |
251 |
gnobots2.nightmare-super-safe \ |
252 |
gnobots2.nightmare \ |
253 |
gnobots2.robots2-safe \ |
254 |
gnobots2.robots2-super-safe \ |
255 |
gnobots2.robots2 \ |
256 |
gnobots2.robots2_easy-safe \ |
257 |
gnobots2.robots2_easy-super-safe \ |
258 |
gnobots2.robots2_easy \ |
259 |
gnobots2.robots_with_safe_teleport-safe \ |
260 |
gnobots2.robots_with_safe_teleport-super-safe \ |
261 |
gnobots2.robots_with_safe_teleport \ |
262 |
; do |
263 |
%create_ghostfile %{_localstatedir}/games/$i.scores games games 0664 |
264 |
if [ -f "%{_localstatedir}/games/$i.scores" -a ! -s "%{_localstatedir}/games/$i.scores" ]; then |
265 |
echo "0.000000 `date +%s` gnome" >> %{_localstatedir}/games/$i.scores |
266 |
fi |
267 |
done |
268 |
|
269 |
%preun -n gnobots2 |
270 |
%preun_uninstall_gconf_schemas gnobots2 |
271 |
|
272 |
%files -n gnobots2 -f gnobots2.lang |
273 |
%defattr(-, root, root) |
274 |
%{_sysconfdir}/gconf/schemas/gnobots2.schemas |
275 |
%attr(2555, root, games) %{_bindir}/gnobots2 |
276 |
%{_datadir}/gnome-games/gnobots2 |
277 |
%{_datadir}/applications/gnobots2.desktop |
278 |
%{_iconsdir}/*/*/*/gnome-robots.* |
279 |
%{_mandir}/man6/gnobots2.* |
280 |
%dir %{_datadir}/omf/gnobots2 |
281 |
%{_datadir}/omf/gnobots2/gnobots2-C.omf |
282 |
%attr(664, games, games) %ghost %{_localstatedir}/games/gnobots2.*.scores |
283 |
|
284 |
#----------------------------------------------------------- |
285 |
%package -n gnome-sudoku |
286 |
Summary: Generate and play the popular Sudoku logic puzzle |
287 |
Group: Games/Other |
288 |
Conflicts: gnome-games < 2.29.6-2 |
289 |
Requires: %{name}-common = %{version}-%{release} |
290 |
Requires: gnome-python |
291 |
Requires: gnome-python-gconf |
292 |
|
293 |
%description -n gnome-sudoku |
294 |
gnome-sudoku is an application to generate and play the popular |
295 |
Sudoku logic puzzle (also known as Number Place). |
296 |
|
297 |
%preun -n gnome-sudoku |
298 |
%preun_uninstall_gconf_schemas gnome-sudoku |
299 |
|
300 |
%files -n gnome-sudoku -f gnome-sudoku.lang |
301 |
%defattr(-, root, root) |
302 |
%{_sysconfdir}/gconf/schemas/gnome-sudoku.schemas |
303 |
%attr(2555, root, games) %{_bindir}/gnome-sudoku |
304 |
%{py_puresitedir}/gnome_sudoku |
305 |
%{_datadir}/gnome-sudoku |
306 |
%{_datadir}/applications/gnome-sudoku.desktop |
307 |
%{_iconsdir}/*/*/*/gnome-sudoku.* |
308 |
%{_mandir}/man6/gnome-sudoku.* |
309 |
%dir %{_datadir}/omf/gnome-sudoku |
310 |
%{_datadir}/omf/gnome-sudoku/gnome-sudoku-C.omf |
311 |
|
312 |
#----------------------------------------------------------- |
313 |
%package -n gnomine |
314 |
Summary: A puzzle game |
315 |
Group: Games/Other |
316 |
Conflicts: gnome-games < 2.29.6-2 |
317 |
Requires: %{name}-common = %{version}-%{release} |
318 |
|
319 |
%description -n gnomine |
320 |
gnomine is a puzzle game where you locate mines floating in an |
321 |
ocean using only your brain and a little bit of luck. |
322 |
|
323 |
%pre -n gnomine |
324 |
[ -d %{_localstatedir}/games ] || mkdir -p %{_localstatedir}/games |
325 |
for i in \ |
326 |
gnomine.Custom \ |
327 |
gnomine.Large \ |
328 |
gnomine.Medium \ |
329 |
gnomine.Small \ |
330 |
; do |
331 |
%create_ghostfile %{_localstatedir}/games/$i.scores games games 0664 |
332 |
if [ -f "%{_localstatedir}/games/$i.scores" -a ! -s "%{_localstatedir}/games/$i.scores" ]; then |
333 |
echo "0.000000 `date +%s` gnome" >> %{_localstatedir}/games/$i.scores |
334 |
fi |
335 |
done |
336 |
|
337 |
%files -n gnomine -f gnomine.lang |
338 |
%defattr(-, root, root) |
339 |
%attr(2555, root, games) %{_bindir}/gnomine |
340 |
%{_datadir}/glib-2.0/schemas/org.gnome.gnomine.gschema.xml |
341 |
%{_datadir}/gnome-games/gnomine |
342 |
%{_datadir}/applications/gnomine.desktop |
343 |
%{_iconsdir}/hicolor/*/apps/gnomine.* |
344 |
%{_mandir}/man6/gnomine.* |
345 |
%dir %{_datadir}/omf/gnomine |
346 |
%{_datadir}/omf/gnomine/gnomine-C.omf |
347 |
%attr(664, games, games) %ghost %{_localstatedir}/games/gnomine.*.scores |
348 |
|
349 |
#----------------------------------------------------------- |
350 |
%package -n gnotravex |
351 |
Summary: A simple puzzle game |
352 |
Group: Games/Other |
353 |
Conflicts: gnome-games < 2.29.6-2 |
354 |
Requires: %{name}-common = %{version}-%{release} |
355 |
|
356 |
%description -n gnotravex |
357 |
GNOME Tetravex is a simple puzzle where pieces must be positioned so |
358 |
that the same numbers are touching each other. Your game is timed, |
359 |
these times are stored in a system-wide scoreboard. |
360 |
|
361 |
%pre -n gnotravex |
362 |
[ -d %{_localstatedir}/games ] || mkdir -p %{_localstatedir}/games |
363 |
for i in \ |
364 |
gnotravex.2x2 \ |
365 |
gnotravex.3x3 \ |
366 |
gnotravex.4x4 \ |
367 |
gnotravex.5x5 \ |
368 |
gnotravex.6x6 \ |
369 |
; do |
370 |
%create_ghostfile %{_localstatedir}/games/$i.scores games games 0664 |
371 |
if [ -f "%{_localstatedir}/games/$i.scores" -a ! -s "%{_localstatedir}/games/$i.scores" ]; then |
372 |
echo "0.000000 `date +%s` gnome" >> %{_localstatedir}/games/$i.scores |
373 |
fi |
374 |
done |
375 |
|
376 |
%files -n gnotravex -f gnotravex.lang |
377 |
%defattr(-, root, root) |
378 |
%attr(2555, root, games) %{_bindir}/gnotravex |
379 |
%{_datadir}/glib-2.0/schemas/org.gnome.gnotravex.gschema.xml |
380 |
%{_datadir}/applications/gnotravex.desktop |
381 |
%{_iconsdir}/*/*/*/gnome-tetravex.* |
382 |
%{_mandir}/man6/gnotravex.* |
383 |
%attr(664, games, games) %ghost %{_localstatedir}/games/gnotravex.*.scores |
384 |
|
385 |
#----------------------------------------------------------- |
386 |
%package -n gnotski |
387 |
Summary: Clone of the Klotski game |
388 |
Group: Games/Other |
389 |
Conflicts: gnome-games < 2.29.6-2 |
390 |
Requires: %{name}-common = %{version}-%{release} |
391 |
|
392 |
%description -n gnotski |
393 |
The gnotski application is a clone of the Klotski game. The |
394 |
objective is to move the patterned block to the area bordered |
395 |
by green markers. |
396 |
|
397 |
%pre -n gnotski |
398 |
[ -d %{_localstatedir}/games ] || mkdir -p %{_localstatedir}/games |
399 |
for i in \ |
400 |
gnotski.1 \ |
401 |
gnotski.2 \ |
402 |
gnotski.3 \ |
403 |
gnotski.4 \ |
404 |
gnotski.5 \ |
405 |
gnotski.6 \ |
406 |
gnotski.7 \ |
407 |
gnotski.8 \ |
408 |
gnotski.9 \ |
409 |
gnotski.10 \ |
410 |
gnotski.11 \ |
411 |
gnotski.12 \ |
412 |
gnotski.13 \ |
413 |
gnotski.14 \ |
414 |
gnotski.15 \ |
415 |
gnotski.16 \ |
416 |
gnotski.17 \ |
417 |
gnotski.18 \ |
418 |
gnotski.19 \ |
419 |
gnotski.20 \ |
420 |
gnotski.21 \ |
421 |
gnotski.22 \ |
422 |
gnotski.23 \ |
423 |
gnotski.24 \ |
424 |
gnotski.25 \ |
425 |
gnotski.26 \ |
426 |
gnotski.27 \ |
427 |
gnotski.28 \ |
428 |
gnotski.29 \ |
429 |
gnotski.30 \ |
430 |
gnotski.31 \ |
431 |
gnotski.32 \ |
432 |
gnotski.33 \ |
433 |
gnotski.34 \ |
434 |
gnotski.35 \ |
435 |
gnotski.36 \ |
436 |
gnotski.37 \ |
437 |
; do |
438 |
%create_ghostfile %{_localstatedir}/games/$i.scores games games 0664 |
439 |
if [ -f "%{_localstatedir}/games/$i.scores" -a ! -s "%{_localstatedir}/games/$i.scores" ]; then |
440 |
echo "0.000000 `date +%s` gnome" >> %{_localstatedir}/games/$i.scores |
441 |
fi |
442 |
done |
443 |
|
444 |
%preun -n gnotski |
445 |
%preun_uninstall_gconf_schemas gnotski |
446 |
|
447 |
%files -n gnotski -f gnotski.lang |
448 |
%defattr(-, root, root) |
449 |
%{_sysconfdir}/gconf/schemas/gnotski.schemas |
450 |
%attr(2555, root, games) %{_bindir}/gnotski |
451 |
%{_datadir}/gnome-games/gnotski |
452 |
%{_datadir}/applications/gnotski.desktop |
453 |
%{_iconsdir}/*/*/*/gnome-klotski.* |
454 |
%{_mandir}/man6/gnotski.* |
455 |
%dir %{_datadir}/omf/gnotski |
456 |
%{_datadir}/omf/gnotski/gnotski-C.omf |
457 |
%attr(664, games, games) %ghost %{_localstatedir}/games/gnotski.*.scores |
458 |
|
459 |
#----------------------------------------------------------- |
460 |
%package -n gtali |
461 |
Summary: Gnome version of Yahtzee Dice Game |
462 |
Group: Games/Other |
463 |
Conflicts: gnome-games < 2.29.6-2 |
464 |
Requires: %{name}-common = %{version}-%{release} |
465 |
|
466 |
%description -n gtali |
467 |
Tali is like Yahtzee for GNOME or like poker with dice. The player |
468 |
rolls dice to try to make the best possible combinations, like |
469 |
4 of a kind, small straight, and full house. The player is allowed |
470 |
3 rolls per turn and can hold certain dice with each roll. |
471 |
|
472 |
%pre -n gtali |
473 |
[ -d %{_localstatedir}/games ] || mkdir -p %{_localstatedir}/games |
474 |
for i in \ |
475 |
gtali.Colors \ |
476 |
gtali.Regular \ |
477 |
; do |
478 |
%create_ghostfile %{_localstatedir}/games/$i.scores games games 0664 |
479 |
if [ -f "%{_localstatedir}/games/$i.scores" -a ! -s "%{_localstatedir}/games/$i.scores" ]; then |
480 |
echo "0.000000 `date +%s` gnome" >> %{_localstatedir}/games/$i.scores |
481 |
fi |
482 |
done |
483 |
|
484 |
%preun -n gtali |
485 |
%preun_uninstall_gconf_schemas gtali |
486 |
|
487 |
%files -n gtali -f gtali.lang |
488 |
%defattr(-, root, root) |
489 |
%{_sysconfdir}/gconf/schemas/gtali.schemas |
490 |
%attr(2555, root, games) %{_bindir}/gtali |
491 |
%{_datadir}/gnome-games/gtali |
492 |
%{_datadir}/applications/gtali.desktop |
493 |
%{_iconsdir}/*/*/*/gnome-tali.* |
494 |
%{_mandir}/man6/gtali.* |
495 |
%dir %{_datadir}/omf/gtali |
496 |
%{_datadir}/omf/gtali/gtali-C.omf |
497 |
%attr(664, games, games) %ghost %{_localstatedir}/games/gtali.*.scores |
498 |
|
499 |
#----------------------------------------------------------- |
500 |
%package -n iagno |
501 |
Summary: Computer version of game Reversi/Othello |
502 |
Group: Games/Other |
503 |
Conflicts: gnome-games < 2.29.6-2 |
504 |
Requires: %{name}-common = %{version}-%{release} |
505 |
|
506 |
%description -n iagno |
507 |
Iagno is a computer version of the game Reversi, more popularly |
508 |
called Othello. Iagno is a two player strategy game similar to |
509 |
Go. The board is 8 by 8 with tiles that are black on one side |
510 |
and white on the other side. The object of Iagno is to flip as |
511 |
many of your opponent's tiles to your color as possible without |
512 |
your opponent flipping your tiles. This is done by trapping your |
513 |
opponent's tiles between two tiles of your own color. |
514 |
|
515 |
%files -n iagno -f iagno.lang |
516 |
%defattr(-, root, root) |
517 |
%attr(2555, root, games) %{_bindir}/iagno |
518 |
%{_datadir}/glib-2.0/schemas/org.gnome.iagno.gschema.xml |
519 |
%{_datadir}/gnome-games/iagno |
520 |
%{_datadir}/applications/iagno.desktop |
521 |
%{_iconsdir}/*/*/*/gnome-iagno.* |
522 |
%{_mandir}/man6/iagno.* |
523 |
%dir %{_datadir}/omf/iagno |
524 |
%{_datadir}/omf/iagno/iagno-C.omf |
525 |
|
526 |
#----------------------------------------------------------- |
527 |
|
528 |
%package -n gnome-mahjongg |
529 |
Summary: Mahjongg tile solitaire game |
530 |
Group: Games/Other |
531 |
Conflicts: gnome-games < 2.29.6-2 |
532 |
Requires: %{name}-common = %{version}-%{release} |
533 |
|
534 |
%description -n gnome-mahjongg |
535 |
A tile-based solitaire game. Remove tiles in matching pairs to |
536 |
dismantle elaborately designed stacks. |
537 |
|
538 |
%pre -n gnome-mahjongg |
539 |
[ -d %{_localstatedir}/games ] || mkdir -p %{_localstatedir}/games |
540 |
for i in \ |
541 |
mahjongg.bridges \ |
542 |
mahjongg.cloud \ |
543 |
mahjongg.confounding \ |
544 |
mahjongg.difficult \ |
545 |
mahjongg.dragon \ |
546 |
mahjongg.easy \ |
547 |
mahjongg.pyramid \ |
548 |
mahjongg.tictactoe \ |
549 |
mahjongg.ziggurat \ |
550 |
; do |
551 |
%create_ghostfile %{_localstatedir}/games/$i.scores games games 0664 |
552 |
if [ -f "%{_localstatedir}/games/$i.scores" -a ! -s "%{_localstatedir}/games/$i.scores" ]; then |
553 |
echo "0.000000 `date +%s` gnome" >> %{_localstatedir}/games/$i.scores |
554 |
fi |
555 |
done |
556 |
|
557 |
%files -n gnome-mahjongg -f mahjongg.lang |
558 |
%defattr(-, root, root) |
559 |
%attr(2555, root, games) %{_bindir}/mahjongg |
560 |
%{_datadir}/glib-2.0/schemas/org.gnome.mahjongg.gschema.xml |
561 |
%{_datadir}/gnome-games/mahjongg |
562 |
%{_datadir}/applications/mahjongg.desktop |
563 |
%{_iconsdir}/*/*/*/gnome-mahjongg.* |
564 |
%{_mandir}/man6/mahjongg.* |
565 |
%dir %{_datadir}/omf/mahjongg |
566 |
%{_datadir}/omf/mahjongg/mahjongg-C.omf |
567 |
%attr(664, games, games) %ghost %{_localstatedir}/games/mahjongg.*.scores |
568 |
|
569 |
#----------------------------------------------------------- |
570 |
%package -n quadrapassel |
571 |
Summary: Falling blocks game |
572 |
Group: Games/Other |
573 |
Conflicts: gnome-games < 2.29.6-2 |
574 |
Requires: %{name}-common = %{version}-%{release} |
575 |
Provides: gnometris = %{version}-%{release} |
576 |
|
577 |
%description -n quadrapassel |
578 |
The Russian game of falling geometric shapes. Fit blocks together |
579 |
to make complete rows. |
580 |
|
581 |
%pre -n quadrapassel |
582 |
[ -d %{_localstatedir}/games ] || mkdir -p %{_localstatedir}/games |
583 |
for i in \ |
584 |
quadrapassel \ |
585 |
; do |
586 |
%create_ghostfile %{_localstatedir}/games/$i.scores games games 0664 |
587 |
if [ -f "%{_localstatedir}/games/$i.scores" -a ! -s "%{_localstatedir}/games/$i.scores" ]; then |
588 |
echo "0.000000 `date +%s` gnome" >> %{_localstatedir}/games/$i.scores |
589 |
fi |
590 |
done |
591 |
|
592 |
%preun -n quadrapassel |
593 |
%preun_uninstall_gconf_schemas quadrapassel |
594 |
|
595 |
%files -n quadrapassel -f quadrapassel.lang |
596 |
%defattr(-, root, root) |
597 |
%{_sysconfdir}/gconf/schemas/quadrapassel.schemas |
598 |
%attr(2555, root, games) %{_bindir}/quadrapassel |
599 |
%{_datadir}/gnome-games/quadrapassel |
600 |
%{_datadir}/applications/quadrapassel.desktop |
601 |
%{_iconsdir}/*/*/*/gnome-quadrapassel.* |
602 |
%{_mandir}/man6/quadrapassel.* |
603 |
%dir %{_datadir}/omf/quadrapassel |
604 |
%{_datadir}/omf/quadrapassel/quadrapassel-C.omf |
605 |
%attr(664, games, games) %ghost %{_localstatedir}/games/quadrapassel.scores |
606 |
|
607 |
#----------------------------------------------------------- |
608 |
|
609 |
%package devel |
610 |
Group: Development/Other |
611 |
Summary: Gnome games library introspection |
612 |
Requires: %{name} = %version-%release |
613 |
|
614 |
%description devel |
615 |
This contains GObject-Introspection support for the libraries of %{name}. |
616 |
|
617 |
|
618 |
%prep |
619 |
%setup -q |
620 |
|
621 |
%build |
622 |
%configure2_5x \ |
623 |
--disable-schemas-install \ |
624 |
--enable-compile-warnings=no \ |
625 |
--enable-introspection=yes |
626 |
%make |
627 |
|
628 |
%install |
629 |
rm -rf %{buildroot} |
630 |
%makeinstall_std |
631 |
|
632 |
%{find_lang} %{name} |
633 |
for pkg in glchess glines gnect gnibbles gnobots2 gnome-sudoku gnomine gnotravex gnotski gtali iagno mahjongg quadrapassel; do |
634 |
%{find_lang} $pkg --with-gnome |
635 |
for omf in `find %{buildroot}%{_datadir}/omf/$pkg/*.omf|grep -v \\\-C\\\.omf`; do |
636 |
echo "%lang($(basename $omf|sed -e s/.*-// -e s/.omf//)) $(echo $omf|sed -e s!%{buildroot}!!)" >> $pkg.lang |
637 |
done |
638 |
done |
639 |
|
640 |
rm -rf %{buildroot}/var/lib/scrollkeeper %{buildroot}%{_sysconfdir}/ggz.modules |
641 |
|
642 |
%check |
643 |
#xvfb-run %make check |
644 |
|
645 |
%clean |
646 |
rm -rf %{buildroot} |
647 |
|
648 |
%files |
649 |
%defattr(-, root, root) |