]> git.pld-linux.org Git - packages/apache-mod_auth_any.git/commitdiff
- use %service
authorElan Ruusamäe <glen@pld-linux.org>
Mon, 30 Jan 2006 17:39:10 +0000 (17:39 +0000)
committercvs2git <feedback@pld-linux.org>
Sun, 24 Jun 2012 12:13:13 +0000 (12:13 +0000)
Changed files:
    apache-mod_auth_any.spec -> 1.30

apache-mod_auth_any.spec

index 0950e06ef4e5a5a9ef4385007f9e9fa6f4e317d6..aba3fdcf998384e907c2def5b3143909102f4496 100644 (file)
@@ -22,6 +22,7 @@ Source0:      http://www.itlab.musc.edu/webNIS/dist/mod_%{mod_name}-%{version}-apache
 URL:           http://www.itlab.musc.edu/webNIS/mod_auth_any.html
 BuildRequires: %{apxs}
 BuildRequires: apache-devel >= 2.0
+BuildRequires: rpmbuild(macros) >= 1.268
 Requires:      apache(modules-api) = %apache_modules_api
 BuildRoot:     %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
 
@@ -89,15 +90,11 @@ echo 'LoadModule %{mod_name}_module modules/mod_%{mod_name}.so' > \
 rm -rf $RPM_BUILD_ROOT
 
 %post
-if [ -f /var/lock/subsys/httpd ]; then
-       /etc/rc.d/init.d/httpd restart 1>&2
-fi
+%service -q httpd restart
 
 %preun
 if [ "$1" = "0" ]; then
-       if [ -f /var/lock/subsys/httpd ]; then
-               /etc/rc.d/init.d/httpd restart 1>&2
-       fi
+       %service -q httpd restart
 fi
 
 %files
This page took 0.041553 seconds and 4 git commands to generate.