]> git.pld-linux.org Git - packages/apache1-mod_xslt.git/commitdiff
- use %service
authorElan Ruusamäe <glen@pld-linux.org>
Fri, 14 Apr 2006 17:15:51 +0000 (17:15 +0000)
committercvs2git <feedback@pld-linux.org>
Sun, 24 Jun 2012 12:13:13 +0000 (12:13 +0000)
Changed files:
    apache1-mod_xslt.spec -> 1.33

apache1-mod_xslt.spec

index 6f4bf6af96160582fa9458d2c80f4b6d706c63ee..7838a08e3ebd7a92d710bdf51409552e9e42ed4d 100644 (file)
@@ -21,11 +21,12 @@ Patch3:             %{name}-module.patch
 URL:           http://modxslt.userworld.com/
 BuildRequires: %{apxs}
 BuildRequires: apache1-devel >= 1.3.33-2
+BuildRequires: rpmbuild(macros) >= 1.268
 BuildRequires: sablotron-devel
 Requires:      apache1 >= 1.3.33-2
 Requires:      expat
 Requires:      sablotron
-Obsoletes:     apache-mod_%{mod_name} <= 1.1
+Obsoletes:     apache-mod_xslt <= 1.1
 BuildRoot:     %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
 
 %define                _pkglibdir      %(%{apxs} -q LIBEXECDIR 2>/dev/null)
@@ -78,15 +79,11 @@ install %{SOURCE1} $RPM_BUILD_ROOT%{_sysconfdir}/conf.d/90_mod_%{mod_name}.conf
 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
This page took 0.072784 seconds and 4 git commands to generate.