- use %service
authorElan Ruusamäe <glen@pld-linux.org>
Sun, 19 Mar 2006 18:38:11 +0000 (18:38 +0000)
committercvs2git <feedback@pld-linux.org>
Sun, 24 Jun 2012 12:13:13 +0000 (12:13 +0000)
Changed files:
    Zope-CMFPloneWebMail.spec -> 1.7

Zope-CMFPloneWebMail.spec

index 4ab9be06ef433653d7a1774f09c7dc49901f4da4..a2220ea547b78349da9983c3b7ead775585d9d0e 100644 (file)
@@ -9,8 +9,9 @@ Group:          Development/Tools
 Source0:       http://plonewebmail.openprojects.it/Members/admin/%{zope_subname}-%{version}final.tar.gz
 # Source0-md5: 255541e6a43c9de4fa6fccce523c5ffa
 URL:           http://plonewebmail.openprojects.it/
-Requires(post,postun): /usr/sbin/installzopeproduct
 BuildRequires: python
+BuildRequires: rpmbuild(macros) >= 1.268
+Requires(post,postun): /usr/sbin/installzopeproduct
 %pyrequires_eq python-modules
 Requires:      Zope
 Requires:      Zope-CMF >= 1:1.4
@@ -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.031568 seconds and 4 git commands to generate.