]> git.pld-linux.org Git - packages/fail2ban.git/blobdiff - fail2ban.spec
- up to 0.9.4; fix pidfile handling
[packages/fail2ban.git] / fail2ban.spec
index 9c678bb8f896687dce6821258406c666fd2c46bb..216be4b399c4cae7a585b6e9e568798e30ef3ed7 100644 (file)
@@ -3,12 +3,12 @@
 Summary:       Ban IPs that make too many password failures
 Summary(pl.UTF-8):     Blokowanie IP powodujących zbyt dużo prób logowań z błędnym hasłem
 Name:          fail2ban
-Version:       0.9.1
+Version:       0.9.4
 Release:       0.1
 License:       GPL
 Group:         Daemons
 Source0:       https://github.com/fail2ban/fail2ban/archive/%{version}.tar.gz
-# Source0-md5: 3554cc3de3f06ddfd7f90f8305b765b8
+# Source0-md5: 2dc93dff03c4da9fb95d4695e07b65d8
 Source1:       %{name}.init
 Source2:       %{name}.logrotate
 Source3:       paths-pld.conf
@@ -18,7 +18,7 @@ URL:          http://fail2ban.sourceforge.net/
 BuildRequires: python-devel
 BuildRequires: python-modules
 BuildRequires: rpm-pythonprov
-BuildRequires: rpmbuild(macros) >= 1.671
+BuildRequires: rpmbuild(macros) >= 1.710
 Requires(post,preun):  /sbin/chkconfig
 Requires(post,preun,postun):   systemd-units >= 38
 Requires:      python-log4py
@@ -47,7 +47,7 @@ z sshd czy plikami logów serwera WWW Apache.
 rm setup.cfg
 
 %build
-%{__python} setup.py build
+%py_build
 
 %install
 rm -rf $RPM_BUILD_ROOT
@@ -55,8 +55,7 @@ install -d $RPM_BUILD_ROOT/etc/{rc.d/init.d,logrotate.d} \
        $RPM_BUILD_ROOT{%{_mandir}/man1,/var/{log,run/fail2ban}} \
        $RPM_BUILD_ROOT{%{systemdunitdir},%{systemdtmpfilesdir}}
 
-%{__python} setup.py install \
-       --optimize=2 \
+%py_install \
        --install-lib=%{py_sitescriptdir} \
        --root=$RPM_BUILD_ROOT
 
This page took 0.026389 seconds and 4 git commands to generate.