BuildRequires: python-devel
BuildRequires: python-modules
BuildRequires: rpm-pythonprov
+BuildRequires: rpmbuild(macros) >= 1.268
Requires: python
BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
%post
/sbin/chkconfig --add %{name}
-if [ -r /var/lock/subsys/DenyHosts ]; then
- /etc/rc.d/init.d/DenyHosts restart >&2
-else
- echo "Run \"/etc/rc.d/init.d/DenyHosts start\" to start DenyHosts."
-fi
+%service DenyHosts restart
%preun
if [ "$1" = "0" ]; then
- if [ -r /var/lock/subsys/DenyHosts ]; then
- /etc/rc.d/init.d/DenyHosts stop >&2
- fi
+ %service DenyHosts stop
/sbin/chkconfig --del %{name}
fi