|
|
|
@ -3,10 +3,8 @@ Name: fail2ban
|
|
|
|
|
Version: 0.9
|
|
|
|
|
Release: 1%{?dist}
|
|
|
|
|
License: GPLv2+
|
|
|
|
|
Group: System Environment/Daemons
|
|
|
|
|
URL: http://fail2ban.sourceforge.net/
|
|
|
|
|
Source0: https://github.com/%{name}/%{name}/archive/%{version}.tar.gz#/%{name}-%{version}.tar.gz
|
|
|
|
|
BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root
|
|
|
|
|
BuildRequires: python-devel
|
|
|
|
|
# For testcases
|
|
|
|
|
BuildRequires: python-inotify
|
|
|
|
@ -44,7 +42,6 @@ and shorewall respectively.
|
|
|
|
|
python setup.py build
|
|
|
|
|
|
|
|
|
|
%install
|
|
|
|
|
rm -rf %{buildroot}
|
|
|
|
|
python setup.py install -O1 --root %{buildroot}
|
|
|
|
|
%if 0%{?fedora} >= 19
|
|
|
|
|
mkdir -p %{buildroot}%{_unitdir}
|
|
|
|
@ -92,7 +89,6 @@ fi
|
|
|
|
|
%endif
|
|
|
|
|
|
|
|
|
|
%files
|
|
|
|
|
%defattr(-,root,root,-)
|
|
|
|
|
%doc README.md TODO ChangeLog COPYING doc/*.txt
|
|
|
|
|
#doc config/fail2ban.conf*
|
|
|
|
|
%{_bindir}/fail2ban-server
|
|
|
|
|