From f040c9794b487fa55a6fbd94334a777249f27701 Mon Sep 17 00:00:00 2001 From: =?utf8?q?Elan=20Ruusam=C3=A4e?= Date: Sun, 19 Mar 2006 18:38:11 +0000 Subject: [PATCH] - use %service Changed files: Zope-ExtFile.spec -> 1.14 --- Zope-ExtFile.spec | 13 +++++-------- 1 file changed, 5 insertions(+), 8 deletions(-) diff --git a/Zope-ExtFile.spec b/Zope-ExtFile.spec index f102f6f..de9454b 100644 --- a/Zope-ExtFile.spec +++ b/Zope-ExtFile.spec @@ -10,10 +10,11 @@ Source0: http://zope.org/Members/shh/%{zope_subname}/%{version}/%{zope_subname}- # Source0-md5: 4e13441da832a904cb75ad367388ae8b URL: http://zope.org/Members/shh/ExtFile/ BuildRequires: python +BuildRequires: rpmbuild(macros) >= 1.268 %pyrequires_eq python-modules -Requires: python-Imaging -Requires: Zope Requires(post,postun): /usr/sbin/installzopeproduct +Requires: Zope +Requires: python-Imaging BuildArch: noarch BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) @@ -44,16 +45,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.43.0