SPECS: crossfire.spec - use %service

glen glen at pld-linux.org
Thu Apr 20 20:05:30 CEST 2006


Author: glen                         Date: Thu Apr 20 18:05:30 2006 GMT
Module: SPECS                         Tag: HEAD
---- Log message:
- use %service

---- Files affected:
SPECS:
   crossfire.spec (1.35 -> 1.36) 

---- Diffs:

================================================================
Index: SPECS/crossfire.spec
diff -u SPECS/crossfire.spec:1.35 SPECS/crossfire.spec:1.36
--- SPECS/crossfire.spec:1.35	Mon Dec 12 16:19:32 2005
+++ SPECS/crossfire.spec	Thu Apr 20 20:05:25 2006
@@ -4,8 +4,8 @@
 Name:		crossfire
 Version:	1.6.0
 Release:	2
-Group:		Applications/Games
 License:	GPL
+Group:		Applications/Games
 Source0:	http://dl.sourceforge.net/crossfire/%{name}-%{version}.tar.gz
 # Source0-md5:	cac617806c2430821f8bd918726a66e1
 Source1:	%{name}.init
@@ -18,8 +18,10 @@
 BuildRequires:	automake
 BuildRequires:	libtool
 BuildRequires:	python-devel >= 1:2.3
+BuildRequires:	rpmbuild(macros) >= 1.268
 Requires(post,preun):	/sbin/chkconfig
 Requires:	crossfire-maps
+Requires:	rc-scripts
 %pyrequires_eq  python
 BuildRoot:	%{tmpdir}/%{name}-%{version}-root-%(id -u -n)
 
@@ -109,17 +111,11 @@
 
 %post
 /sbin/chkconfig --add crossfire
-if [ -r /var/lock/subsys/crossfire ]; then
-	/etc/rc.d/init.d/crossfire restart >&2
-else
-	echo "Run \"/etc/rc.d/init.d/crossfire start\" to start Crossfire server."
-fi
+%service crossfire restart "Crossfire server"
 
 %preun
 if [ "$1" = "0" ]; then
-	if [ -r /var/lock/subsys/crossfire ]; then
-		/etc/rc.d/init.d/crossfire stop >&2
-	fi
+	%service crossfire stop
 	/sbin/chkconfig --del crossfire
 fi
 
@@ -178,6 +174,9 @@
 All persons listed below can be reached at <cvs_login>@pld-linux.org
 
 $Log$
+Revision 1.36  2006/04/20 18:05:25  glen
+- use %service
+
 Revision 1.35  2005/12/12 15:19:32  glen
 - adapterized (sorted %verify flags)
 
================================================================

---- CVS-web:
    http://cvs.pld-linux.org/SPECS/crossfire.spec?r1=1.35&r2=1.36&f=u



More information about the pld-cvs-commit mailing list