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
7 i586-unknown-linux-gnu\\\
9 %ifarch i686 pentium3 pentium4 athlon\
10 i686-unknown-linux-gnu\\\
13 x86_64-unknown-linux-gnu\\\
16 x86_64-unknown-linux-gnux32\\\
19 aarch64-unknown-linux-gnu\\\
22 arm-unknown-linux-gnueabihf\\\
25 armv7-unknown-linux-gnueabihf\\\
28 thumbv7neon-unknown-linux-gnueabihf\\\
32 %cargo_targetdir target
33 %cargo_objdir %{?buildsubdir:%{_builddir}/%{buildsubdir}/}%{cargo_targetdir}/%{cargo_target}/%{!?debug:release}%{?debug:debug}
35 %__cargo /usr/bin/cargo
36 %__cargo_common_opts -v --offline
40 CFLAGS="%{rpmcppflags} %{rpmcflags}" \\\
41 CXXFLAGS="%{rpmcppflags} %{rpmcxxflags}" \\\
42 LDFLAGS="%{rpmldflags}" \\\
43 PKG_CONFIG_ALLOW_CROSS=1 \\\
44 RUSTFLAGS="${RUSTFLAGS:-%rpmrustflags}" \\\
45 %{?__jobs:CARGO_BUILD_JOBS="${CARGO_BUILD_JOBS:-%{__jobs}}"} \\\
46 %{__cargo} %{__cargo_common_opts} build %{!?debug:--release} \\\
47 --target %{cargo_target} \\\
48 --target-dir %{cargo_targetdir} \\\
54 CFLAGS="%{rpmcppflags} %{rpmcflags}" \\\
55 CXXFLAGS="%{rpmcppflags} %{rpmcxxflags}" \\\
56 LDFLAGS="%{rpmldflags}" \\\
57 PKG_CONFIG_ALLOW_CROSS=1 \\\
58 RUSTFLAGS="${RUSTFLAGS:-%rpmrustflags}" \\\
59 %{?__jobs:CARGO_BUILD_JOBS="${CARGO_BUILD_JOBS:-%{__jobs}}"} \\\
60 %{__cargo} %{__cargo_common_opts} install \\\
61 --target %{cargo_target} \\\
62 --target-dir %{cargo_targetdir} \\\