From: Elan Ruusamäe Date: Thu, 23 Mar 2006 19:27:26 +0000 (+0000) Subject: - use %service X-Git-Url: http://git.pld-linux.org/?p=packages%2FZope-WebMail.git;a=commitdiff_plain;h=11d079d93d6c2bee341d53f55584c1efad94d078 - use %service Changed files: Zope-WebMail.spec -> 1.15 --- 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