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