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