X-Git-Url: https://git.pld-linux.org/gitweb.cgi?a=blobdiff_plain;f=apache-mod_bw.spec;h=fcec668450f1d29a72c7f881cd2a04ac54fa62c8;hb=b2f4d847a12c253db50411799d4f107d683c7441;hp=3cc0bdc023ea0085141706503ed3f82affac898c;hpb=c67d93f176fecbc3e96aae1063991948d541073d;p=packages%2Fapache-mod_bw.git diff --git a/apache-mod_bw.spec b/apache-mod_bw.spec index 3cc0bdc..fcec668 100644 --- a/apache-mod_bw.spec +++ b/apache-mod_bw.spec @@ -16,6 +16,7 @@ Patch0: %{name}-apr_1.0.patch URL: http://www.ivn.cl/apache/ BuildRequires: %{apxs} BuildRequires: apache-devel >= 2.0.0 +BuildRequires: rpmbuild(macros) >= 1.268 BuildRequires: sed >= 4.0 Requires: apache(modules-api) = %apache_modules_api Requires: crondaemon @@ -56,15 +57,11 @@ install %{SOURCE1} $RPM_BUILD_ROOT%{_sysconfdir}/httpd.conf/97_mod_%{mod_name}.c 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