[packages/fail2ban] automatic change: use py_build/py_install macros

jajcus jajcus at pld-linux.org
Sat Nov 28 19:26:51 CET 2015


commit f7c0846c51c8d7d20aa1b5561a3a2057ba7e64bc
Author: Jacek Konieczny <jajcus at jajcus.net>
Date:   Sat Nov 28 19:20:07 2015 +0100

    automatic change: use py_build/py_install macros

 fail2ban.spec | 5 ++---
 1 file changed, 2 insertions(+), 3 deletions(-)
---
diff --git a/fail2ban.spec b/fail2ban.spec
index 9c678bb..df14403 100644
--- a/fail2ban.spec
+++ b/fail2ban.spec
@@ -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
 
================================================================

---- gitweb:

http://git.pld-linux.org/gitweb.cgi/packages/fail2ban.git/commitdiff/f7c0846c51c8d7d20aa1b5561a3a2057ba7e64bc



More information about the pld-cvs-commit mailing list