[packages/python-PyAIML] automatic change: use py_build/py_install macros

jajcus jajcus at pld-linux.org
Sat Nov 28 18:10:36 CET 2015


commit 48dfae1aac339e4dc82c8d7f89391a8a3a773de4
Author: Jacek Konieczny <jajcus at jajcus.net>
Date:   Sat Nov 28 18:06:42 2015 +0100

    automatic change: use py_build/py_install macros

 python-PyAIML.spec | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)
---
diff --git a/python-PyAIML.spec b/python-PyAIML.spec
index bf4823f..ae479a2 100644
--- a/python-PyAIML.spec
+++ b/python-PyAIML.spec
@@ -36,7 +36,7 @@ programu SI.
 
 %build
 find -type f -exec sed -i -e 's|#!.*python.*|#!%{_bindir}/python|g' "{}" ";"
-python setup.py build
+%py_build
 
 %install
 rm -rf $RPM_BUILD_ROOT
@@ -44,7 +44,7 @@ install -d $RPM_BUILD_ROOT
 install -d $RPM_BUILD_ROOT%{_datadir}/%{mod_package}
 install -d $RPM_BUILD_ROOT%{_datadir}/aiml
 
-python ./setup.py install --optimize=2 --root=$RPM_BUILD_ROOT
+%py_install
 %py_postclean
 install $RPM_BUILD_ROOT%{_usr}/Lib/site-packages/aiml/self-test.aiml $RPM_BUILD_ROOT%{_datadir}/%{mod_package}
 mv standard $RPM_BUILD_ROOT%{_datadir}/aiml
================================================================

---- gitweb:

http://git.pld-linux.org/gitweb.cgi/packages/python-PyAIML.git/commitdiff/48dfae1aac339e4dc82c8d7f89391a8a3a773de4



More information about the pld-cvs-commit mailing list