1 %debuginforustflags -C debuginfo=%{expand:%%define __dic_%{?_enable_debug_packages} 1}%{?__dic_1:2}%{!?__dic_1:0}%{expand:%%undefine __dic_%{?_enable_debug_packages}}
2 %rpmrustflags %debuginforustflags
3 %rust_arches %{x8664} %{ix86} x32 aarch64 armv6hl armv7hl armv7hnl
5 %__cargo /usr/bin/cargo
6 %__cargo_common_opts -v --offline
9 PKG_CONFIG_ALLOW_CROSS=1 \\\
11 RUSTFLAGS="${RUSTFLAGS:-%rpmrustflags}" \\\
12 %{?__jobs:CARGO_BUILD_JOBS="${CARGO_BUILD_JOBS:-%{__jobs}}"} \\\
13 %{__cargo} %{__cargo_common_opts} build %{!?debug:--release} \\\
15 --target x86_64-unknown-linux-gnux32 \\\
21 PKG_CONFIG_ALLOW_CROSS=1 \\\
23 RUSTFLAGS="${RUSTFLAGS:-%rpmrustflags}" \\\
24 %{?__jobs:CARGO_BUILD_JOBS="${CARGO_BUILD_JOBS:-%{__jobs}}"} \\\
25 %{__cargo} %{__cargo_common_opts} install \\\
27 --target x86_64-unknown-linux-gnux32 \\\