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

Zope-PlacelessTranslationService.spec

index 86667cb43febe3d76d17f0d3cbe33150c0ee9a52..72799d750d955c4af03fd56309db826c92c549f1 100644 (file)
@@ -10,6 +10,7 @@ Source0:      http://plone.org/products/pts/releases/%{version}/PlacelessTranslationS
 # Source0-md5: c081dcc7379478e5dd9500419b2d557a
 URL:           http://plone.org/products/pts/
 BuildRequires: python
+BuildRequires: rpmbuild(macros) >= 1.268
 %pyrequires_eq python-modules
 Requires(post,postun): /usr/sbin/installzopeproduct
 Requires:      Zope
@@ -47,16 +48,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.229995 seconds and 4 git commands to generate.