[packages/python-netaddr] automatic change: use py_build/py_install macros
jajcus
jajcus at pld-linux.org
Sat Nov 28 18:32:13 CET 2015
commit 7b967b9509d0ec619f1969895852f072f5b580b0
Author: Jacek Konieczny <jajcus at jajcus.net>
Date: Sat Nov 28 18:06:43 2015 +0100
automatic change: use py_build/py_install macros
python-netaddr.spec | 8 ++++----
1 file changed, 4 insertions(+), 4 deletions(-)
---
diff --git a/python-netaddr.spec b/python-netaddr.spec
index ecee8f2..1dc3fcb 100644
--- a/python-netaddr.spec
+++ b/python-netaddr.spec
@@ -76,15 +76,15 @@ Interactive shell for the python-netaddr library.
%setup -q -n %{module}-%{version}
%build
-%{__python} setup.py build
+%py_build
%if %{with python3}
-%{__python3} setup.py build
+%py3_build
%endif
%install
rm -rf $RPM_BUILD_ROOT
-%{__python} setup.py install \
+%py_install \
--optimize 2 \
--root=$RPM_BUILD_ROOT
@@ -97,7 +97,7 @@ sphinx-build -b html -d build/doctrees -D latex_paper_size=a4 docs/source build/
%endif
%if %{with python3}
-%{__python3} setup.py install \
+%py3_install \
--optimize 2 \
--root=$RPM_BUILD_ROOT
%py3_ocomp $RPM_BUILD_ROOT%{py_sitescriptdir}
================================================================
---- gitweb:
http://git.pld-linux.org/gitweb.cgi/packages/python-netaddr.git/commitdiff/7b967b9509d0ec619f1969895852f072f5b580b0
More information about the pld-cvs-commit
mailing list