summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--Zope-LocalFS.spec11
1 files changed, 4 insertions, 7 deletions
diff --git a/Zope-LocalFS.spec b/Zope-LocalFS.spec
index 52f5db5..44f834e 100644
--- a/Zope-LocalFS.spec
+++ b/Zope-LocalFS.spec
@@ -11,9 +11,10 @@ Source0: http://www.easyleading.org/Downloads/%{zope_subname}-%{version}-andreas
# Source0-md5: 0196bdc5df0797cd33f5297b5a52c2f8
URL: http://www.easyleading.org/Members/Eddy/LocalFS-1.6-andreas/
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)
@@ -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