- 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-epoz.spec -> 1.10

Zope-epoz.spec

index 0f10448b595672ad3ea9d49cc062a3aa103e6df1..1ec95fb95c2815a732ccd0781c2dc39dd4538a4a 100644 (file)
@@ -11,9 +11,10 @@ Source0:     http://dl.sourceforge.net/%{zope_subname}/%{zope_subname}-%{version}.tg
 # Source0-md5: 4d941438805dd849d4a3256c52ba65a4
 URL:           http://sourceforge.net/projects/epoz/
 BuildRequires: python
+BuildRequires: rpmbuild(macros) >= 1.268
 %pyrequires_eq python-modules
-Requires:      Zope
 Requires(post,postun): /usr/sbin/installzopeproduct
+Requires:      Zope
 Obsoletes:     Zope-Epoz
 BuildArch:     noarch
 BuildRoot:     %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
@@ -46,16 +47,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.029819 seconds and 4 git commands to generate.