[packages/python-bunch] automatic change: use py_build/py_install macros
jajcus
jajcus at pld-linux.org
Sat Nov 28 18:17:06 CET 2015
commit 1aec34b102a81d44a5dd9490917ecb1206abb4b4
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-bunch.spec | 7 ++-----
1 file changed, 2 insertions(+), 5 deletions(-)
---
diff --git a/python-bunch.spec b/python-bunch.spec
index 4350c26..2c3732c 100644
--- a/python-bunch.spec
+++ b/python-bunch.spec
@@ -32,7 +32,7 @@ recursively converts from a dict to a Bunch.
dos2unix LICENSE.txt README.rst
%build
-%{__python} setup.py build
+%py_build
%if %{with tests}
PYTHONPATH=build/lib nosetests-%{py_ver} --with-doctest
@@ -41,10 +41,7 @@ PYTHONPATH=build/lib %{__python} build/lib/bunch/test.py
%install
rm -rf $RPM_BUILD_ROOT
-%{__python} setup.py install \
- --skip-build \
- --optimize=2 \
- --root=$RPM_BUILD_ROOT
+%py_install
rm $RPM_BUILD_ROOT%{py_sitescriptdir}/bunch/test.*
================================================================
---- gitweb:
http://git.pld-linux.org/gitweb.cgi/packages/python-bunch.git/commitdiff/1aec34b102a81d44a5dd9490917ecb1206abb4b4
More information about the pld-cvs-commit
mailing list