]>
Commit | Line | Data |
---|---|---|
1 | Summary: GNOME games | |
2 | Summary(es.UTF-8): Juegos de GNOME | |
3 | Summary(fr.UTF-8): Jeux pour GNOME | |
4 | Summary(pl.UTF-8): GNOME - gry | |
5 | Summary(ru.UTF-8): Игры под GNOME | |
6 | Summary(uk.UTF-8): Ігри під GNOME | |
7 | Summary(wa.UTF-8): Djeus po GNOME | |
8 | Name: gnome-games | |
9 | Version: 2.28.2 | |
10 | Release: 1 | |
11 | Epoch: 1 | |
12 | License: LGPL | |
13 | Group: X11/Applications/Games | |
14 | Source0: http://ftp.gnome.org/pub/GNOME/sources/gnome-games/2.28/%{name}-%{version}.tar.bz2 | |
15 | # Source0-md5: 6dcd006d4393524c1e4f39ca0310ac8d | |
16 | Patch0: %{name}-schemas.patch | |
17 | URL: http://live.gnome.org/GnomeGames | |
18 | BuildRequires: GConf2-devel >= 2.28.0 | |
19 | BuildRequires: autoconf >= 2.53 | |
20 | BuildRequires: automake >= 1:1.9 | |
21 | BuildRequires: check-devel >= 0.9.4 | |
22 | BuildRequires: clutter-devel >= 1.0.0 | |
23 | BuildRequires: clutter-gtk-devel >= 0.10.2 | |
24 | BuildRequires: dbus-glib-devel >= 0.75 | |
25 | BuildRequires: docbook-dtd412-xml | |
26 | BuildRequires: gettext-devel | |
27 | BuildRequires: ggz-client-libs-devel >= 0.0.14 | |
28 | BuildRequires: ggz-server-devel >= 0.0.14 | |
29 | BuildRequires: gnome-common >= 2.24.0 | |
30 | BuildRequires: gnome-doc-utils >= 0.14.0 | |
31 | BuildRequires: gstreamer-devel >= 0.10.15 | |
32 | BuildRequires: gtk+2-devel >= 2:2.16.0 | |
33 | BuildRequires: guile-devel >= 5:1.6.5 | |
34 | BuildRequires: intltool >= 0.40.4 | |
35 | BuildRequires: libcanberra-gtk-devel | |
36 | BuildRequires: libdrm-devel | |
37 | BuildRequires: librsvg-devel >= 1:2.22.0 | |
38 | BuildRequires: libstdc++-devel | |
39 | BuildRequires: libtool | |
40 | BuildRequires: libxml2-devel >= 1:2.6.31 | |
41 | BuildRequires: pkgconfig >= 1:0.15 | |
42 | BuildRequires: python-devel >= 1:2.4 | |
43 | BuildRequires: python-pygtk-devel >= 2:2.14.0 | |
44 | BuildRequires: rpm-pythonprov | |
45 | BuildRequires: rpmbuild(find_lang) >= 1.23 | |
46 | BuildRequires: rpmbuild(macros) >= 1.311 | |
47 | BuildRequires: scrollkeeper >= 0.3.8 | |
48 | BuildRequires: xorg-lib-libSM-devel | |
49 | BuildRequires: xorg-lib-libXxf86vm-devel | |
50 | BuildRequires: xorg-proto-dri2proto-devel | |
51 | Requires(post,preun): GConf2 | |
52 | Requires: hicolor-icon-theme | |
53 | Requires: librsvg >= 1:2.22.0 | |
54 | Obsoletes: gnect | |
55 | Obsoletes: gnome | |
56 | Obsoletes: gnome-games-devel | |
57 | Obsoletes: gnome-games-gataxx | |
58 | Obsoletes: gnome-games-static | |
59 | Obsoletes: gnome-games-stones | |
60 | # sr@Latn vs. sr@latin | |
61 | Conflicts: glibc-misc < 6:2.7 | |
62 | BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) | |
63 | ||
64 | %define _localstatedir /var | |
65 | %define _gamesdir %{_localstatedir}/games | |
66 | ||
67 | %description | |
68 | Gnome-games is a collection of simple, but addictive, games from the | |
69 | GNOME desktop project. They represent many of the popular games and | |
70 | include card games, puzzle games and arcade games. | |
71 | ||
72 | %description -l pl.UTF-8 | |
73 | Gnome-games jest kolekcją prostych, choć uzależniających gier projektu | |
74 | GNOME. Są wśród nich reprezentanci wielu popularnych gier, wliczając | |
75 | karciane, układanki i zręcznościowe. | |
76 | ||
77 | %description -l uk.UTF-8 | |
78 | Пакет gnome-games включає ігри для середовища робочого столу GNOME, | |
79 | серед яких GnomeScott, freecell, gnibbles, gnobots, gnobots2, | |
80 | gnome-stones, gnomine, gnotravex, gtali, gturing, iagno, mahjongg, | |
81 | same-gnome та sol. | |
82 | ||
83 | %description -l ru.UTF-8 | |
84 | Пакет gnome-games включает игры для среды рабочего стола GNOME, среди | |
85 | которых GnomeScott, freecell, gnibbles, gnobots, gnobots2, | |
86 | gnome-stones, gnomine, gnotravex, gtali, gturing, iagno, mahjongg, | |
87 | same-gnome и sol. | |
88 | ||
89 | %package blackjack | |
90 | Summary: GNOME's version of blackjack | |
91 | Summary(pl.UTF-8): Blackjack dla GNOME | |
92 | Group: X11/Applications/Games | |
93 | Requires(post,postun): gtk+2 | |
94 | Requires(post,postun): scrollkeeper | |
95 | Requires(post,preun): GConf2 | |
96 | Requires: %{name} = %{epoch}:%{version}-%{release} | |
97 | ||
98 | %description blackjack | |
99 | Casino card game Blackjack. | |
100 | ||
101 | %description blackjack -l pl.UTF-8 | |
102 | Kasynowa wersja gry oczko. | |
103 | ||
104 | %package glchess | |
105 | Summary: GNOME glChess - a 2D/3D chess interface | |
106 | Summary(pl.UTF-8): GNOME glChess - dwu i trójwymiarowy interfejs do szachów | |
107 | Group: X11/Applications/Games | |
108 | Requires(post,postun): desktop-file-utils | |
109 | Requires(post,postun): scrollkeeper | |
110 | Requires(post,preun): GConf2 | |
111 | Requires: %{name} = %{epoch}:%{version}-%{release} | |
112 | Requires: python-gnome-gconf | |
113 | Suggests: crafty | |
114 | Suggests: gnuchess | |
115 | Suggests: python-PyOpenGL | |
116 | Suggests: python-pygtkglext >= 1.1.0-2 | |
117 | Obsoletes: glchess | |
118 | ||
119 | %description glchess | |
120 | glChess is a 2D/3D chess game interfacing via the Chess Engine | |
121 | Communication Protocol (CECP) by Tim Mann. This means it can currently | |
122 | use engines such as GNUChess, Sjeng, Faile, Amy, Crafty and Phalanx. | |
123 | ||
124 | %description glchess -l pl.UTF-8 | |
125 | glChess to dwu i trójwymiarowa gra w szachy komunikująca się za pomocą | |
126 | protokołu CECP (Chess Engine Communication Protocol) Tima Manna. | |
127 | Oznacza to, że aktualnie może używać silników takich jak GNUChess, | |
128 | Sjeng, Faile, Amy, Crafty i Phalanx. | |
129 | ||
130 | %package glines | |
131 | Summary: Five or more game | |
132 | Summary(pl.UTF-8): Gra "Pięć albo więcej" | |
133 | Group: X11/Applications/Games | |
134 | Requires(post): coreutils | |
135 | Requires(post,postun): gtk+2 | |
136 | Requires(post,postun): scrollkeeper | |
137 | Requires(post,preun): GConf2 | |
138 | Requires: %{name} = %{epoch}:%{version}-%{release} | |
139 | ||
140 | %description glines | |
141 | Remove colored balls from the board by forming lines. | |
142 | ||
143 | %description glines -l pl.UTF-8 | |
144 | Gra polegająca na usuwaniu kolorwych kul poprzez układanie ich w | |
145 | linie. | |
146 | ||
147 | %package gnect | |
148 | Summary: Four-in-a-row game | |
149 | Summary(pl.UTF-8): Gra "Cztery w rzędzie" | |
150 | Group: X11/Applications/Games | |
151 | Requires(post,postun): gtk+2 | |
152 | Requires(post,postun): scrollkeeper | |
153 | Requires(post,preun): GConf2 | |
154 | Requires(post,preun): ggz-client-libs | |
155 | Requires: %{name} = %{epoch}:%{version}-%{release} | |
156 | ||
157 | %description gnect | |
158 | Compete to make lines of the same color. | |
159 | ||
160 | %description gnect -l pl.UTF-8 | |
161 | Gra, której celem jest utowrzenie linii w jednym kolorze. | |
162 | ||
163 | %package gnibbles | |
164 | Summary: GNOME Nibbles | |
165 | Summary(pl.UTF-8): Nibbles dla GNOME | |
166 | Group: X11/Applications/Games | |
167 | Requires(post): coreutils | |
168 | Requires(post,postun): gtk+2 | |
169 | Requires(post,postun): scrollkeeper | |
170 | Requires(post,preun): GConf2 | |
171 | Requires(post,preun): ggz-client-libs | |
172 | Requires: %{name} = %{epoch}:%{version}-%{release} | |
173 | ||
174 | %description gnibbles | |
175 | Guide a worm around a maze. | |
176 | ||
177 | %description gnibbles -l pl.UTF-8 | |
178 | Gra polegająca na przeprowadzeniu robaka przez labirynt. | |
179 | ||
180 | %package gnobots2 | |
181 | Summary: GNOME Robots | |
182 | Summary(pl.UTF-8): Robots dla GNOME | |
183 | Group: X11/Applications/Games | |
184 | Requires(post): coreutils | |
185 | Requires(post,postun): gtk+2 | |
186 | Requires(post,postun): scrollkeeper | |
187 | Requires(post,preun): GConf2 | |
188 | Requires: %{name} = %{epoch}:%{version}-%{release} | |
189 | ||
190 | %description gnobots2 | |
191 | Avoid the robots and make them crash into each other. | |
192 | ||
193 | %description gnobots2 -l pl.UTF-8 | |
194 | Gra polegająca na zapobieganiu zderzeniom robotów. | |
195 | ||
196 | %package gnometris | |
197 | Summary: GNOME Tetris | |
198 | Summary(pl.UTF-8): Tetris dla GNOME | |
199 | Group: X11/Applications/Games | |
200 | Requires(post): coreutils | |
201 | Requires(post,postun): gtk+2 | |
202 | Requires(post,postun): scrollkeeper | |
203 | Requires(post,preun): GConf2 | |
204 | Requires: %{name} = %{epoch}:%{version}-%{release} | |
205 | ||
206 | %description gnometris | |
207 | Tetris like game. | |
208 | ||
209 | %description gnometris -l pl.UTF-8 | |
210 | Gra podobna do Tetrisa. | |
211 | ||
212 | %package gnomine | |
213 | Summary: GNOME Mines | |
214 | Summary(pl.UTF-8): Miny dla GNOME | |
215 | Group: X11/Applications/Games | |
216 | Requires(post): coreutils | |
217 | Requires(post,postun): gtk+2 | |
218 | Requires(post,postun): scrollkeeper | |
219 | Requires(post,preun): GConf2 | |
220 | Requires: %{name} = %{epoch}:%{version}-%{release} | |
221 | ||
222 | %description gnomine | |
223 | Clear mines from a minefield. | |
224 | ||
225 | %description gnomine -l pl.UTF-8 | |
226 | Gra, której celem jest rozminowanie pola minowego. | |
227 | ||
228 | %package gnotravex | |
229 | Summary: GNOME Tetravex | |
230 | Summary(pl.UTF-8): Tetravex dla GNOME | |
231 | Group: X11/Applications/Games | |
232 | Requires(post): coreutils | |
233 | Requires(post,postun): gtk+2 | |
234 | Requires(post,postun): scrollkeeper | |
235 | Requires(post,preun): GConf2 | |
236 | Requires: %{name} = %{epoch}:%{version}-%{release} | |
237 | ||
238 | %description gnotravex | |
239 | Puzzle game. | |
240 | ||
241 | %description gnotravex -l pl.UTF-8 | |
242 | Układanka. | |
243 | ||
244 | %package gnotski | |
245 | Summary: Gnome Klotski | |
246 | Summary(pl.UTF-8): Klotski dla GNOME | |
247 | Group: X11/Applications/Games | |
248 | Requires(post): coreutils | |
249 | Requires(post,postun): gtk+2 | |
250 | Requires(post,postun): scrollkeeper | |
251 | Requires(post,preun): GConf2 | |
252 | Requires: %{name} = %{epoch}:%{version}-%{release} | |
253 | ||
254 | %description gnotski | |
255 | Clone of the Klotski game. The objective is to move the patterned | |
256 | block to the area bordered by green markers. | |
257 | ||
258 | %description gnotski -l pl.UTF-8 | |
259 | Klon gry Klotski. Celem gry jest przesunięcie zaznaczonego klocka w | |
260 | pole ograniczone zielonymi znacznikami. | |
261 | ||
262 | %package gtali | |
263 | Summary: GNOME Tali | |
264 | Summary(pl.UTF-8): Tali dla GNOME | |
265 | Group: X11/Applications/Games | |
266 | Requires(post): coreutils | |
267 | Requires(post,postun): gtk+2 | |
268 | Requires(post,postun): scrollkeeper | |
269 | Requires(post,preun): GConf2 | |
270 | Requires: %{name} = %{epoch}:%{version}-%{release} | |
271 | ||
272 | %description gtali | |
273 | Poker-style dice game. | |
274 | ||
275 | %description gtali -l pl.UTF-8 | |
276 | Gra w kości w pokerowym stylu. | |
277 | ||
278 | %package iagno | |
279 | Summary: GNOME Iagno | |
280 | Summary(pl.UTF-8): Iagno dla GNOME | |
281 | Group: X11/Applications/Games | |
282 | Requires(post,postun): gtk+2 | |
283 | Requires(post,postun): scrollkeeper | |
284 | Requires(post,preun): GConf2 | |
285 | Requires: %{name} = %{epoch}:%{version}-%{release} | |
286 | ||
287 | %description iagno | |
288 | Reversi like game. | |
289 | ||
290 | %description iagno -l pl.UTF-8 | |
291 | Gra podobna do Reversi. | |
292 | ||
293 | %package mahjongg | |
294 | Summary: GNOME Mahjongg | |
295 | Summary(pl.UTF-8): Mahjongg dla GNOME | |
296 | Group: X11/Applications/Games | |
297 | Requires(post): coreutils | |
298 | Requires(post,postun): gtk+2 | |
299 | Requires(post,postun): scrollkeeper | |
300 | Requires(post,preun): GConf2 | |
301 | Requires: %{name} = %{epoch}:%{version}-%{release} | |
302 | ||
303 | %description mahjongg | |
304 | Disassemble a pile of tiles by removing matching pairs. | |
305 | ||
306 | %description mahjongg -l pl.UTF-8 | |
307 | Gra polegjaca na demontażu stosu kafli poprzez usuwanie pasujących | |
308 | par. | |
309 | ||
310 | %package same-gnome | |
311 | Summary: Same GNOME | |
312 | Group: X11/Applications/Games | |
313 | Requires(post): coreutils | |
314 | Requires(post,postun): gtk+2 | |
315 | Requires(post,postun): scrollkeeper | |
316 | Requires(post,preun): GConf2 | |
317 | Requires: %{name} = %{epoch}:%{version}-%{release} | |
318 | ||
319 | %description same-gnome | |
320 | Remove groups of balls to try and clear the screen. | |
321 | ||
322 | %description same-gnome -l pl.UTF-8 | |
323 | Gra, której celem jest oczyszczanie planszy poprzez usuwanie grup kul. | |
324 | ||
325 | %package sol | |
326 | Summary: AisleRiot Solitaire | |
327 | Summary(pl.UTF-8): Pasjans AisleRiot | |
328 | Group: X11/Applications/Games | |
329 | Requires(post,postun): gtk+2 | |
330 | Requires(post,postun): scrollkeeper | |
331 | Requires(post,preun): GConf2 | |
332 | Requires: %{name} = %{epoch}:%{version}-%{release} | |
333 | Requires: guile >= 5:1.6.5 | |
334 | ||
335 | %description sol | |
336 | Many different solitaire games. | |
337 | ||
338 | %description sol -l pl.UTF-8 | |
339 | Różne gry karciane. | |
340 | ||
341 | %package sudoku | |
342 | Summary: Simple interface for playing, saving, printing and solving Sudoku | |
343 | Summary(pl.UTF-8): Prosty interfejs do grania, zapisywania, drukowania i rozwiązywania Sudoku | |
344 | Group: X11/Applications/Games | |
345 | Requires(post,postun): gtk+2 | |
346 | Requires(post,preun): GConf2 | |
347 | Requires: %{name} = %{epoch}:%{version}-%{release} | |
348 | Requires: python-gnome-desktop-print >= 2.22.0 | |
349 | Requires: python-gnome-gconf | |
350 | Obsoletes: gnome-sudoku | |
351 | ||
352 | %description sudoku | |
353 | GNOME Sudoku provides a simple interface for playing, saving, printing | |
354 | and solving Sudoku. | |
355 | ||
356 | %description sudoku -l pl.UTF-8 | |
357 | GNOME Sudoku dostarcza prosty interfejs do grania, zapisywania, | |
358 | drukowania i rozwiązywania Sudoku. | |
359 | ||
360 | %package servers | |
361 | Summary: GGZ Gaming Zone servers for the GNOME games | |
362 | Summary(pl.UTF-8): Serwery GGZ Gaming Zone dla gier GNOME | |
363 | Group: Applications | |
364 | Requires: ggz-server >= 0.0.14 | |
365 | ||
366 | %description servers | |
367 | GGZ Gaming Zone servers for the GNOME games. | |
368 | ||
369 | %description servers -l pl.UTF-8 | |
370 | Serwery GGZ Gaming Zone dla gier GNOME. | |
371 | ||
372 | %prep | |
373 | %setup -q | |
374 | %patch0 -p1 | |
375 | ||
376 | %build | |
377 | %{__glib_gettextize} | |
378 | %{__intltoolize} | |
379 | %{__libtoolize} | |
380 | %{__aclocal} -I m4 | |
381 | %{__autoconf} | |
382 | %{__autoheader} | |
383 | %{__automake} | |
384 | %configure \ | |
385 | --enable-games=all \ | |
386 | --with-ggz-server=force \ | |
387 | --with-ggzd-confdir=%{_sysconfdir}/ggzd \ | |
388 | --disable-introspection \ | |
389 | --disable-scrollkeeper \ | |
390 | --disable-schemas-install \ | |
391 | --disable-static | |
392 | ||
393 | %{__make} | |
394 | ||
395 | %install | |
396 | rm -rf $RPM_BUILD_ROOT | |
397 | install -d $RPM_BUILD_ROOT%{_datadir}/ggz | |
398 | ||
399 | %{__make} install \ | |
400 | DESTDIR=$RPM_BUILD_ROOT \ | |
401 | ggzserver_dscdir=%{_sysconfdir}/ggzd/games \ | |
402 | ggzroomdir=%{_sysconfdir}/ggzd/rooms | |
403 | ||
404 | install gnect/data/gnect-client.dsc $RPM_BUILD_ROOT%{_datadir}/ggz | |
405 | install gnibbles/gnibbles-client.dsc $RPM_BUILD_ROOT%{_datadir}/ggz | |
406 | install iagno/iagno-client.dsc $RPM_BUILD_ROOT%{_datadir}/ggz | |
407 | ||
408 | rm -f $RPM_BUILD_ROOT%{_sysconfdir}/ggz.modules | |
409 | ||
410 | %py_postclean | |
411 | ||
412 | %find_lang %{name} --all-name | |
413 | %find_lang gnect --with-gnome --with-omf | |
414 | %find_lang gnomine --with-gnome --with-omf | |
415 | %find_lang same-gnome --with-gnome --with-omf | |
416 | %find_lang mahjongg --with-gnome --with-omf | |
417 | %find_lang glchess --with-gnome --with-omf | |
418 | %find_lang gtali --with-gnome --with-omf | |
419 | %find_lang gnome-sudoku --with-gnome --with-omf | |
420 | %find_lang gnotravex --with-gnome --with-omf | |
421 | %find_lang gnotski --with-gnome --with-omf | |
422 | %find_lang glines --with-gnome --with-omf | |
423 | %find_lang iagno --with-gnome --with-omf | |
424 | %find_lang gnobots2 --with-gnome --with-omf | |
425 | %find_lang gnibbles --with-gnome --with-omf | |
426 | %find_lang gnometris --with-gnome --with-omf | |
427 | %find_lang blackjack --with-gnome --with-omf | |
428 | %find_lang aisleriot --with-gnome --with-omf | |
429 | ||
430 | %clean | |
431 | rm -rf $RPM_BUILD_ROOT | |
432 | ||
433 | %post blackjack | |
434 | %scrollkeeper_update_post | |
435 | %gconf_schema_install blackjack.schemas | |
436 | %update_icon_cache hicolor | |
437 | ||
438 | %preun blackjack | |
439 | %gconf_schema_uninstall blackjack.schemas | |
440 | ||
441 | %postun blackjack | |
442 | %scrollkeeper_update_postun | |
443 | %update_icon_cache hicolor | |
444 | ||
445 | %post glchess | |
446 | %gconf_schema_install glchess.schemas | |
447 | %update_desktop_database_post | |
448 | %scrollkeeper_update_post | |
449 | ||
450 | %preun glchess | |
451 | %gconf_schema_uninstall glchess.schemas | |
452 | ||
453 | %postun glchess | |
454 | %update_desktop_database_postun | |
455 | %scrollkeeper_update_postun | |
456 | ||
457 | %post glines | |
458 | %scrollkeeper_update_post | |
459 | %gconf_schema_install glines.schemas | |
460 | %update_icon_cache hicolor | |
461 | ||
462 | if [ ! -f %{_gamesdir}/glines.scores ]; then | |
463 | touch %{_gamesdir}/glines.scores | |
464 | chown root:games %{_gamesdir}/glines.scores | |
465 | chmod 664 %{_gamesdir}/glines.scores | |
466 | fi | |
467 | ||
468 | %preun glines | |
469 | %gconf_schema_uninstall glines.schemas | |
470 | ||
471 | %postun glines | |
472 | %scrollkeeper_update_postun | |
473 | %update_icon_cache hicolor | |
474 | ||
475 | %post gnect | |
476 | %scrollkeeper_update_post | |
477 | %gconf_schema_install gnect.schemas | |
478 | %update_icon_cache hicolor | |
479 | ||
480 | /usr/bin/ggz-config -i -f -m %{_datadir}/ggz/gnect-client.dsc | |
481 | ||
482 | %preun gnect | |
483 | %gconf_schema_uninstall gnect.schemas | |
484 | ||
485 | if [ "$1" = "0" ]; then | |
486 | /usr/bin/ggz-config -r -m %{_datadir}/ggz/gnect-client.dsc | |
487 | fi | |
488 | ||
489 | %postun gnect | |
490 | %scrollkeeper_update_postun | |
491 | %update_icon_cache hicolor | |
492 | ||
493 | %post gnibbles | |
494 | %scrollkeeper_update_post | |
495 | %gconf_schema_install gnibbles.schemas | |
496 | %update_icon_cache hicolor | |
497 | ||
498 | for i in gnibbles.1.0 gnibbles.1.1 gnibbles.2.0 gnibbles.2.1 gnibbles.3.0 \ | |
499 | gnibbles.3.1 gnibbles.4.0 gnibbles.4.1; do | |
500 | if [ ! -f %{_gamesdir}/$i.scores ]; then | |
501 | touch %{_gamesdir}/$i.scores | |
502 | chown root:games %{_gamesdir}/$i.scores | |
503 | chmod 664 %{_gamesdir}/$i.scores | |
504 | fi | |
505 | done | |
506 | ||
507 | /usr/bin/ggz-config -i -f -m %{_datadir}/ggz/gnibbles-client.dsc | |
508 | ||
509 | %preun gnibbles | |
510 | %gconf_schema_uninstall gnibbles.schemas | |
511 | ||
512 | if [ "$1" = "0" ]; then | |
513 | /usr/bin/ggz-config -r -m %{_datadir}/ggz/gnibbles-client.dsc | |
514 | fi | |
515 | ||
516 | %postun gnibbles | |
517 | %scrollkeeper_update_postun | |
518 | %update_icon_cache hicolor | |
519 | ||
520 | %post gnobots2 | |
521 | %scrollkeeper_update_post | |
522 | %gconf_schema_install gnobots2.schemas | |
523 | %update_icon_cache hicolor | |
524 | ||
525 | for i in gnobots2.classic_robots-safe gnobots2.classic_robots \ | |
526 | gnobots2.classic_robots-super-safe gnobots2.nightmare-safe \ | |
527 | gnobots2.nightmare gnobots2.nightmare-super-safe \ | |
528 | gnobots2.robots2_easy-safe gnobots2.robots2_easy \ | |
529 | gnobots2.robots2_easy-super-safe gnobots2.robots2-safe \ | |
530 | gnobots2.robots2 gnobots2.robots2-super-safe \ | |
531 | gnobots2.robots_with_safe_teleport-safe \ | |
532 | gnobots2.robots_with_safe_teleport \ | |
533 | gnobots2.robots_with_safe_teleport-super-safe; do | |
534 | if [ ! -f %{_gamesdir}/$i.scores ]; then | |
535 | touch %{_gamesdir}/$i.scores | |
536 | chown root:games %{_gamesdir}/$i.scores | |
537 | chmod 664 %{_gamesdir}/$i.scores | |
538 | fi | |
539 | done | |
540 | ||
541 | %preun gnobots2 | |
542 | %gconf_schema_uninstall gnobots2.schemas | |
543 | ||
544 | %postun gnobots2 | |
545 | %scrollkeeper_update_postun | |
546 | %update_icon_cache hicolor | |
547 | ||
548 | %post gnometris | |
549 | %scrollkeeper_update_post | |
550 | %gconf_schema_install gnometris.schemas | |
551 | %update_icon_cache hicolor | |
552 | ||
553 | if [ ! -f %{_gamesdir}/gnometris.scores ]; then | |
554 | touch %{_gamesdir}/gnometris.scores | |
555 | chown root:games %{_gamesdir}/gnometris.scores | |
556 | chmod 664 %{_gamesdir}/gnometris.scores | |
557 | fi | |
558 | ||
559 | %preun gnometris | |
560 | %gconf_schema_uninstall gnometris.schemas | |
561 | ||
562 | %postun gnometris | |
563 | %scrollkeeper_update_postun | |
564 | %update_icon_cache hicolor | |
565 | ||
566 | %post gnomine | |
567 | %scrollkeeper_update_post | |
568 | %gconf_schema_install gnomine.schemas | |
569 | %update_icon_cache hicolor | |
570 | ||
571 | for i in gnomine.Custom gnomine.Large gnomine.Medium gnomine.Small; do | |
572 | if [ ! -f %{_gamesdir}/$i.scores ]; then | |
573 | touch %{_gamesdir}/$i.scores | |
574 | chown root:games %{_gamesdir}/$i.scores | |
575 | chmod 664 %{_gamesdir}/$i.scores | |
576 | fi | |
577 | done | |
578 | ||
579 | %preun gnomine | |
580 | %gconf_schema_uninstall gnomine.schemas | |
581 | ||
582 | %postun gnomine | |
583 | %scrollkeeper_update_postun | |
584 | %update_icon_cache hicolor | |
585 | ||
586 | %post gnotravex | |
587 | %scrollkeeper_update_post | |
588 | %gconf_schema_install gnotravex.schemas | |
589 | %update_icon_cache hicolor | |
590 | ||
591 | for i in gnotravex.2x2 gnotravex.3x3 gnotravex.4x4 gnotravex.5x5 \ | |
592 | gnotravex.6x6; do | |
593 | if [ ! -f %{_gamesdir}/$i.scores ]; then | |
594 | touch %{_gamesdir}/$i.scores | |
595 | chown root:games %{_gamesdir}/$i.scores | |
596 | chmod 664 %{_gamesdir}/$i.scores | |
597 | fi | |
598 | done | |
599 | ||
600 | %preun gnotravex | |
601 | %gconf_schema_uninstall gnotravex.schemas | |
602 | ||
603 | %postun gnotravex | |
604 | %scrollkeeper_update_postun | |
605 | %update_icon_cache hicolor | |
606 | ||
607 | %post gnotski | |
608 | %scrollkeeper_update_post | |
609 | %gconf_schema_install gnotski.schemas | |
610 | %update_icon_cache hicolor | |
611 | ||
612 | for i in 1 2 3 4 5 6 7 11 12 13 14 15 16 17 21 22 23 24 25 26; do | |
613 | if [ ! -f %{_gamesdir}/gnotski.$i.scores ]; then | |
614 | touch %{_gamesdir}/gnotski.$i.scores | |
615 | chown root:games %{_gamesdir}/gnotski.$i.scores | |
616 | chmod 664 %{_gamesdir}/gnotski.$i.scores | |
617 | fi | |
618 | done | |
619 | ||
620 | %preun gnotski | |
621 | %gconf_schema_uninstall gnotski.schemas | |
622 | ||
623 | %postun gnotski | |
624 | %scrollkeeper_update_postun | |
625 | %update_icon_cache hicolor | |
626 | ||
627 | %post gtali | |
628 | %scrollkeeper_update_post | |
629 | %gconf_schema_install gtali.schemas | |
630 | %update_icon_cache hicolor | |
631 | ||
632 | if [ ! -f %{_gamesdir}/gtali.scores ]; then | |
633 | touch %{_gamesdir}/gtali.scores | |
634 | chown root:games %{_gamesdir}/gtali.scores | |
635 | chmod 664 %{_gamesdir}/gtali.scores | |
636 | fi | |
637 | ||
638 | %preun gtali | |
639 | %gconf_schema_uninstall gtali.schemas | |
640 | ||
641 | %postun gtali | |
642 | %scrollkeeper_update_postun | |
643 | %update_icon_cache hicolor | |
644 | ||
645 | %post iagno | |
646 | %scrollkeeper_update_post | |
647 | %gconf_schema_install iagno.schemas | |
648 | %update_icon_cache hicolor | |
649 | ||
650 | /usr/bin/ggz-config -i -f -m %{_datadir}/ggz/iagno-client.dsc | |
651 | ||
652 | %preun iagno | |
653 | %gconf_schema_uninstall iagno.schemas | |
654 | ||
655 | if [ "$1" = "0" ]; then | |
656 | /usr/bin/ggz-config -r -m %{_datadir}/ggz/iagno-client.dsc | |
657 | fi | |
658 | ||
659 | %postun iagno | |
660 | %scrollkeeper_update_postun | |
661 | %update_icon_cache hicolor | |
662 | ||
663 | %post mahjongg | |
664 | %scrollkeeper_update_post | |
665 | %gconf_schema_install mahjongg.schemas | |
666 | %update_icon_cache hicolor | |
667 | ||
668 | for i in mahjongg.bridges mahjongg.cloud mahjongg.confounding \ | |
669 | mahjongg.difficult mahjongg.dragon mahjongg.easy \ | |
670 | mahjongg.pyramid mahjongg.tictactoe mahjongg.ziggurat; do | |
671 | if [ ! -f %{_gamesdir}/$i.scores ]; then | |
672 | touch %{_gamesdir}/$i.scores | |
673 | chown root:games %{_gamesdir}/$i.scores | |
674 | chmod 664 %{_gamesdir}/$i.scores | |
675 | fi | |
676 | done | |
677 | ||
678 | %preun mahjongg | |
679 | %gconf_schema_uninstall mahjongg.schemas | |
680 | ||
681 | %postun mahjongg | |
682 | %scrollkeeper_update_postun | |
683 | %update_icon_cache hicolor | |
684 | ||
685 | %post same-gnome | |
686 | %scrollkeeper_update_post | |
687 | %gconf_schema_install same-gnome.schemas | |
688 | %update_icon_cache hicolor | |
689 | ||
690 | if [ ! -f %{_gamesdir}/same-gnome.scores ]; then | |
691 | touch %{_gamesdir}/same-gnome.scores | |
692 | chown root:games %{_gamesdir}/same-gnome.scores | |
693 | chmod 664 %{_gamesdir}/same-gnome.scores | |
694 | fi | |
695 | ||
696 | %preun same-gnome | |
697 | %gconf_schema_uninstall same-gnome.schemas | |
698 | ||
699 | %postun same-gnome | |
700 | %scrollkeeper_update_postun | |
701 | %update_icon_cache hicolor | |
702 | ||
703 | %post sol | |
704 | %scrollkeeper_update_post | |
705 | %gconf_schema_install aisleriot.schemas | |
706 | %update_icon_cache hicolor | |
707 | ||
708 | %preun sol | |
709 | %gconf_schema_uninstall aisleriot.schemas | |
710 | ||
711 | %postun sol | |
712 | %scrollkeeper_update_postun | |
713 | %update_icon_cache hicolor | |
714 | ||
715 | %post sudoku | |
716 | %update_icon_cache hicolor | |
717 | %gconf_schema_install gnome-sudoku.schemas | |
718 | ||
719 | %preun sudoku | |
720 | %gconf_schema_uninstall gnome-sudoku.schemas | |
721 | ||
722 | %postun sudoku | |
723 | %update_icon_cache hicolor | |
724 | ||
725 | %files -f %{name}.lang | |
726 | %defattr(644,root,root,755) | |
727 | %doc AUTHORS ChangeLog NEWS README | |
728 | %dir %{_libdir}/%{name} | |
729 | %attr(755,root,root) %{_libdir}/%{name}/gnome-games-render-cards | |
730 | %dir %{_datadir}/%{name} | |
731 | %{_datadir}/%{name}/icons | |
732 | %{_datadir}/%{name}/sounds | |
733 | %{_datadir}/%{name}/pixmaps | |
734 | %{_datadir}/gnome-games-common | |
735 | %{_datadir}/ggz/gnome-games | |
736 | ||
737 | %files blackjack -f blackjack.lang | |
738 | %defattr(644,root,root,755) | |
739 | %attr(755,root,root) %{_bindir}/blackjack | |
740 | %{_sysconfdir}/gconf/schemas/blackjack.schemas | |
741 | %{_datadir}/%{name}/blackjack | |
742 | %{_desktopdir}/blackjack.desktop | |
743 | %{_iconsdir}/hicolor/*/*/gnome-blackjack.* | |
744 | %{_mandir}/man6/blackjack.6* | |
745 | ||
746 | %files glchess -f glchess.lang | |
747 | %defattr(644,root,root,755) | |
748 | %attr(755,root,root) %{_bindir}/glchess | |
749 | %attr(755,root,root) %{_bindir}/gnome-gnuchess | |
750 | %{_sysconfdir}/gconf/schemas/glchess.schemas | |
751 | %{_desktopdir}/glchess.desktop | |
752 | %{_datadir}/glchess | |
753 | %{py_sitescriptdir}/glchess | |
754 | %{_iconsdir}/hicolor/*/*/gnome-glchess.* | |
755 | %{_mandir}/man6/glchess.6* | |
756 | ||
757 | %files glines -f glines.lang | |
758 | %defattr(644,root,root,755) | |
759 | %attr(2755,root,games) %{_bindir}/glines | |
760 | %{_sysconfdir}/gconf/schemas/glines.schemas | |
761 | %{_datadir}/%{name}/glines | |
762 | %{_desktopdir}/glines.desktop | |
763 | %{_iconsdir}/hicolor/*/*/gnome-glines.* | |
764 | %attr(664,root,games) %ghost %{_localstatedir}/games/glines.* | |
765 | %{_mandir}/man6/glines.6* | |
766 | ||
767 | %files gnect -f gnect.lang | |
768 | %defattr(644,root,root,755) | |
769 | %attr(755,root,games) %{_bindir}/gnect | |
770 | %{_sysconfdir}/gconf/schemas/gnect.schemas | |
771 | %{_datadir}/%{name}/gnect | |
772 | %{_datadir}/ggz/gnect-client.dsc | |
773 | %{_desktopdir}/gnect.desktop | |
774 | %{_iconsdir}/hicolor/*/*/gnome-gnect.* | |
775 | %{_mandir}/man6/gnect.6* | |
776 | ||
777 | %files gnibbles -f gnibbles.lang | |
778 | %defattr(644,root,root,755) | |
779 | %attr(2755,root,games) %{_bindir}/gnibbles | |
780 | %{_sysconfdir}/gconf/schemas/gnibbles.schemas | |
781 | %{_datadir}/%{name}/gnibbles | |
782 | %{_datadir}/ggz/gnibbles-client.dsc | |
783 | %{_desktopdir}/gnibbles.desktop | |
784 | %{_iconsdir}/hicolor/*/*/gnome-gnibbles.* | |
785 | %attr(664,root,games) %ghost %{_localstatedir}/games/gnibbles.* | |
786 | %{_mandir}/man6/gnibbles.6* | |
787 | ||
788 | %files gnobots2 -f gnobots2.lang | |
789 | %defattr(644,root,root,755) | |
790 | %attr(2755,root,games) %{_bindir}/gnobots2 | |
791 | %{_sysconfdir}/gconf/schemas/gnobots2.schemas | |
792 | %{_datadir}/%{name}/gnobots2 | |
793 | %{_desktopdir}/gnobots2.desktop | |
794 | %{_iconsdir}/hicolor/*/*/gnome-robots.* | |
795 | %attr(664,root,games) %ghost %{_localstatedir}/games/gnobots2.* | |
796 | %{_mandir}/man6/gnobots2.6* | |
797 | ||
798 | %files gnometris -f gnometris.lang | |
799 | %defattr(644,root,root,755) | |
800 | %attr(2755,root,games) %{_bindir}/gnometris | |
801 | %{_sysconfdir}/gconf/schemas/gnometris.schemas | |
802 | %{_datadir}/%{name}/gnometris | |
803 | %{_desktopdir}/gnometris.desktop | |
804 | %{_iconsdir}/hicolor/*/*/gnome-gnometris.* | |
805 | %attr(664,root,games) %ghost %{_localstatedir}/games/gnometris.* | |
806 | %{_mandir}/man6/gnometris.6* | |
807 | ||
808 | %files gnomine -f gnomine.lang | |
809 | %defattr(644,root,root,755) | |
810 | %attr(2755,root,games) %{_bindir}/gnomine | |
811 | %{_sysconfdir}/gconf/schemas/gnomine.schemas | |
812 | %{_datadir}/%{name}/gnomine | |
813 | %{_desktopdir}/gnomine.desktop | |
814 | %{_iconsdir}/hicolor/*/*/gnome-mines.* | |
815 | %attr(664,root,games) %ghost %{_localstatedir}/games/gnomine.* | |
816 | %{_mandir}/man6/gnomine.6* | |
817 | ||
818 | %files gnotravex -f gnotravex.lang | |
819 | %defattr(644,root,root,755) | |
820 | %attr(2755,root,games) %{_bindir}/gnotravex | |
821 | %{_sysconfdir}/gconf/schemas/gnotravex.schemas | |
822 | %{_desktopdir}/gnotravex.desktop | |
823 | %{_iconsdir}/hicolor/*/*/gnome-tetravex.* | |
824 | %attr(664,root,games) %ghost %{_localstatedir}/games/gnotravex.* | |
825 | %{_mandir}/man6/gnotravex.6* | |
826 | ||
827 | %files gnotski -f gnotski.lang | |
828 | %defattr(644,root,root,755) | |
829 | %attr(2755,root,games) %{_bindir}/gnotski | |
830 | %{_sysconfdir}/gconf/schemas/gnotski.schemas | |
831 | %{_desktopdir}/gnotski.desktop | |
832 | %{_datadir}/%{name}/gnotski | |
833 | %{_iconsdir}/hicolor/*/*/gnome-klotski.* | |
834 | %attr(664,root,games) %ghost %{_localstatedir}/games/gnotski.* | |
835 | %{_mandir}/man6/gnotski.6* | |
836 | ||
837 | %files gtali -f gtali.lang | |
838 | %defattr(644,root,root,755) | |
839 | %attr(2755,root,games) %{_bindir}/gtali | |
840 | %{_sysconfdir}/gconf/schemas/gtali.schemas | |
841 | %{_datadir}/%{name}/gtali | |
842 | %{_desktopdir}/gtali.desktop | |
843 | %{_iconsdir}/hicolor/*/*/gnome-tali.* | |
844 | %attr(664,root,games) %ghost %{_localstatedir}/games/gtali.* | |
845 | %{_mandir}/man6/gtali.6* | |
846 | ||
847 | %files iagno -f iagno.lang | |
848 | %defattr(644,root,root,755) | |
849 | %attr(755,root,root) %{_bindir}/iagno | |
850 | %{_sysconfdir}/gconf/schemas/iagno.schemas | |
851 | %{_datadir}/%{name}/iagno | |
852 | %{_datadir}/ggz/iagno-client.dsc | |
853 | %{_desktopdir}/iagno.desktop | |
854 | %{_iconsdir}/hicolor/*/*/gnome-iagno.* | |
855 | %{_mandir}/man6/iagno.6* | |
856 | ||
857 | %files mahjongg -f mahjongg.lang | |
858 | %defattr(644,root,root,755) | |
859 | %attr(2755,root,games) %{_bindir}/mahjongg | |
860 | %{_sysconfdir}/gconf/schemas/mahjongg.schemas | |
861 | %{_desktopdir}/mahjongg.desktop | |
862 | %{_iconsdir}/hicolor/*/*/gnome-mahjongg.png | |
863 | %{_iconsdir}/hicolor/*/*/gnome-mahjongg.svg | |
864 | %{_datadir}/%{name}/mahjongg | |
865 | %attr(664,root,games) %ghost %{_localstatedir}/games/mahjongg.* | |
866 | %{_mandir}/man6/mahjongg.6* | |
867 | ||
868 | %files same-gnome -f same-gnome.lang | |
869 | %defattr(644,root,root,755) | |
870 | %attr(2755,root,games) %{_bindir}/same-gnome | |
871 | %{_sysconfdir}/gconf/schemas/same-gnome.schemas | |
872 | %{_desktopdir}/same-gnome.desktop | |
873 | %{_datadir}/%{name}/same-gnome | |
874 | %{_iconsdir}/hicolor/*/*/gnome-samegnome.* | |
875 | %attr(664,root,games) %ghost %{_localstatedir}/games/same-gnome.* | |
876 | %{_mandir}/man6/same-gnome.6* | |
877 | ||
878 | %files sol -f aisleriot.lang | |
879 | %defattr(644,root,root,755) | |
880 | %attr(755,root,games) %{_bindir}/sol | |
881 | %{_sysconfdir}/gconf/schemas/aisleriot.schemas | |
882 | %{_datadir}/%{name}/aisleriot | |
883 | %{_desktopdir}/freecell.desktop | |
884 | %{_desktopdir}/sol.desktop | |
885 | %{_iconsdir}/hicolor/*/*/gnome-aisleriot.* | |
886 | %{_iconsdir}/hicolor/*/*/gnome-freecell.* | |
887 | %{_mandir}/man6/sol.6* | |
888 | ||
889 | %files sudoku -f gnome-sudoku.lang | |
890 | %defattr(644,root,root,755) | |
891 | %attr(755,root,root) %{_bindir}/gnome-sudoku | |
892 | %{_desktopdir}/gnome-sudoku.desktop | |
893 | %dir %{py_sitescriptdir}/gnome_sudoku | |
894 | %{py_sitescriptdir}/gnome_sudoku/*.py[co] | |
895 | %dir %{py_sitescriptdir}/gnome_sudoku/gtk_goodies | |
896 | %{py_sitescriptdir}/gnome_sudoku/gtk_goodies/*.py[co] | |
897 | %{_datadir}/gnome-sudoku | |
898 | %{_iconsdir}/hicolor/*/*/gnome-sudoku.* | |
899 | %{_sysconfdir}/gconf/schemas/gnome-sudoku.schemas | |
900 | %{_mandir}/man6/gnome-sudoku.6* | |
901 | ||
902 | %files servers | |
903 | %defattr(644,root,root,755) | |
904 | %attr(755,root,root) %{_libdir}/ggz/gnectd | |
905 | %attr(755,root,root) %{_libdir}/ggz/gnibblesd | |
906 | %attr(755,root,root) %{_libdir}/ggz/iagnod | |
907 | %{_sysconfdir}/ggzd/games/gnect-server.dsc | |
908 | %{_sysconfdir}/ggzd/games/gnibbles-server.dsc | |
909 | %{_sysconfdir}/ggzd/games/iagno-server.dsc | |
910 | %{_sysconfdir}/ggzd/rooms/gnect.room | |
911 | %{_sysconfdir}/ggzd/rooms/gnibbles.room | |
912 | %{_sysconfdir}/ggzd/rooms/iagno.room |