From: Jacek Konieczny Date: Sat, 28 Nov 2015 17:06:42 +0000 (+0100) Subject: automatic change: use py_build/py_install macros X-Git-Tag: auto/th/python3-cryptography-35.0.0-0.1~33 X-Git-Url: http://git.pld-linux.org/?p=packages%2Fpython3-cryptography.git;a=commitdiff_plain;h=6d1f8f7445583f48ede7a3b1b846b8eae8464994 automatic change: use py_build/py_install macros --- 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