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
%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