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

Zope-CPSSkinsTutorial.spec

index fcc4d96a3393453dc3bfd20b9634dfd5ba91ebc9..4d702a689ee34677848224e9472013c1c0452f06 100644 (file)
@@ -9,8 +9,9 @@ Group:          Development/Tools
 Source0:       http://www.medic.chalmers.se/~jmo/CPS/%{zope_subname}%{version}.tgz
 # Source0-md5: 3ac2fcee53fcef9f244cb6b06d696a8c
 URL:           http://www.medic.chalmers.se/~jmo/CPS/
-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
 Requires:      Zope-CPSSkins
@@ -43,16 +44,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.070892 seconds and 4 git commands to generate.