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

apache1-mod_dav.spec

index 1f4d5c55164eb44964332a477f7aedf5a5b99a96..1e559e2271d263c4ec2ad5067fc75d3e5bf10d3e 100644 (file)
@@ -1,5 +1,6 @@
 %define                mod_name        dav
 %define        apxs    /usr/sbin/apxs1
+%define                apache_version  1.3.6
 Summary:       WebDAV module for the Apache Web server
 Summary(cs):   DAV modul pro WWW server Apache
 Summary(da):   En DAV-modul for Apache
@@ -14,7 +15,6 @@ Summary(pt):  Um m
 Summary(ru):   íÏÄÕÌØ, ÒÅÁÌÉÚÕÀÝÉÊ ÐÒÏÔÏËÏÌ DAV × Apache
 Summary(sv):   En DAV-modul till Apache
 Summary(uk):   íÏÄÕÌØ, ÝÏ ÒÅÁ̦ÚÕ¤ ÐÒÏÔÏËÏÌ DAV × Apache
-%define                apache_version  1.3.6
 Name:          apache1-mod_%{mod_name}
 Version:       1.0.3
 Release:       2
@@ -30,11 +30,12 @@ BuildRequires:      apache1-devel >= 1.3.33-2
 BuildRequires: autoconf
 BuildRequires: automake
 BuildRequires: expat-devel
+BuildRequires: rpmbuild(macros) >= 1.268
 Requires(triggerpostun):       %{apxs}
 Requires(triggerpostun):       grep
 Requires(triggerpostun):       sed >= 4.0
 Requires:      apache1 >= 1.3.33-2
-Obsoletes:     apache-mod_%{mod_name} <= %{version}
+Obsoletes:     apache-mod_dav <= %{version}
 BuildRoot:     %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
 
 %define                _pkglibdir      %(%{apxs} -q LIBEXECDIR 2>/dev/null)
@@ -161,15 +162,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
 
 %triggerpostun -- %{name} < 1.0.3-1.1
This page took 0.04073 seconds and 4 git commands to generate.