From: Elan Ruusamäe Date: Fri, 14 Apr 2006 16:50:13 +0000 (+0000) Subject: - use %service X-Git-Tag: AC-STABLE~3 X-Git-Url: https://git.pld-linux.org/?p=packages%2Fapache1-mod_dav.git;a=commitdiff_plain;h=dc712fa8650122e71bab66aae614f5063fe1c7cf - use %service Changed files: apache1-mod_dav.spec -> 1.43 --- diff --git a/apache1-mod_dav.spec b/apache1-mod_dav.spec index 1f4d5c5..1e559e2 100644 --- a/apache1-mod_dav.spec +++ b/apache1-mod_dav.spec @@ -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