SPECS: atheme.spec - BR for %service - do not stop service on upgr...

glen glen at pld-linux.org
Tue Apr 24 09:53:39 CEST 2007


Author: glen                         Date: Tue Apr 24 07:53:39 2007 GMT
Module: SPECS                         Tag: HEAD
---- Log message:
- BR for %service
- do not stop service on upgrades

---- Files affected:
SPECS:
   atheme.spec (1.2 -> 1.3) 

---- Diffs:

================================================================
Index: SPECS/atheme.spec
diff -u SPECS/atheme.spec:1.2 SPECS/atheme.spec:1.3
--- SPECS/atheme.spec:1.2	Tue Apr 24 02:20:43 2007
+++ SPECS/atheme.spec	Tue Apr 24 09:53:33 2007
@@ -13,7 +13,7 @@
 URL:		http://www.atheme.net/
 BuildRequires:	autoconf
 BuildRequires:	automake
-BuildRequires:	rpmbuild(macros) >= 1.202
+BuildRequires:	rpmbuild(macros) >= 1.268
 BuildRequires:	zlib-devel
 Requires(post,preun):	/sbin/chkconfig
 Requires(postun):	/usr/sbin/groupdel
@@ -77,8 +77,10 @@
 %service %{name} restart "Atheme IRC Services"
 
 %preun
-%service %{name} stop "Atheme IRC Services"
-/sbin/chkconfig --del atheme
+if [ "$1" = 0 ]; then
+	%service %{name} stop
+	/sbin/chkconfig --del atheme
+fi
 
 %postun
 if [ "$1" = "0" ]; then
@@ -143,9 +145,12 @@
 All persons listed below can be reached at <cvs_login>@pld-linux.org
 
 $Log$
+Revision 1.3  2007/04/24 07:53:33  glen
+- BR for %service
+- do not stop service on upgrades
+
 Revision 1.2  2007/04/24 00:20:43  aredridel
 - use %service
 
 Revision 1.1  2007/04/24 00:18:49  aredridel
 - added
-
================================================================

---- CVS-web:
    http://cvs.pld-linux.org/SPECS/atheme.spec?r1=1.2&r2=1.3&f=u



More information about the pld-cvs-commit mailing list