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