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

Zope-exUserFolder.spec

index 90a56aef053b60e155fb27d87ec79393b1f6d279..9154287f6b0aecaf93acb162edaff9e6813341b4 100644 (file)
@@ -11,8 +11,9 @@ Source0:      http://dl.sourceforge.net/exuserfolder/%{zope_subname}-%{fversion}.tgz
 # Source0-md5: da885980aa9f7f8d19bf3f260242b2fe
 Patch0:                %{name}-user_is_a_member.patch
 URL:           http://www.zope.org/Members/TheJester/exUserFolder/
-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.2
@@ -54,16 +55,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.062401 seconds and 4 git commands to generate.