- 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-ExtFile.spec -> 1.14

Zope-ExtFile.spec

index f102f6f065837f5cfec7b3f06738ec57397c96ef..de9454bb7c47afbc911e67b2198766e689778dec 100644 (file)
@@ -10,10 +10,11 @@ Source0:    http://zope.org/Members/shh/%{zope_subname}/%{version}/%{zope_subname}-
 # Source0-md5: 4e13441da832a904cb75ad367388ae8b
 URL:           http://zope.org/Members/shh/ExtFile/
 BuildRequires: python
+BuildRequires: rpmbuild(macros) >= 1.268
 %pyrequires_eq python-modules
-Requires:      python-Imaging
-Requires:      Zope
 Requires(post,postun): /usr/sbin/installzopeproduct
+Requires:      Zope
+Requires:      python-Imaging
 BuildArch:     noarch
 BuildRoot:     %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
 
@@ -44,16 +45,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.036784 seconds and 4 git commands to generate.