From 993543eb2588684439e7445f8b40adf120b5edcb 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_auth_kerb.spec -> 1.7 --- apache-mod_auth_kerb.spec | 9 +++------ 1 file changed, 3 insertions(+), 6 deletions(-) diff --git a/apache-mod_auth_kerb.spec b/apache-mod_auth_kerb.spec index 55b8004..9b24316 100644 --- a/apache-mod_auth_kerb.spec +++ b/apache-mod_auth_kerb.spec @@ -18,6 +18,7 @@ BuildRequires: %{apxs} BuildRequires: apache-devel BuildRequires: gdbm-devel BuildRequires: heimdal-devel +BuildRequires: rpmbuild(macros) >= 1.268 BuildRequires: sed >= 4.0 Requires: apache(modules-api) = %apache_modules_api BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) @@ -53,15 +54,11 @@ install %{SOURCE1} $RPM_BUILD_ROOT%{_sysconfdir}/httpd.conf/20_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 -- 2.44.0