]> git.pld-linux.org Git - packages/apache1-mod_accounting.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_accounting.spec -> 1.27

apache1-mod_accounting.spec

index 4b5567c70f26895f912bc209d2a50c93a65ae76a..c468c93965fe91a78dcad6cf2754d9a3ed14c89d 100644 (file)
@@ -19,9 +19,10 @@ URL:         http://sourceforge.net/projects/mod-acct/
 BuildRequires: apache1-devel >= 1.3.33-2
 BuildRequires: mysql-devel
 BuildRequires: postgresql-devel
+BuildRequires: rpmbuild(macros) >= 1.268
 %{!?with_ipv6:BuildConflicts:  apache1(ipv6)-devel}
 Requires:      apache1 >= 1.3.33-2
-Obsoletes:     apache-mod_%{mod_name} <= %{version}
+Obsoletes:     apache-mod_accounting <= %{version}
 BuildRoot:     %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
 
 %define                _pkglibdir      %(%{apxs} -q LIBEXECDIR 2>/dev/null)
@@ -56,15 +57,11 @@ install %{SOURCE1} $RPM_BUILD_ROOT%{_sysconfdir}/conf.d/90_mod_%{mod_name}.conf
 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.08621 seconds and 4 git commands to generate.