|
|
|
@ -15,6 +15,8 @@ Patch7: asyncserver.start_selinux.patch
|
|
|
|
|
Patch8: fail2ban-0.8.7.1-notmp.patch
|
|
|
|
|
BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root
|
|
|
|
|
BuildRequires: python-devel >= 2.3
|
|
|
|
|
# For testcases
|
|
|
|
|
BuildRequires: python-inotify
|
|
|
|
|
BuildArch: noarch
|
|
|
|
|
Requires: iptables, tcp_wrappers, shorewall, gamin-python
|
|
|
|
|
Requires: python-inotify
|
|
|
|
@ -53,6 +55,9 @@ install -d -m 0755 %{buildroot}%{_localstatedir}/lib/fail2ban/
|
|
|
|
|
mkdir -p %{buildroot}%{_sysconfdir}/tmpfiles.d
|
|
|
|
|
install -m 0644 %{SOURCE2} %{buildroot}%{_sysconfdir}/tmpfiles.d/fail2ban.conf
|
|
|
|
|
|
|
|
|
|
%check
|
|
|
|
|
./fail2ban-testcases
|
|
|
|
|
|
|
|
|
|
%clean
|
|
|
|
|
rm -rf %{buildroot}
|
|
|
|
|
|
|
|
|
|