]> git.pld-linux.org Git - packages/Zope-OrderedFolderSupportPatch.git/blobdiff - Zope-OrderedFolderSupportPatch.spec
- use %service
[packages/Zope-OrderedFolderSupportPatch.git] / Zope-OrderedFolderSupportPatch.spec
index a7e8a94253f653d4fc3b0dc9205f8542683f4277..3c2ff9229767f504045bbca52c739acef9a00746 100644 (file)
@@ -8,8 +8,9 @@ License:        GPL
 Group:         Development/Tools
 Source0:       OrderedFolderSupportPatch.tar.gz
 URL:           http://www.nuxeo.org
-Requires(post,postun): /usr/sbin/installzopeproduct
 BuildRequires: python
+BuildRequires: rpmbuild(macros) >= 1.268
+Requires(post,postun): /usr/sbin/installzopeproduct
 %pyrequires_eq python-modules
 Requires:      Zope >= 2.6
 BuildArch:     noarch
@@ -42,16 +43,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
This page took 0.077089 seconds and 4 git commands to generate.