SPECS: smbwebclient.spec - use %service

glen glen at pld-linux.org
Fri May 19 23:31:53 CEST 2006


Author: glen                         Date: Fri May 19 21:31:53 2006 GMT
Module: SPECS                         Tag: HEAD
---- Log message:
- use %service

---- Files affected:
SPECS:
   smbwebclient.spec (1.40 -> 1.41) 

---- Diffs:

================================================================
Index: SPECS/smbwebclient.spec
diff -u SPECS/smbwebclient.spec:1.40 SPECS/smbwebclient.spec:1.41
--- SPECS/smbwebclient.spec:1.40	Thu Feb  2 16:14:49 2006
+++ SPECS/smbwebclient.spec	Fri May 19 23:31:47 2006
@@ -12,7 +12,7 @@
 Source2:	%{name}-config.php
 Source3:	%{name}-wrapper.php
 URL:		http://smbwebclient.sourceforge.net/
-BuildRequires:	rpmbuild(macros) >= 1.264
+BuildRequires:	rpmbuild(macros) >= 1.268
 Requires:	php >= 3:4.1
 Requires:	samba-client
 Requires:	webapps
@@ -76,16 +76,12 @@
 if [ -L /etc/apache/conf.d/99_%{name}.conf ]; then
 	rm -f /etc/apache/conf.d/99_%{name}.conf
 	/usr/sbin/webapp register apache %{_webapp}
-	if [ -f /var/lock/subsys/apache ]; then
-		/etc/rc.d/init.d/apache reload 1>&2
-	fi
+	%service -q apache reload
 fi
 if [ -L /etc/httpd/httpd.conf/99_%{name}.conf ]; then
 	rm -f /etc/httpd/httpd.conf/99_%{name}.conf
 	/usr/sbin/webapp register httpd %{_webapp}
-	if [ -f /var/lock/subsys/httpd ]; then
-		/etc/rc.d/init.d/httpd reload 1>&2
-	fi
+	%service -q httpd reload
 fi
 
 %files
@@ -102,6 +98,9 @@
 All persons listed below can be reached at <cvs_login>@pld-linux.org
 
 $Log$
+Revision 1.41  2006/05/19 21:31:47  glen
+- use %service
+
 Revision 1.40  2006/02/02 15:14:49  glen
 - update apache2 trigger to match apache-base in case somebody decides not to
   use apache2.2 virtual pkg (freedom of choice one of the pld mottos)
================================================================

---- CVS-web:
    http://cvs.pld-linux.org/SPECS/smbwebclient.spec?r1=1.40&r2=1.41&f=u



More information about the pld-cvs-commit mailing list