]> git.pld-linux.org Git - packages/Zope-CMFSin.git/commitdiff
- use %service
authorElan Ruusamäe <glen@pld-linux.org>
Sun, 19 Mar 2006 18:38:11 +0000 (18:38 +0000)
committercvs2git <feedback@pld-linux.org>
Sun, 24 Jun 2012 12:13:13 +0000 (12:13 +0000)
Changed files:
    Zope-CMFSin.spec -> 1.18

Zope-CMFSin.spec

index 21c0379c84c458298014ef99609ca8a977b113b6..a383018604db5dc11645e6d9ee72696827e29a42 100644 (file)
@@ -10,13 +10,14 @@ Source0:    http://dl.sourceforge.net/collective/%{zope_subname}.tar.gz
 # Source0-md5: a50ab5b9c13526a6a52397d556b09e84
 URL:           http://sourceforge.net/projects/collective/
 BuildRequires: python
+BuildRequires: rpmbuild(macros) >= 1.268
 %pyrequires_eq python-modules
-Requires:      Zope-CMF
-Requires:      Zope
 Requires(post,postun): /usr/sbin/installzopeproduct
+Requires:      Zope
+Requires:      Zope-CMF
+Conflicts:     CMF
 BuildArch:     noarch
 BuildRoot:     %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
-Conflicts:     CMF
 
 %description
 This is a simple syndication client for CMF. It uses rssparser and
@@ -53,16 +54,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.109761 seconds and 4 git commands to generate.