SPECS: gnome-breakout.spec - score file fix

ankry ankry at pld-linux.org
Sat Oct 15 01:11:54 CEST 2005


Author: ankry                        Date: Fri Oct 14 23:11:54 2005 GMT
Module: SPECS                         Tag: HEAD
---- Log message:
- score file fix

---- Files affected:
SPECS:
   gnome-breakout.spec (1.22 -> 1.23) 

---- Diffs:

================================================================
Index: SPECS/gnome-breakout.spec
diff -u SPECS/gnome-breakout.spec:1.22 SPECS/gnome-breakout.spec:1.23
--- SPECS/gnome-breakout.spec:1.22	Thu Dec  2 13:42:49 2004
+++ SPECS/gnome-breakout.spec	Sat Oct 15 01:11:49 2005
@@ -3,7 +3,7 @@
 Summary(pl):	GNOME klon klasycznej gry Breakout
 Name:		gnome-breakout
 Version:	0.5.2
-Release:	5
+Release:	6
 License:	GPL
 Group:		X11/Applications/Games
 Source0:	http://users.senet.com.au/~alcaron/%{name}-%{version}.tar.gz
@@ -18,6 +18,8 @@
 BuildRequires:	imlib-devel
 BuildRoot:	%{tmpdir}/%{name}-%{version}-root-%(id -u -n)
 
+%define		_gamesdir	/var/games
+
 %description
 GNOME clone of Breakout the classic arcade game.
 
@@ -52,11 +54,19 @@
 %clean
 rm -rf $RPM_BUILD_ROOT
 
+%post
+if [ ! -f %{_gamesdir}/%{name}.scores ]; then
+	touch %{_gamesdir}/%{name}.scores
+	chown root:games %{_gamesdir}/%{name}.scores
+	chmod 664 %{_gamesdir}/%{name}.scores
+fi
+
 %files -f %{name}.lang
 %defattr(644,root,root,755)
 %doc AUTHORS ChangeLog NEWS README TODO
-%attr(755,root,root) %{_bindir}/gnome-breakout
+%attr(2755,root,games) %{_bindir}/gnome-breakout
 %{_datadir}/gnome-breakout
+%ghost %{_gamesdir}/gnome-breakout.scores
 %{_pixmapsdir}/gnome-breakout.png
 %{_desktopdir}/gnome-breakout.desktop
 
@@ -66,6 +76,9 @@
 All persons listed below can be reached at <cvs_login>@pld-linux.org
 
 $Log$
+Revision 1.23  2005/10/14 23:11:49  ankry
+- score file fix
+
 Revision 1.22  2004/12/02 12:42:49  paladine
 - added desktop patch
 - sorted BRs
================================================================

---- CVS-web:
    http://cvs.pld-linux.org/SPECS/gnome-breakout.spec?r1=1.22&r2=1.23&f=u




More information about the pld-cvs-commit mailing list