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

apache1-mod_bandwidth.spec

index 04257c081e1791be8de315372fb89abb30b79028..d1b646d727d6cc237b813d5d2a2a9887edaaed7c 100644 (file)
@@ -18,10 +18,11 @@ Source4:    %{name}-doc.html
 URL:           http://www.cohprog.com/v3/bandwidth/intro-en.html
 BuildRequires: %{apxs}
 BuildRequires: apache1-devel >= 1.3.33-2
+BuildRequires: rpmbuild(macros) >= 1.268
 Requires:      apache1 >= 1.3.33-2
 Requires:      crondaemon
 Requires:      procps
-Obsoletes:     apache-mod_%{mod_name} <= %{version}
+Obsoletes:     apache-mod_bandwidth <= %{version}
 BuildRoot:     %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
 
 %define                _pkglibdir      %(%{apxs} -q LIBEXECDIR 2>/dev/null)
@@ -61,15 +62,11 @@ echo '* * * * * http %{_sbindir}/%{name}-cleanlink.pl' > \
 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
 
 %files
This page took 0.0361 seconds and 4 git commands to generate.