]> git.pld-linux.org Git - packages/fail2ban.git/commitdiff
automatic change: use py_build/py_install macros
authorJacek Konieczny <jajcus@jajcus.net>
Sat, 28 Nov 2015 18:20:07 +0000 (19:20 +0100)
committerJacek Konieczny <jajcus@jajcus.net>
Sat, 28 Nov 2015 18:20:07 +0000 (19:20 +0100)
fail2ban.spec

index 9c678bb8f896687dce6821258406c666fd2c46bb..df1440327dacfbe40350f62c1b8c7f8f41fc8e82 100644 (file)
@@ -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.114009 seconds and 4 git commands to generate.