]> git.pld-linux.org Git - packages/Zope3-psycopgda.git/commitdiff
- use %service
authorElan Ruusamäe <glen@pld-linux.org>
Thu, 23 Mar 2006 19:29:40 +0000 (19:29 +0000)
committercvs2git <feedback@pld-linux.org>
Sun, 24 Jun 2012 12:13:13 +0000 (12:13 +0000)
Changed files:
    Zope3-psycopgda.spec -> 1.5

Zope3-psycopgda.spec

index 1649b7917b9b21870031c2f9553715d49d7f7ba3..63eccc5b5865bf3ebd89a211e20d2d7165270521 100644 (file)
@@ -11,6 +11,7 @@ Source0:      http://www.zope.org/Products/Zope3-Packages/psycopgda/%{version}/%{zope
 Patch0:                %{name}-python_ver.patch
 URL:           http://www.zope.org/Products/Zope3-Packages/psycopgda/view
 BuildRequires: python
+BuildRequires: rpmbuild(macros) >= 1.268
 Requires(post,postun): /usr/sbin/installzope3package
 Requires(post,postun): rc-scripts
 %pyrequires_eq python-modules
@@ -56,16 +57,12 @@ rm -rf $RPM_BUILD_ROOT
 
 %post
 /usr/sbin/installzope3package %{zope_subname}
-if [ -f /var/lock/subsys/zope3 ]; then
-       /etc/rc.d/init.d/zope3 restart >&2
-fi
+%service -q zope3 restart
 
 %postun
 if [ "$1" = "0" ]; then
        /usr/sbin/installzope3package -d %{zope_subname}
-       if [ -f /var/lock/subsys/zope3 ]; then
-               /etc/rc.d/init.d/zope3 restart >&2
-       fi
+       %service -q zope3 restart
 fi
 
 %files
This page took 0.101062 seconds and 4 git commands to generate.