[packages/python-augeas] automatic change: use py_build/py_install macros
jajcus
jajcus at pld-linux.org
Sat Nov 28 18:15:44 CET 2015
commit 7e67b24a266868deb1e8196015384a7e69a8e18a
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-augeas.spec | 18 ++++--------------
1 file changed, 4 insertions(+), 14 deletions(-)
---
diff --git a/python-augeas.spec b/python-augeas.spec
index e960e24..3e6695a 100644
--- a/python-augeas.spec
+++ b/python-augeas.spec
@@ -50,33 +50,23 @@ Czysto pythonowe wiązania do augeasa, zbudowane dla Pythona 3.x.
%build
%if %{with python2}
-%{__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
%install
rm -rf $RPM_BUILD_ROOT
%if %{with python2}
-%{__python} setup.py \
- build --build-base build-2 \
- install --skip-build \
- --optimize=2 \
- --root=$RPM_BUILD_ROOT
+%py_install
%py_postclean
%endif
%if %{with python3}
-%{__python3} setup.py \
- build --build-base build-3 \
- install --skip-build \
- --optimize=2 \
- --root=$RPM_BUILD_ROOT
+%py3_install
%endif
%clean
================================================================
---- gitweb:
http://git.pld-linux.org/gitweb.cgi/packages/python-augeas.git/commitdiff/7e67b24a266868deb1e8196015384a7e69a8e18a
More information about the pld-cvs-commit
mailing list