]> git.pld-linux.org Git - packages/Zope-COREBlog.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-COREBlog.spec -> 1.22

Zope-COREBlog.spec

index 2b6cebef1d4f64ff28bc8d44b105288ec428d042..ea0d0c4b49f4af6bb3fe291a5fdbfa544a06e805 100644 (file)
@@ -10,9 +10,10 @@ Source0:     http://coreblog.org/junk/%{zope_subname}122.tgz
 # Source0-md5: d2d1ca0c38da09d6edf907b36bdc123e
 URL:           http://coreblog.org/
 BuildRequires: python
+BuildRequires: rpmbuild(macros) >= 1.268
 %pyrequires_eq python-modules
-Requires:      Zope >= 2.6.1
 Requires(post,postun): /usr/sbin/installzopeproduct
+Requires:      Zope >= 2.6.1
 BuildArch:     noarch
 BuildRoot:     %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
 
@@ -50,16 +51,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.040825 seconds and 4 git commands to generate.