]> git.pld-linux.org Git - packages/gnome-games.git/blob - gnome-games.spec
- don't fail to build when /etc/ggzd/rooms doesn't exist
[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.22.1
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.22/%{name}-%{version}.tar.bz2
15 # Source0-md5:  41b0261d636e667be44f4fdc5d42bc1d
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 sed -i -e 's#sr@Latn#sr@latin#' po/LINGUAS
369 mv -f po/sr@{Latn,latin}.po
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         --with-sound=gstreamer \
382         --disable-scrollkeeper \
383         --disable-schemas-install \
384         --disable-static
385
386 %{__make}
387
388 %install
389 rm -rf $RPM_BUILD_ROOT
390 install -d $RPM_BUILD_ROOT%{_datadir}/ggz
391
392 %{__make} install \
393         DESTDIR=$RPM_BUILD_ROOT \
394         ggzserver_dscdir=%{_sysconfdir}/ggzd/games \
395         ggzroomdir=%{_sysconfdir}/ggzd/rooms
396
397 install gnect/data/gnect-client.dsc $RPM_BUILD_ROOT%{_datadir}/ggz
398 install gnibbles/gnibbles-client.dsc $RPM_BUILD_ROOT%{_datadir}/ggz
399 install iagno/iagno-client.dsc $RPM_BUILD_ROOT%{_datadir}/ggz
400
401 rm -f $RPM_BUILD_ROOT%{_sysconfdir}/ggz.modules
402
403 %py_postclean
404
405 %find_lang %{name} --all-name
406 %find_lang gnect --with-gnome --with-omf
407 %find_lang gnomine --with-gnome --with-omf
408 %find_lang same-gnome --with-gnome --with-omf
409 %find_lang mahjongg --with-gnome --with-omf
410 %find_lang glchess --with-gnome --with-omf
411 %find_lang gtali --with-gnome --with-omf
412 %find_lang gnome-sudoku --with-gnome --with-omf
413 %find_lang gnotravex --with-gnome --with-omf
414 %find_lang gnotski --with-gnome --with-omf
415 %find_lang glines --with-gnome --with-omf
416 %find_lang iagno --with-gnome --with-omf
417 %find_lang gnobots2 --with-gnome --with-omf
418 %find_lang gnibbles --with-gnome --with-omf
419 %find_lang gnometris --with-gnome --with-omf
420 %find_lang blackjack --with-gnome --with-omf
421 %find_lang aisleriot --with-gnome --with-omf
422
423 %clean
424 rm -rf $RPM_BUILD_ROOT
425
426 %post blackjack
427 %scrollkeeper_update_post
428 %gconf_schema_install blackjack.schemas
429 %update_icon_cache hicolor
430
431 %preun blackjack
432 %gconf_schema_uninstall blackjack.schemas
433
434 %postun blackjack
435 %scrollkeeper_update_postun
436 %update_icon_cache hicolor
437
438 %post glchess
439 %gconf_schema_install glchess.schemas
440 %update_desktop_database_post
441 %scrollkeeper_update_post
442
443 %preun glchess
444 %gconf_schema_uninstall glchess.schemas
445
446 %postun glchess
447 %update_desktop_database_postun
448 %scrollkeeper_update_postun
449
450 %post glines
451 %scrollkeeper_update_post
452 %gconf_schema_install glines.schemas
453 %update_icon_cache hicolor
454
455 if [ ! -f %{_gamesdir}/glines.scores ]; then
456         touch %{_gamesdir}/glines.scores
457         chown root:games %{_gamesdir}/glines.scores
458         chmod 664 %{_gamesdir}/glines.scores
459 fi
460
461 %preun glines
462 %gconf_schema_uninstall glines.schemas
463
464 %postun glines
465 %scrollkeeper_update_postun
466 %update_icon_cache hicolor
467
468 %post gnect
469 %scrollkeeper_update_post
470 %gconf_schema_install gnect.schemas
471 %update_icon_cache hicolor
472
473 /usr/bin/ggz-config -i -f -m %{_datadir}/ggz/gnect-client.dsc
474
475 %preun gnect
476 %gconf_schema_uninstall gnect.schemas
477
478 if [ "$1" = "0" ]; then
479         /usr/bin/ggz-config -r -m %{_datadir}/ggz/gnect-client.dsc
480 fi
481
482 %postun gnect
483 %scrollkeeper_update_postun
484 %update_icon_cache hicolor
485
486 %post gnibbles
487 %scrollkeeper_update_post
488 %gconf_schema_install gnibbles.schemas
489 %update_icon_cache hicolor
490
491 for i in gnibbles.1.0 gnibbles.1.1 gnibbles.2.0 gnibbles.2.1 gnibbles.3.0 \
492         gnibbles.3.1 gnibbles.4.0 gnibbles.4.1; do
493         if [ ! -f %{_gamesdir}/$i.scores ]; then
494                 touch %{_gamesdir}/$i.scores
495                 chown root:games %{_gamesdir}/$i.scores
496                 chmod 664 %{_gamesdir}/$i.scores
497         fi
498 done
499
500 /usr/bin/ggz-config -i -f -m %{_datadir}/ggz/gnibbles-client.dsc
501
502 %preun gnibbles
503 %gconf_schema_uninstall gnibbles.schemas
504
505 if [ "$1" = "0" ]; then
506         /usr/bin/ggz-config -r -m %{_datadir}/ggz/gnibbles-client.dsc
507 fi
508
509 %postun gnibbles
510 %scrollkeeper_update_postun
511 %update_icon_cache hicolor
512
513 %post gnobots2
514 %scrollkeeper_update_post
515 %gconf_schema_install gnobots2.schemas
516 %update_icon_cache hicolor
517
518 for i in gnobots2.classic_robots-safe gnobots2.classic_robots \
519         gnobots2.classic_robots-super-safe gnobots2.nightmare-safe \
520         gnobots2.nightmare gnobots2.nightmare-super-safe \
521         gnobots2.robots2_easy-safe gnobots2.robots2_easy \
522         gnobots2.robots2_easy-super-safe gnobots2.robots2-safe \
523         gnobots2.robots2 gnobots2.robots2-super-safe \
524         gnobots2.robots_with_safe_teleport-safe \
525         gnobots2.robots_with_safe_teleport \
526         gnobots2.robots_with_safe_teleport-super-safe; do
527         if [ ! -f %{_gamesdir}/$i.scores ]; then
528                 touch %{_gamesdir}/$i.scores
529                 chown root:games %{_gamesdir}/$i.scores
530                 chmod 664 %{_gamesdir}/$i.scores
531         fi
532 done
533
534 %preun gnobots2
535 %gconf_schema_uninstall gnobots2.schemas
536
537 %postun gnobots2
538 %scrollkeeper_update_postun
539 %update_icon_cache hicolor
540
541 %post gnometris
542 %scrollkeeper_update_post
543 %gconf_schema_install gnometris.schemas
544 %update_icon_cache hicolor
545
546 if [ ! -f %{_gamesdir}/gnometris.scores ]; then
547         touch %{_gamesdir}/gnometris.scores
548         chown root:games %{_gamesdir}/gnometris.scores
549         chmod 664 %{_gamesdir}/gnometris.scores
550 fi
551
552 %preun gnometris
553 %gconf_schema_uninstall gnometris.schemas
554
555 %postun gnometris
556 %scrollkeeper_update_postun
557 %update_icon_cache hicolor
558
559 %post gnomine
560 %scrollkeeper_update_post
561 %gconf_schema_install gnomine.schemas
562 %update_icon_cache hicolor
563
564 for i in gnomine.Custom gnomine.Large gnomine.Medium gnomine.Small; do
565         if [ ! -f %{_gamesdir}/$i.scores ]; then
566                 touch %{_gamesdir}/$i.scores
567                 chown root:games %{_gamesdir}/$i.scores
568                 chmod 664 %{_gamesdir}/$i.scores
569         fi
570 done
571
572 %preun gnomine
573 %gconf_schema_uninstall gnomine.schemas
574
575 %postun gnomine
576 %scrollkeeper_update_postun
577 %update_icon_cache hicolor
578
579 %post gnotravex
580 %scrollkeeper_update_post
581 %gconf_schema_install gnotravex.schemas
582 %update_icon_cache hicolor
583
584 for i in gnotravex.2x2 gnotravex.3x3 gnotravex.4x4 gnotravex.5x5 \
585         gnotravex.6x6; do
586         if [ ! -f %{_gamesdir}/$i.scores ]; then
587                 touch %{_gamesdir}/$i.scores
588                 chown root:games %{_gamesdir}/$i.scores
589                 chmod 664 %{_gamesdir}/$i.scores
590         fi
591 done
592
593 %preun gnotravex
594 %gconf_schema_uninstall gnotravex.schemas
595
596 %postun gnotravex
597 %scrollkeeper_update_postun
598 %update_icon_cache hicolor
599
600 %post gnotski
601 %scrollkeeper_update_post
602 %gconf_schema_install gnotski.schemas
603 %update_icon_cache hicolor
604
605 for i in 1 2 3 4 5 6 7 11 12 13 14 15 16 17 21 22 23 24 25 26; do
606         if [ ! -f %{_gamesdir}/gnotski.$i.scores ]; then
607         touch %{_gamesdir}/gnotski.$i.scores
608         chown root:games %{_gamesdir}/gnotski.$i.scores
609         chmod 664 %{_gamesdir}/gnotski.$i.scores
610         fi
611 done
612
613 %preun gnotski
614 %gconf_schema_uninstall gnotski.schemas
615
616 %postun gnotski
617 %scrollkeeper_update_postun
618 %update_icon_cache hicolor
619
620 %post gtali
621 %scrollkeeper_update_post
622 %gconf_schema_install gtali.schemas
623 %update_icon_cache hicolor
624
625 if [ ! -f %{_gamesdir}/gtali.scores ]; then
626         touch %{_gamesdir}/gtali.scores
627         chown root:games %{_gamesdir}/gtali.scores
628         chmod 664 %{_gamesdir}/gtali.scores
629 fi
630
631 %preun gtali
632 %gconf_schema_uninstall gtali.schemas
633
634 %postun gtali
635 %scrollkeeper_update_postun
636 %update_icon_cache hicolor
637
638 %post iagno
639 %scrollkeeper_update_post
640 %gconf_schema_install iagno.schemas
641 %update_icon_cache hicolor
642
643 /usr/bin/ggz-config -i -f -m %{_datadir}/ggz/iagno-client.dsc
644
645 %preun iagno
646 %gconf_schema_uninstall iagno.schemas
647
648 if [ "$1" = "0" ]; then
649         /usr/bin/ggz-config -r -m %{_datadir}/ggz/iagno-client.dsc
650 fi
651
652 %postun iagno
653 %scrollkeeper_update_postun
654 %update_icon_cache hicolor
655
656 %post mahjongg
657 %scrollkeeper_update_post
658 %gconf_schema_install mahjongg.schemas
659 %update_icon_cache hicolor
660
661 for i in mahjongg.bridges mahjongg.cloud mahjongg.confounding \
662         mahjongg.difficult mahjongg.dragon mahjongg.easy \
663         mahjongg.pyramid mahjongg.tictactoe mahjongg.ziggurat; do
664         if [ ! -f %{_gamesdir}/$i.scores ]; then
665                 touch %{_gamesdir}/$i.scores
666                 chown root:games %{_gamesdir}/$i.scores
667                 chmod 664 %{_gamesdir}/$i.scores
668         fi
669 done
670
671 %preun mahjongg
672 %gconf_schema_uninstall mahjongg.schemas
673
674 %postun mahjongg
675 %scrollkeeper_update_postun
676 %update_icon_cache hicolor
677
678 %post same-gnome
679 %scrollkeeper_update_post
680 %gconf_schema_install same-gnome.schemas
681 %update_icon_cache hicolor
682
683 if [ ! -f %{_gamesdir}/same-gnome.scores ]; then
684         touch %{_gamesdir}/same-gnome.scores
685         chown root:games %{_gamesdir}/same-gnome.scores
686         chmod 664 %{_gamesdir}/same-gnome.scores
687 fi
688
689 %preun same-gnome
690 %gconf_schema_uninstall same-gnome.schemas
691
692 %postun same-gnome
693 %scrollkeeper_update_postun
694 %update_icon_cache hicolor
695
696 %post sol
697 %scrollkeeper_update_post
698 %gconf_schema_install aisleriot.schemas
699 %update_icon_cache hicolor
700
701 %preun sol
702 %gconf_schema_uninstall aisleriot.schemas
703
704 %postun sol
705 %scrollkeeper_update_postun
706 %update_icon_cache hicolor
707
708 %files -f %{name}.lang
709 %defattr(644,root,root,755)
710 %doc AUTHORS ChangeLog NEWS README
711 %dir %{_libdir}/%{name}
712 %attr(755,root,root) %{_libdir}/%{name}/gnome-games-render-cards
713 %dir %{_datadir}/%{name}
714 %{_datadir}/%{name}/icons
715 %{_datadir}/%{name}/sounds
716 %{_datadir}/%{name}/pixmaps
717 %{_datadir}/gnome-games-common
718 %{_datadir}/ggz/gnome-games
719 %dir %{_omf_dest_dir}/%{name}
720
721 %files blackjack -f blackjack.lang
722 %defattr(644,root,root,755)
723 %attr(755,root,root) %{_bindir}/blackjack
724 %{_sysconfdir}/gconf/schemas/blackjack.schemas
725 %{_datadir}/%{name}/blackjack
726 %{_desktopdir}/blackjack.desktop
727 %{_iconsdir}/hicolor/*/*/gnome-blackjack.*
728
729 %files glchess -f glchess.lang
730 %defattr(644,root,root,755)
731 %attr(755,root,root) %{_bindir}/glchess
732 %attr(755,root,root) %{_bindir}/gnome-gnuchess
733 %{_sysconfdir}/gconf/schemas/glchess.schemas
734 %{_desktopdir}/glchess.desktop
735 %{_datadir}/glchess
736 %{py_sitescriptdir}/glchess
737 %{_pixmapsdir}/glchess
738 %{_iconsdir}/hicolor/*/*/gnome-glchess.*
739
740 %files glines -f glines.lang
741 %defattr(644,root,root,755)
742 %attr(2755,root,games) %{_bindir}/glines
743 %{_sysconfdir}/gconf/schemas/glines.schemas
744 %{_desktopdir}/glines.desktop
745 %{_pixmapsdir}/glines
746 %{_iconsdir}/hicolor/*/*/gnome-glines.*
747 %attr(664,root,games) %ghost %{_localstatedir}/games/glines.*
748
749 %files gnect -f gnect.lang
750 %defattr(644,root,root,755)
751 %attr(755,root,games) %{_bindir}/gnect
752 %{_sysconfdir}/gconf/schemas/gnect.schemas
753 %{_datadir}/gnect
754 %{_datadir}/ggz/gnect-client.dsc
755 %{_desktopdir}/gnect.desktop
756 %{_pixmapsdir}/gnect
757 %{_iconsdir}/hicolor/*/*/gnome-gnect.*
758
759 %files gnibbles -f gnibbles.lang
760 %defattr(644,root,root,755)
761 %attr(2755,root,games) %{_bindir}/gnibbles
762 %{_sysconfdir}/gconf/schemas/gnibbles.schemas
763 %{_datadir}/gnibbles
764 %{_datadir}/ggz/gnibbles-client.dsc
765 %{_desktopdir}/gnibbles.desktop
766 %{_pixmapsdir}/gnibbles
767 %{_iconsdir}/hicolor/*/*/gnome-gnibbles.*
768 %attr(664,root,games) %ghost %{_localstatedir}/games/gnibbles.*
769
770 %files gnobots2 -f gnobots2.lang
771 %defattr(644,root,root,755)
772 %attr(2755,root,games) %{_bindir}/gnobots2
773 %{_sysconfdir}/gconf/schemas/gnobots2.schemas
774 %{_datadir}/gnobots2
775 %{_desktopdir}/gnobots2.desktop
776 %{_pixmapsdir}/gnobots2
777 %{_iconsdir}/hicolor/*/*/gnome-robots.*
778 %attr(664,root,games) %ghost %{_localstatedir}/games/gnobots2.*
779
780 %files gnometris -f gnometris.lang
781 %defattr(644,root,root,755)
782 %attr(2755,root,games) %{_bindir}/gnometris
783 %{_sysconfdir}/gconf/schemas/gnometris.schemas
784 %{_desktopdir}/gnometris.desktop
785 %{_pixmapsdir}/gnometris
786 %{_iconsdir}/hicolor/*/*/gnome-gnometris.*
787 %attr(664,root,games) %ghost %{_localstatedir}/games/gnometris.*
788
789 %files gnomine -f gnomine.lang
790 %defattr(644,root,root,755)
791 %attr(2755,root,games) %{_bindir}/gnomine
792 %{_sysconfdir}/gconf/schemas/gnomine.schemas
793 %{_desktopdir}/gnomine.desktop
794 %{_pixmapsdir}/gnomine
795 %{_iconsdir}/hicolor/*/*/gnome-mines.*
796 %attr(664,root,games) %ghost %{_localstatedir}/games/gnomine.*
797
798 %files gnotravex -f gnotravex.lang
799 %defattr(644,root,root,755)
800 %attr(2755,root,games) %{_bindir}/gnotravex
801 %{_sysconfdir}/gconf/schemas/gnotravex.schemas
802 %{_desktopdir}/gnotravex.desktop
803 %{_pixmapsdir}/gnotravex
804 %{_iconsdir}/hicolor/*/*/gnome-tetravex.*
805 %attr(664,root,games) %ghost %{_localstatedir}/games/gnotravex.*
806
807 %files gnotski -f gnotski.lang
808 %defattr(644,root,root,755)
809 %attr(2755,root,games) %{_bindir}/gnotski
810 %{_sysconfdir}/gconf/schemas/gnotski.schemas
811 %{_desktopdir}/gnotski.desktop
812 %dir %{_datadir}/%{name}/gnotski
813 %{_datadir}/%{name}/gnotski/gnotski.svg
814 %{_iconsdir}/hicolor/*/*/gnome-klotski.*
815 %attr(664,root,games) %ghost %{_localstatedir}/games/gnotski.*
816
817 %files gtali -f gtali.lang
818 %defattr(644,root,root,755)
819 %attr(2755,root,games) %{_bindir}/gtali
820 %{_sysconfdir}/gconf/schemas/gtali.schemas
821 %{_desktopdir}/gtali.desktop
822 %{_pixmapsdir}/gtali
823 %{_iconsdir}/hicolor/*/*/gnome-tali.*
824 %attr(664,root,games) %ghost %{_localstatedir}/games/gtali.*
825
826 %files iagno -f iagno.lang
827 %defattr(644,root,root,755)
828 %attr(755,root,root) %{_bindir}/iagno
829 %{_datadir}/ggz/iagno-client.dsc
830 %{_sysconfdir}/gconf/schemas/iagno.schemas
831 %{_desktopdir}/iagno.desktop
832 %{_iconsdir}/hicolor/*/*/gnome-iagno.*
833 %{_pixmapsdir}/iagno
834
835 %files mahjongg -f mahjongg.lang
836 %defattr(644,root,root,755)
837 %attr(2755,root,games) %{_bindir}/mahjongg
838 %{_sysconfdir}/gconf/schemas/mahjongg.schemas
839 %{_desktopdir}/mahjongg.desktop
840 %{_pixmapsdir}/mahjongg
841 %{_iconsdir}/hicolor/*/*/gnome-mahjongg.png
842 %{_datadir}/%{name}/mahjongg
843 %attr(664,root,games) %ghost %{_localstatedir}/games/mahjongg.*
844
845 %files same-gnome -f same-gnome.lang
846 %defattr(644,root,root,755)
847 %attr(2755,root,games) %{_bindir}/same-gnome
848 %{_sysconfdir}/gconf/schemas/same-gnome.schemas
849 %{_desktopdir}/same-gnome.desktop
850 %{_datadir}/%{name}/same-gnome
851 %{_iconsdir}/hicolor/*/*/gnome-samegnome.*
852 %attr(664,root,games) %ghost %{_localstatedir}/games/same-gnome.*
853
854 %files sol -f aisleriot.lang
855 %defattr(644,root,root,755)
856 %attr(755,root,games) %{_bindir}/sol
857 %{_sysconfdir}/gconf/schemas/aisleriot.schemas
858 %{_datadir}/%{name}/aisleriot
859 %{_desktopdir}/freecell.desktop
860 %{_desktopdir}/sol.desktop
861 %{_iconsdir}/hicolor/*/*/gnome-aisleriot.*
862 %{_iconsdir}/hicolor/*/*/gnome-freecell.*
863
864 %files sudoku -f gnome-sudoku.lang
865 %defattr(644,root,root,755)
866 %attr(755,root,root) %{_bindir}/gnome-sudoku
867 %{_desktopdir}/gnome-sudoku.desktop
868 %dir %{py_sitescriptdir}/gnome_sudoku
869 %{py_sitescriptdir}/gnome_sudoku/*.py[co]
870 %dir %{py_sitescriptdir}/gnome_sudoku/gtk_goodies
871 %{py_sitescriptdir}/gnome_sudoku/gtk_goodies/*.py[co]
872 %{_datadir}/gnome-sudoku
873 %{_pixmapsdir}/gnome-sudoku
874 %{_iconsdir}/hicolor/*/*/gnome-sudoku.*
875
876 %files servers
877 %defattr(644,root,root,755)
878 %attr(755,root,root) %{_libdir}/ggz/gnectd
879 %attr(755,root,root) %{_libdir}/ggz/gnibblesd
880 %attr(755,root,root) %{_libdir}/ggz/iagnod
881 %{_sysconfdir}/ggzd/games/gnect-server.dsc
882 %{_sysconfdir}/ggzd/games/gnibbles-server.dsc
883 %{_sysconfdir}/ggzd/games/iagno-server.dsc
884 %{_sysconfdir}/ggzd/rooms/gnect.room
885 %{_sysconfdir}/ggzd/rooms/gnibbles.room
886 %{_sysconfdir}/ggzd/rooms/iagno.room
This page took 0.1173 seconds and 3 git commands to generate.