From 0df0c9d23e7a87f38edbb0f8defd9e795ad92557 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-COREBlog2.spec -> 1.2 --- Zope-COREBlog2.spec | 13 ++++--------- 1 file changed, 4 insertions(+), 9 deletions(-) diff --git a/Zope-COREBlog2.spec b/Zope-COREBlog2.spec index 43580e2..1f19c1b 100644 --- a/Zope-COREBlog2.spec +++ b/Zope-COREBlog2.spec @@ -12,10 +12,11 @@ Source0: http://coreblog.org/junk/%{zope_subname}%{header_load}.tgz # Source0-md5: 6a75d95b2068266b5dd59e1781eff54a URL: http://coreblog.org/ BuildRequires: python +BuildRequires: rpmbuild(macros) >= 1.268 %pyrequires_eq python-modules +Requires(post,postun): /usr/sbin/installzopeproduct Requires: Zope >= 2.7.7 Requires: Zope-CMFPlone >= 2.1.1 -Requires(post,postun): /usr/sbin/installzopeproduct BuildArch: noarch BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) @@ -28,8 +29,6 @@ System bloga/webloga oparty na Zope i Plone. %prep %setup -q -n %{zope_subname} -%build - %install rm -rf $RPM_BUILD_ROOT install -d $RPM_BUILD_ROOT%{_datadir}/%{name} @@ -47,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.44.0