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

Zope-PloneLoginHistory.spec

index 5592d2ec6d11aeb3acbd1a9e8d2b3c36d0597cb4..53af1b9b0fe648eda8ea6a27033ce6617d7bcd5f 100644 (file)
@@ -6,11 +6,12 @@ Version:      0.2.0
 Release:       3
 License:       GPL
 Group:         Development/Tools
-Source0:       http://www.easyleading.org/Downloads/PloneLoginHistory-0.2.0.tar.gz
+Source0:       http://www.easyleading.org/Downloads/PloneLoginHistory-%{version}.tar.gz
 # Source0-md5: 52bd599d7cd77d408c13fbf6c35e9da8
 URL:           http://www.easyleading.org/Products/PloneLoginHistory/
-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
@@ -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.084713 seconds and 4 git commands to generate.