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

Zope-PortalTransport.spec

index e24f595bd8382ac1b1551befb83fc237e91cd1ed..35cabe7ebd144716eac5cb9c13ba5bda9e1b49b7 100644 (file)
@@ -10,8 +10,9 @@ Source0:      http://dl.sourceforge.net/collective/%{zope_subname}-%{version}.tar.gz
 # Source0-md5: a461fbee5442e1d29af623a9d9bcbfbb
 Patch0:                %{name}-Interface.patch
 URL:           http://sourceforge.net/projects/collective/
-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
@@ -49,16 +50,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.103954 seconds and 4 git commands to generate.