From 140272671e932db899fc49652605ce6a7d9ca64c Mon Sep 17 00:00:00 2001 From: =?utf8?q?Elan=20Ruusam=C3=A4e?= Date: Fri, 14 Apr 2006 16:50:13 +0000 Subject: [PATCH] - use %service Changed files: apache1-mod_auth_mysql.spec -> 1.38 --- apache1-mod_auth_mysql.spec | 11 ++++------- 1 file changed, 4 insertions(+), 7 deletions(-) diff --git a/apache1-mod_auth_mysql.spec b/apache1-mod_auth_mysql.spec index 6d6866a..b852eab 100644 --- a/apache1-mod_auth_mysql.spec +++ b/apache1-mod_auth_mysql.spec @@ -26,9 +26,10 @@ BuildRequires: apache1-devel >= 1.3.33-2 BuildRequires: autoconf BuildRequires: automake BuildRequires: mysql-devel +BuildRequires: rpmbuild(macros) >= 1.268 Requires: apache1 >= 1.3.33-2 Requires: apache1-mod_auth -Obsoletes: apache-mod_%{mod_name} <= %{version} +Obsoletes: apache-mod_auth_mysql <= %{version} BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) %define _pkglibdir %(%{apxs} -q LIBEXECDIR 2>/dev/null) @@ -107,15 +108,11 @@ echo 'LoadModule %{mod_name}_module modules/mod_%{mod_name}.so' > \ 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 -- 2.44.0