[packages/python3-dugong] automatic change: use py_build/py_install macros
jajcus
jajcus at pld-linux.org
Sat Nov 28 18:56:30 CET 2015
commit 33f684fce7347ee1adb3722a11249e49832cde19
Author: Jacek Konieczny <jajcus at jajcus.net>
Date: Sat Nov 28 18:55:57 2015 +0100
automatic change: use py_build/py_install macros
python3-dugong.spec | 11 ++---------
1 file changed, 2 insertions(+), 9 deletions(-)
---
diff --git a/python3-dugong.spec b/python3-dugong.spec
index 10cde3b..d14a21b 100644
--- a/python3-dugong.spec
+++ b/python3-dugong.spec
@@ -37,10 +37,7 @@ Dokumentacja API %{module}.
%setup -q -n %{module}-%{version}
%build
-# CC/CFLAGS is only for arch packages - remove on noarch packages
-CC="%{__cc}" \
-CFLAGS="%{rpmcflags}" \
-%{__python3} setup.py build --build-base build-3 %{?with_tests:test}
+%py3_build %{?with_tests:test}
%if %{with doc}
cd docs
@@ -51,11 +48,7 @@ rm -rf _build/html/_sources
%install
rm -rf $RPM_BUILD_ROOT
-%{__python3} setup.py \
- build --build-base build-3 \
- install --skip-build \
- --optimize=2 \
- --root=$RPM_BUILD_ROOT
+%py3_install
# in case there are examples provided
install -d $RPM_BUILD_ROOT%{_examplesdir}/python3-%{module}-%{version}
================================================================
---- gitweb:
http://git.pld-linux.org/gitweb.cgi/packages/python3-dugong.git/commitdiff/33f684fce7347ee1adb3722a11249e49832cde19
More information about the pld-cvs-commit
mailing list