From a4edbb902f6d12519a37ccd2ba6787025398514d Mon Sep 17 00:00:00 2001 From: Chunmei Xu Date: Wed, 5 Jun 2024 15:02:11 +0800 Subject: [PATCH] correct cargo_prep usage Signed-off-by: Chunmei Xu --- python-cryptography.spec | 15 ++++++++++++--- 1 file changed, 12 insertions(+), 3 deletions(-) diff --git a/python-cryptography.spec b/python-cryptography.spec index fe65ae7..7fc8d0a 100644 --- a/python-cryptography.spec +++ b/python-cryptography.spec @@ -1,4 +1,4 @@ -%define anolis_release 2 +%define anolis_release 3 %bcond_with tests %{!?python3_pkgversion:%global python3_pkgversion 3} @@ -54,11 +54,17 @@ Obsoletes: python%{python3_pkgversion}-cryptography-vectors < 3.4.7 cryptography is a package designed to expose cryptographic primitives and recipes to Python developers. + %prep %autosetup -p1 -N -n %{srcname}-%{version} %autopatch -p1 1 + tar -xjf %{SOURCE1} -%cargo_prep -v vendor +args="'-V' '1'" +rpm -q rust-packaging > /dev/null || args="'-v' 'vendor'" +echo $args +%cargo_prep $args +cat .cargo/config # Remove cosmetical pytest-subtests 0.10.0 option sed -i 's,--no-subtests-shortletter,,' pyproject.toml @@ -105,7 +111,10 @@ PYTHONPATH=${PWD}/vectors:%{buildroot}%{python3_sitearch} \ %changelog -* Wed May 31 2024 mgb01105731 - 42.0.5-2 +* Wed Jun 05 2024 Chunmei Xu - 42.0.5-3 +- correct cargo_prep usage + +* Fri May 31 2024 mgb01105731 - 42.0.5-2 - rebuild for loongarch64 * Wed May 29 2024 mgb01105731 - 42.0.5-1 -- Gitee