1 %debuginforustflags %{expand:%%define __dic_%{?_enable_debug_packages} 1}%{?__dic_1: -g}%{expand:%%undefine __dic_%{?_enable_debug_packages}}
2 %rpmrustflags %debuginforustflags
4 %__cargo /usr/bin/cargo
5 %__cargo_common_opts -v --offline
7 RUSTFLAGS="${RUSTFLAGS:-%rpmrustflags}" \
8 %{?__jobs:CARGO_BUILD_JOBS="${CARGO_BUILD_JOBS:-%{__jobs}}"} \
9 %{__cargo} %{__cargo_common_opts} build %{!?debug:--release} \
12 RUSTFLAGS="${RUSTFLAGS:-%rpmrustflags}" \
13 %{?__jobs:CARGO_BUILD_JOBS="${CARGO_BUILD_JOBS:-%{__jobs}}"} \
14 %{__cargo} %{__cargo_common_opts} install \