From 37668628e8724ddcfcf8da42b4a9c10e580f9f95 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 1/1] - use %service Changed files: apache-mod_ntlm.spec -> 1.19 --- apache-mod_ntlm.spec | 9 +++------ 1 file changed, 3 insertions(+), 6 deletions(-) diff --git a/apache-mod_ntlm.spec b/apache-mod_ntlm.spec index e56ae18..d425d20 100644 --- a/apache-mod_ntlm.spec +++ b/apache-mod_ntlm.spec @@ -15,6 +15,7 @@ Source0: http://dl.sourceforge.net/modntlm/mod_%{mod_name}2-%{version}.tgz URL: http://modntlm.sourceforge.net/ BuildRequires: %{apxs} BuildRequires: apache-devel >= 2.0 +BuildRequires: rpmbuild(macros) >= 1.268 Requires: apache(modules-api) = %apache_modules_api BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) @@ -50,15 +51,11 @@ echo 'LoadModule %{mod_name}_module modules/mod_%{mod_name}.so' > \ 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