]> git.pld-linux.org Git - packages/apache1-mod_auth_any.git/commitdiff
- use %service
authorElan Ruusamäe <glen@pld-linux.org>
Sun, 2 Apr 2006 14:19:27 +0000 (14:19 +0000)
committercvs2git <feedback@pld-linux.org>
Sun, 24 Jun 2012 12:13:13 +0000 (12:13 +0000)
Changed files:
    apache1-mod_auth_any.spec -> 1.32

apache1-mod_auth_any.spec

index e480ada92cc70f0241140027b00a8021aa54c044..acf3dc2cae893371581476bc373c5fc0edd70c07 100644 (file)
@@ -22,10 +22,10 @@ Source0:    http://www.itlab.musc.edu/webNIS/dist/mod_%{mod_name}-%{version}.tar.gz
 URL:           http://www.itlab.musc.edu/webNIS/mod_auth_any.html
 BuildRequires: %{apxs}
 BuildRequires: apache1-devel >= 1.3.33-2
+BuildRequires: rpmbuild(macros) >= 1.268
 Requires(triggerpostun):       %{apxs}
 Requires:      apache1 >= 1.3.33-2
-# weird versioning scheme...
-Obsoletes:     apache-mod_%{mod_name} <= 1:%{version}
+Obsoletes:     apache-mod_auth_any <= 1:1.5
 BuildRoot:     %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
 
 %define                _pkglibdir      %(%{apxs} -q LIBEXECDIR 2>/dev/null)
@@ -92,15 +92,11 @@ echo 'LoadModule %{mod_name}_module modules/mod_%{mod_name}.so' > \
 rm -rf $RPM_BUILD_ROOT
 
 %post
-if [ -f /var/lock/subsys/apache ]; then
-       /etc/rc.d/init.d/apache restart 1>&2
-fi
+%service -q apache restart
 
 %postun
 if [ "$1" = "0" ]; then
-       if [ -f /var/lock/subsys/apache ]; then
-               /etc/rc.d/init.d/apache restart 1>&2
-       fi
+       %service -q apache restart
 fi
 
 %triggerpostun -- apache1-mod_%{mod_name} < 1:1.4-1.1
This page took 0.143748 seconds and 4 git commands to generate.