From 1e0592c8404b9366338dd554b0a04c71d0761814 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-CMF.spec -> 1.28 --- Zope-CMF.spec | 11 ++++------- 1 file changed, 4 insertions(+), 7 deletions(-) diff --git a/Zope-CMF.spec b/Zope-CMF.spec index d57b96c..ae43e6c 100644 --- a/Zope-CMF.spec +++ b/Zope-CMF.spec @@ -12,8 +12,9 @@ Source0: http://zope.org/Products/CMF/%{zope_subname}-%{version}/%{zope_subname} URL: http://cmf.zope.org/ BuildRequires: python %pyrequires_eq python-modules -Requires: Zope >= 2.7.7 +BuildRequires: rpmbuild(macros) >= 1.268 Requires(post,postun): /usr/sbin/installzopeproduct +Requires: Zope >= 2.7.7 Obsoletes: CMF BuildArch: noarch BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) @@ -62,18 +63,14 @@ rm -rf $RPM_BUILD_ROOT for p in CMFActionIcons CMFCalendar CMFCore CMFDefault CMFSetup CMFTopic CMFUid DCWorkflow ; do /usr/sbin/installzopeproduct %{_datadir}/%{name}/$p done -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 for p in CMFActionIcons CMFCalendar CMFCore CMFDefault CMFSetup CMFTopic CMFUid DCWorkflow ; do /usr/sbin/installzopeproduct -d $p done -fi -if [ -f /var/lock/subsys/zope ]; then - /etc/rc.d/init.d/zope restart >&2 + %service -q zope restart fi %files -- 2.44.0