From 11d079d93d6c2bee341d53f55584c1efad94d078 Mon Sep 17 00:00:00 2001 From: =?utf8?q?Elan=20Ruusam=C3=A4e?= Date: Thu, 23 Mar 2006 19:27:26 +0000 Subject: [PATCH] - use %service Changed files: Zope-WebMail.spec -> 1.15 --- Zope-WebMail.spec | 11 ++++------- 1 file changed, 4 insertions(+), 7 deletions(-) diff --git a/Zope-WebMail.spec b/Zope-WebMail.spec index f0e4785..8b3ca94 100644 --- a/Zope-WebMail.spec +++ b/Zope-WebMail.spec @@ -10,9 +10,10 @@ Source0: http://www.pentila.com/produits/WebMail/%{zope_subname}-%{version}.tgz # Source0-md5: b35b48977be73eb8511296f3d3f7a244 URL: http://www.pentila.com/produits/WebMail/ BuildRequires: python +BuildRequires: rpmbuild(macros) >= 1.268 %pyrequires_eq python-modules -Requires: Zope Requires(post,postun): /usr/sbin/installzopeproduct +Requires: Zope BuildArch: noarch BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) @@ -43,16 +44,12 @@ rm -rf $RPM_BUILD_ROOT %post /usr/sbin/installzopeproduct %{_datadir}/%{name} %{zope_subname} -if [ -f /var/lock/subsys/zope ]; then - /etc/rc.d/init.d/zope restart >&2 -fi +%service -q zope restart %postun if [ "$1" = "0" ]; then /usr/sbin/installzopeproduct -d %{zope_subname} - if [ -f /var/lock/subsys/zope ]; then - /etc/rc.d/init.d/zope restart >&2 - fi + %service -q zope restart fi %files -- 2.44.0