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

Zope-PloneLanguageTool.spec

index a8d6337ec0afa39d6336ebd74af90fa81b19d63c..5ddc9ed64be001287666f40004ad840dd4bf6b0f 100644 (file)
@@ -10,6 +10,7 @@ Source0:      http://plone.org/products/plonelanguagetool/releases/%{version}/PloneLa
 # Source0-md5: 385425aa6f392d1d15de2d98e928e688
 URL:           http://plone.org/Members/longsleep/I18NLayer/
 BuildRequires: python
+BuildRequires: rpmbuild(macros) >= 1.268
 %pyrequires_eq python-modules
 Requires:      Zope
 Requires:      Zope-CMFPlone
@@ -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.086348 seconds and 4 git commands to generate.