[packages/python-ethtool] automatic change: use py_build/py_install macros
jajcus
jajcus at pld-linux.org
Sat Nov 28 18:22:45 CET 2015
commit 7330c416eee13827d361f658deb3381423bf7ded
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-ethtool.spec | 20 ++++----------------
1 file changed, 4 insertions(+), 16 deletions(-)
---
diff --git a/python-ethtool.spec b/python-ethtool.spec
index ad42f64..492c5a8 100644
--- a/python-ethtool.spec
+++ b/python-ethtool.spec
@@ -55,15 +55,11 @@ port, autonegocjacja oraz lokalizacja PCI.
%build
%if %{with python2}
-CC="%{__cc}" \
-CFLAGS="%{rpmcflags}" \
-%{__python} setup.py build --build-base build-2
+%py_build
%endif
%if %{with python3}
-CC="%{__cc}" \
-CFLAGS="%{rpmcflags}" \
-%{__python3} setup.py build --build-base build-3
+%py3_build
%endif
a2x -d manpage -f manpage man/pethtool.8.asciidoc
@@ -74,22 +70,14 @@ rm -rf $RPM_BUILD_ROOT
install -d $RPM_BUILD_ROOT%{_sbindir}
%if %{with python2}
-%{__python} setup.py \
- build --build-base build-2 \
- install --skip-build \
- --root=$RPM_BUILD_ROOT \
- --optimize=2
+%py_install
cp -p pethtool.py $RPM_BUILD_ROOT%{_sbindir}/pethtool
cp -p pifconfig.py $RPM_BUILD_ROOT%{_sbindir}/pifconfig
%endif
%if %{with python3}
-%{__python3} setup.py \
- build --build-base build-3 \
- install --skip-build \
- --root=$RPM_BUILD_ROOT \
- --optimize=2
+%py3_install
%endif
%clean
================================================================
---- gitweb:
http://git.pld-linux.org/gitweb.cgi/packages/python-ethtool.git/commitdiff/7330c416eee13827d361f658deb3381423bf7ded
More information about the pld-cvs-commit
mailing list