]> git.pld-linux.org Git - packages/Zope-TranslationService.git/blobdiff - Zope-TranslationService.spec
- use %service
[packages/Zope-TranslationService.git] / 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.072035 seconds and 4 git commands to generate.