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

Zope-ZMySQLDA.spec

index 3e0c3d84025605b1a6e820d94c052b7e158e3fb9..3c13f08d48b6e475a41575caec54238e04f4d720 100644 (file)
@@ -10,6 +10,7 @@ Source0:      http://www.zope.org/Members/adustman/Products/ZMySQLDA/%{zope_subname}-
 # Source0-md5: 74332272e53b13c6b19d3185d575699c
 URL:           http://www.zope.org/Members/adustman/Products/ZMySQLDA/
 BuildRequires: python
 # Source0-md5: 74332272e53b13c6b19d3185d575699c
 URL:           http://www.zope.org/Members/adustman/Products/ZMySQLDA/
 BuildRequires: python
+BuildRequires: rpmbuild(macros) >= 1.268
 %pyrequires_eq python-modules
 Requires:      Zope
 Requires:      python-MySQLdb
 %pyrequires_eq python-modules
 Requires:      Zope
 Requires:      python-MySQLdb
@@ -43,16 +44,12 @@ rm -rf $RPM_BUILD_ROOT
 
 %post
 /usr/sbin/installzopeproduct %{_datadir}/%{name} %{zope_subname}
 
 %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
 
 %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
+       /usr/sbin/installzopeproduct -d %{zope_subname}
+       %service -q zope restart
 fi
 
 %files
 fi
 
 %files
This page took 0.123374 seconds and 4 git commands to generate.