From afcc831734b9df200625c7883d86c96de06b1530 Mon Sep 17 00:00:00 2001 From: =?utf8?q?Elan=20Ruusam=C3=A4e?= Date: Mon, 30 Jan 2006 17:39:10 +0000 Subject: [PATCH] - use %service Changed files: apache-mod_gzip.spec -> 1.33 --- apache-mod_gzip.spec | 9 +++------ 1 file changed, 3 insertions(+), 6 deletions(-) diff --git a/apache-mod_gzip.spec b/apache-mod_gzip.spec index 2378411..9b432d2 100644 --- a/apache-mod_gzip.spec +++ b/apache-mod_gzip.spec @@ -14,6 +14,7 @@ Source2: %{name}.logrotate #URL: http://www.schroepl.net/projekte/mod_gzip/ BuildRequires: %{apxs} BuildRequires: apache-devel >= 2.0.40 +BuildRequires: rpmbuild(macros) >= 1.268 BuildRequires: zlib-devel Requires: apache(modules-api) = %apache_modules_api BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) @@ -50,15 +51,11 @@ install %{SOURCE2} $RPM_BUILD_ROOT/etc/logrotate.d/%{name} 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 %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 -- 2.43.0