[packages/maturin] setup cargo/rust flags for python module
atler
atler at pld-linux.org
Sun Mar 16 03:53:01 CET 2025
commit c6e46969ccd385b85cf42a72bddbc15ccca70d11
Author: Jan Palus <atler at pld-linux.org>
Date: Sun Mar 16 02:08:17 2025 +0100
setup cargo/rust flags for python module
maturin.spec | 4 ++++
1 file changed, 4 insertions(+)
---
diff --git a/maturin.spec b/maturin.spec
index 2e8768c..dda1b43 100644
--- a/maturin.spec
+++ b/maturin.spec
@@ -70,6 +70,8 @@ export CARGO_HOME="$(pwd)/.cargo"
%cargo_build --frozen
%if %{with python3}
+export RUSTFLAGS="%{rpmrustflags}"
+export MATURIN_SETUP_ARGS="%__cargo_common_opts --target %rust_target --target-dir %cargo_targetdir"
%py3_build
%endif
@@ -80,6 +82,8 @@ export CARGO_HOME="$(pwd)/.cargo"
%cargo_install --frozen --root $RPM_BUILD_ROOT%{_prefix} --path $(pwd)
%if %{with python3}
+export RUSTFLAGS="%{rpmrustflags}"
+export MATURIN_SETUP_ARGS="%__cargo_common_opts --target %rust_target --target-dir %cargo_targetdir"
%py3_install
%endif
================================================================
---- gitweb:
http://git.pld-linux.org/gitweb.cgi/packages/maturin.git/commitdiff/c6e46969ccd385b85cf42a72bddbc15ccca70d11
More information about the pld-cvs-commit
mailing list