]> git.pld-linux.org Git - packages/apache-mod_auth_any.git/blobdiff - apache-mod_auth_any.spec
- restart apache in %postun rather in %preun as the config file, loading module
[packages/apache-mod_auth_any.git] / apache-mod_auth_any.spec
index 0950e06ef4e5a5a9ef4385007f9e9fa6f4e317d6..9789cb2de2765fae6526d6091bbb90e37d81b614 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
+%postun
 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.035032 seconds and 4 git commands to generate.