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

Zope-CPSSkins.spec

index 9b1e18ea847bd903b2762078be24ac441292d37d..45e5d90c15e93923bdd8b438db8f469d914220bc 100644 (file)
@@ -11,6 +11,7 @@ Source0:      ftp://mc.ptja.pl/%{zope_subname}%{version}.tar.gz
 # Source0-md5: 2408c3693f83223922a5438756960600
 URL:           http://www.medic.chalmers.se/~jmo/CPS/
 Requires(post,postun): /usr/sbin/installzopeproduct
+BuildRequires: rpmbuild(macros) >= 1.268
 BuildRequires: python
 %pyrequires_eq python-modules
 Requires:      Zope
@@ -49,16 +50,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.075242 seconds and 4 git commands to generate.