From c3fee056cb6ef551f0e73d05208a61724339fbe1 Mon Sep 17 00:00:00 2001 From: madonuko Date: Sat, 28 Sep 2024 01:13:23 +0800 Subject: [PATCH] fix(anda): use %__cargo run --- anda/tools/buildsys/anda/rust-anda.spec | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/anda/tools/buildsys/anda/rust-anda.spec b/anda/tools/buildsys/anda/rust-anda.spec index df25299b68..3efb22203b 100644 --- a/anda/tools/buildsys/anda/rust-anda.spec +++ b/anda/tools/buildsys/anda/rust-anda.spec @@ -51,8 +51,8 @@ Summary: %{summary} %build %define __cargo /usr/bin/env CARGO_HOME=.cargo RUSTC_BOOTSTRAP=1 RUSTFLAGS='-Copt-level=3 -Cdebuginfo=2 -Ccodegen-units=1 -Cstrip=none -Clink-arg=-specs=/usr/lib/rpm/redhat/redhat-package-notes --cap-lints=warn' /usr/bin/cargo %cargo_build -cargo run --release -p xtask -- manpage -cargo run --release -p xtask -- completion +%__cargo run --release -p xtask -- manpage +%__cargo run --release -p xtask -- completion %install %define __cargo /usr/bin/env CARGO_HOME=.cargo RUSTC_BOOTSTRAP=1 RUSTFLAGS='-Copt-level=3 -Cdebuginfo=2 -Ccodegen-units=1 -Cstrip=none -Clink-arg=-specs=/usr/lib/rpm/redhat/redhat-package-notes --cap-lints=warn' /usr/bin/cargo