]> git.pld-linux.org Git - packages/gnome-games.git/commitdiff
- create /var/games/*.scores files in %%post auto/ac/gnome-games-2_6_2-2
authorgrzegol <grzegol@pld-linux.org>
Fri, 16 Jul 2004 11:12:08 +0000 (11:12 +0000)
committercvs2git <feedback@pld-linux.org>
Sun, 24 Jun 2012 12:13:13 +0000 (12:13 +0000)
- SGID for gnibbles and gnobots2 binaries (they need access to scores files)
- rel. 2

Changed files:
    gnome-games.spec -> 1.127

gnome-games.spec

index 05f31b0edeb26797a08bcde9b34a3dbd8172f0dc..71ba0a956de88fd620a47c51ec48dfbea5c70b95 100644 (file)
@@ -7,7 +7,7 @@ Summary(uk):    
 Summary(wa):   Djeus po GNOME
 Name:          gnome-games
 Version:       2.6.2
-Release:       1
+Release:       2
 Epoch:         1
 License:       LGPL
 Group:         X11/Applications/Games
@@ -35,6 +35,7 @@ BuildRequires:        libtool
 BuildRequires: scrollkeeper >= 0.3.8
 BuildRequires: rpm-build >= 4.1-10
 Requires(post):        GConf2
+Requires(post):        coreutils
 Requires(post,postun): /sbin/ldconfig
 Requires(post,postun): scrollkeeper
 Requires:      gnome-vfs2 >= 2.6.1.1
@@ -44,6 +45,7 @@ Obsoletes:    gnome
 BuildRoot:     %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
 
 %define                _localstatedir  /var
+%define                __gamesdir      %{_localstatedir}/games
 
 %description
 GNOME games.
@@ -140,6 +142,39 @@ rm -rf $RPM_BUILD_ROOT
 /usr/bin/scrollkeeper-update
 %gconf_schema_install
 
+for i in glines.scores gnibbles.1.0.scores gnibbles.1.1.scores \
+       gnibbles.2.0.scores gnibbles.2.1.scores gnibbles.3.0.scores \
+       gnibbles.3.1.scores gnibbles.4.0.scores gnibbles.4.1.scores \
+       gnobots2.classic_robots-safe.scores \
+       gnobots2.classic_robots-super-safe.scores \
+       gnobots2.classic_robots.scores gnobots2.nightmare-safe.scores \
+       gnobots2.nightmare-super-safe.scores gnobots2.nightmare.scores \
+       gnobots2.robots2-safe.scores gnobots2.robots2-super-safe.scores \
+       gnobots2.robots2.scores gnobots2.robots2_easy-safe.scores \
+       gnobots2.robots2_easy-super-safe.scores gnobots2.robots2_easy.scores \
+       gnobots2.robots_with_safe_teleport-safe.scores \
+       gnobots2.robots_with_safe_teleport-super-safe.scores \
+       gnobots2.robots_with_safe_teleport.scores gnome-stones.scores \
+       gnometris.scores gnomine.Custom.scores gnomine.Large.scores \
+       gnomine.Medium.scores gnomine.Small.scores gnotravex.2x2.scores \
+       gnotravex.3x3.scores gnotravex.4x4.scores gnotravex.5x5.scores \
+       gnotravex.6x6.scores gnotski.1.scores gnotski.11.scores \
+       gnotski.12.scores gnotski.13.scores gnotski.14.scores \
+       gnotski.15.scores gnotski.16.scores gnotski.17.scores gnotski.2.scores \
+       gnotski.21.scores gnotski.22.scores gnotski.23.scores \
+       gnotski.24.scores gnotski.25.scores gnotski.26.scores gnotski.3.scores \
+       gnotski.4.scores gnotski.5.scores gnotski.6.scores gnotski.7.scores \
+       gtali.scores mahjongg.bridges.scores mahjongg.cloud.scores \
+       mahjongg.confounding.scores mahjongg.difficult.scores \
+       mahjongg.dragon.scores mahjongg.easy.scores mahjongg.pyramid.scores \
+       mahjongg.tictactoe.scores same-gnome.scores; do
+       if [ ! -f %{_gamesdir}/$i.scores ]; then
+               touch %{_gamesdir}/$i.scores
+               chown root:games %{_gamesdir}/$i.scores
+               chmod 664 %{_gamesdir}/$i.scores
+       fi
+done
+
 %postun
 /sbin/ldconfig
 /usr/bin/scrollkeeper-update
@@ -153,10 +188,10 @@ rm -rf $RPM_BUILD_ROOT
 %attr(755,root,root) %{_bindir}/gataxx
 %attr(755,root,root) %{_bindir}/sol
 %attr(755,root,root) %{_bindir}/gnect
-%attr(755,root,root) %{_bindir}/gnibbles
-%attr(755,root,root) %{_bindir}/gnobots2
 %attr(755,root,root) %{_bindir}/blackjack
 %attr(2755,root,games) %{_bindir}/glines
+%attr(2755,root,games) %{_bindir}/gnibbles
+%attr(2755,root,games) %{_bindir}/gnobots2
 %attr(2755,root,games) %{_bindir}/gnome-stones
 %attr(2755,root,games) %{_bindir}/gnometris
 %attr(2755,root,games) %{_bindir}/gnomine
This page took 0.117701 seconds and 4 git commands to generate.