From 4018905f4149cba4402499f4ddbfbc14c72aa7c3 Mon Sep 17 00:00:00 2001 From: Cappy Ishihara Date: Mon, 10 Oct 2022 11:17:22 +0700 Subject: [PATCH] make dist exclusive to x86_64 --- anda/rust/sccache/rust-sccache.spec | 23 ++++++++++++++++++++++- 1 file changed, 22 insertions(+), 1 deletion(-) diff --git a/anda/rust/sccache/rust-sccache.spec b/anda/rust/sccache/rust-sccache.spec index 785dc42284..e39f7f09a9 100644 --- a/anda/rust/sccache/rust-sccache.spec +++ b/anda/rust/sccache/rust-sccache.spec @@ -7,7 +7,7 @@ Name: rust-sccache Version: 0.3.0 -Release: 2%{?dist} +Release: 3%{?dist} Summary: Ccache-like tool License: Apache-2.0 @@ -40,6 +40,19 @@ Summary: %{summary} #%%{_bindir}/sccache-dist %{_bindir}/sccache + +# if x86_64 +%ifarch x86_64 +%package -n %{crate}-dist +Summary: sccache distributed server + +%description -n %{crate}-dist +Distributed server for sccache. + +%files -n %{crate}-dist +%{_bindir}/sccache-dist +%endif + %package devel Summary: %{summary} BuildArch: noarch @@ -480,10 +493,18 @@ use the "void" feature of the "%{crate}" crate. %cargo_prep_online %build +%ifarch x86_64 +%cargo_build -a +%else %cargo_build +%endif %install +%ifarch x86_64 +%cargo_install -a +%else %cargo_install +%endif %changelog