From 22d0412be3d7e11ff4e5908962cc7736e10d138a 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-ExternalEditor.spec -> 1.22 --- Zope-ExternalEditor.spec | 24 ++++++++++-------------- 1 file changed, 10 insertions(+), 14 deletions(-) diff --git a/Zope-ExternalEditor.spec b/Zope-ExternalEditor.spec index 1e5cc20..a9f1ea9 100644 --- a/Zope-ExternalEditor.spec +++ b/Zope-ExternalEditor.spec @@ -10,23 +10,23 @@ Source0: http://plope.com/software/ExternalEditor/ExternalEditor-%{version}-src. # Source0-md5: 6befe8f5af29e8b4e27d9aba0299b57c URL: http://plope.com/software/ExternalEditor/ 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) %description -ExternalEditor is a Zope product, a new way to integrate Zope more seamlessly -with client-side tools. -This package is supposed to be installed on Zope server, there is a zopeedit -tool for clients. +ExternalEditor is a Zope product, a new way to integrate Zope more +seamlessly with client-side tools. This package is supposed to be +installed on Zope server, there is a zopeedit tool for clients. %description -l pl ExternalEditor jest dodatkiem do Zope, umo¿liwiaj±cym w nowy, bardziej przezroczysty sposób integrowaæ Zope z narzêdziami od strony klienta. -Ten pakiet powinien byæ zainstalowany na serwerze Zope. Od strony klienta -dostêp do niego zapewnia pakiet zopeedit. +Ten pakiet powinien byæ zainstalowany na serwerze Zope. Od strony +klienta dostêp do niego zapewnia pakiet zopeedit. %prep %setup -q -n %{zope_subname} @@ -49,16 +49,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 + /usr/sbin/installzopeproduct -d %{zope_subname} + %service -q zope restart fi %files -- 2.43.0