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

Zope-LocalFS.spec

index 52f5db5a39629ed869b773aefdcf70184ef24a6b..44f834e0edde1af4131fe4623abd77f827a2dbf2 100644 (file)
@@ -11,9 +11,10 @@ Source0:     http://www.easyleading.org/Downloads/%{zope_subname}-%{version}-andreas
 # Source0-md5: 0196bdc5df0797cd33f5297b5a52c2f8
 URL:           http://www.easyleading.org/Members/Eddy/LocalFS-1.6-andreas/
 BuildRequires: python
+BuildRequires: rpmbuild(macros) >= 1.268
 %pyrequires_eq python-modules
-Requires:      Zope
 Requires(post,postun): /usr/sbin/installzopeproduct
+Requires:      Zope
 BuildArch:     noarch
 BuildRoot:     %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
 
@@ -44,16 +45,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.142127 seconds and 4 git commands to generate.