summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorElan Ruusamäe2006-03-23 19:27:26 (GMT)
committercvs2git2012-06-24 12:13:13 (GMT)
commit23e2552e4fbe628af81f607ece57771c6c935d99 (patch)
tree01e008fce33c7d3f9b3d0a533c6c140b66f759bd
parenta8df4adaf52d5259bf4754d9dc3871e98172014a (diff)
downloadZope-LocalFS-23e2552e4fbe628af81f607ece57771c6c935d99.zip
Zope-LocalFS-23e2552e4fbe628af81f607ece57771c6c935d99.tar.gz
- use %service
Changed files: Zope-LocalFS.spec -> 1.12
-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