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

jajcus jajcus at pld-linux.org
Sat Nov 28 19:20:41 CET 2015


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

    automatic change: use py_build/py_install macros

 DenyHosts.spec | 6 ++----
 1 file changed, 2 insertions(+), 4 deletions(-)
---
diff --git a/DenyHosts.spec b/DenyHosts.spec
index e8b4b1b..83020bc 100644
--- a/DenyHosts.spec
+++ b/DenyHosts.spec
@@ -51,14 +51,12 @@ grep -r '/usr/bin/env python' -l . | xargs %{__sed} -i -e 's,/usr/bin/env python
 
 %build
 echo 'VERSION="%{version}"' > version.py
-%{__python} setup.py build
+%py_build
 
 %install
 rm -rf $RPM_BUILD_ROOT
 install -d $RPM_BUILD_ROOT{%{_sysconfdir},/etc/cron.d,/etc/rc.d/init.d,%{_sbindir},/var/lib/%{name}}
-%{__python} setup.py install \
-	--root=$RPM_BUILD_ROOT \
-	--optimize=2
+%py_install
 
 %py_postclean
 
================================================================

---- gitweb:

http://git.pld-linux.org/gitweb.cgi/packages/DenyHosts.git/commitdiff/536be0d3560c26ba6d01fde9b742b007a5afc9f3



More information about the pld-cvs-commit mailing list