[packages/python-cryptography] automatic change: use py_build/py_install macros
jajcus
jajcus at pld-linux.org
Sat Nov 28 18:19:02 CET 2015
commit 6d1f8f7445583f48ede7a3b1b846b8eae8464994
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-cryptography.spec | 16 ++++------------
1 file changed, 4 insertions(+), 12 deletions(-)
---
diff --git a/python-cryptography.spec b/python-cryptography.spec
index 3882113..89f3970 100644
--- a/python-cryptography.spec
+++ b/python-cryptography.spec
@@ -99,12 +99,12 @@ Ten pakiet zawiera moduły Pythona 3.
export CFLAGS="%{rpmcflags}"
%if %{with python2}
-%{__python} setup.py build \
+%py_build \
--build-base build-2
%endif
%if %{with python2}
-%{__python3} setup.py build \
+%py3_build \
--build-base build-3
%endif
@@ -112,11 +112,7 @@ export CFLAGS="%{rpmcflags}"
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
%{__rm} $RPM_BUILD_ROOT%{py_sitedir}/cryptography/hazmat/bindings/__pycache__/*.c
@@ -124,11 +120,7 @@ rm -rf $RPM_BUILD_ROOT
%endif
%if %{with python3}
-%{__python3} setup.py \
- build --build-base build-3 \
- install --skip-build \
- --optimize=2 \
- --root=$RPM_BUILD_ROOT
+%py3_install
%{__rm} $RPM_BUILD_ROOT%{py3_sitedir}/cryptography/hazmat/primitives/src/*.[ch]
%endif
================================================================
---- gitweb:
http://git.pld-linux.org/gitweb.cgi/packages/python-cryptography.git/commitdiff/6d1f8f7445583f48ede7a3b1b846b8eae8464994
More information about the pld-cvs-commit
mailing list