From 1017906f66de4d053be058b1b0035fa4962977b6 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-Hotfix.spec -> 1.3 --- Zope-Hotfix.spec | 11 ++++------- 1 file changed, 4 insertions(+), 7 deletions(-) diff --git a/Zope-Hotfix.spec b/Zope-Hotfix.spec index 6ef6212..5644c53 100644 --- a/Zope-Hotfix.spec +++ b/Zope-Hotfix.spec @@ -11,8 +11,9 @@ Source0: http://zope.org/Products/Zope/Hotfix-2005-04-05/%{zope_subname}-2005040 URL: http://www.zope.org/Products/Zope/Hotfix-2005-04-05/announce-Hotfix_20050405/ BuildRequires: python %pyrequires_eq python-modules -Requires: Zope +BuildRequires: rpmbuild(macros) >= 1.268 Requires(post,postun): /usr/sbin/installzopeproduct +Requires: Zope Obsoletes: Zope-Hotfix = 040713 Obsoletes: Zope-Hotfix = 040714 BuildArch: noarch @@ -45,16 +46,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