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

Zope-TranslationService.spec

index ab5895b8993321eb5de892bab6288fc11f0a8e84..80facdc6dd8f3338d22f7b693ca8266666a7d7fd 100644 (file)
@@ -10,10 +10,11 @@ Source0:    http://www.zope.org/Members/efge/%{zope_subname}/%{zope_subname}-%{vers
 # Source0-md5: b1399f80dc71ea8a54f4c6dc179c12dd
 URL:           http://www.zope.org/Members/efge/TranslationService
 BuildRequires: python
+BuildRequires: rpmbuild(macros) >= 1.268
 %pyrequires_eq python-modules
+Requires(post,postun): /usr/sbin/installzopeproduct
 Requires:      Zope
 Requires:      Zope-Localizer
-Requires(post,postun): /usr/sbin/installzopeproduct
 BuildArch:     noarch
 BuildRoot:     %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
 
@@ -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.093353 seconds and 4 git commands to generate.