make dist exclusive to x86_64

This commit is contained in:
Cappy Ishihara
2022-10-10 11:17:22 +07:00
parent 9fe1b341dd
commit 4018905f41
+22 -1
View File
@@ -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