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
This commit is contained in:
Matej Cepl 2024-08-12 22:30:46 +00:00 committed by Git OBS Bridge
parent 7301b53b54
commit 3b77b1ca19

View File

@ -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