From 3b77b1ca191060f8ac72cff753d75660afcca55fcd04c6f48a713ac7ca0f28b0 Mon Sep 17 00:00:00 2001 From: Matej Cepl Date: Mon, 12 Aug 2024 22:30:46 +0000 Subject: [PATCH] Use %cargo_build macro instead of plain call to cargo. OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-cryptography?expand=0&rev=226 --- python-cryptography.spec | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/python-cryptography.spec b/python-cryptography.spec index e54b64f..e8bd730 100644 --- a/python-cryptography.spec +++ b/python-cryptography.spec @@ -49,6 +49,7 @@ BuildRequires: %{python_module setuptools-rust >= 1.7.0} BuildRequires: %{python_module setuptools} BuildRequires: %{python_module wheel} BuildRequires: cargo >= 1.56.0 +BuildRequires: cargo-packaging BuildRequires: fdupes BuildRequires: libopenssl-devel BuildRequires: pkgconfig @@ -97,7 +98,7 @@ export CARGO_PROFILE_RELEASE_SPLIT_DEBUGINFO=off cd src/rust tar xfv %{S:2} rm -v Cargo.lock -cargo build --release +%cargo_build cd - # https://github.com/pyca/cryptography/issues/9023