Set conditional builds up correctly.
OBS-URL: https://build.opensuse.org/package/show/devel:languages:rust/rust?expand=0&rev=63
This commit is contained in:
parent
5c434839a1
commit
f9b6a7ce5b
12
rust.spec
12
rust.spec
@ -62,22 +62,22 @@ Conflicts: rustc-bootstrap
|
||||
Provides: rustc = %{version}
|
||||
Provides: rustc-stable = %{version}
|
||||
BuildRoot: %{_tmppath}/%{name}-%{version}-build
|
||||
ExclusiveArch: %{ix86} x86_64 %{arm} aarch64 ppc64 ppc64le
|
||||
ExclusiveArch: %{ix86} x86_64 %{arm} aarch64 ppc64 ppc64le s390x
|
||||
|
||||
%if 0%{?suse_version}
|
||||
BuildRequires: fdupes
|
||||
%endif
|
||||
|
||||
%ifarch %{arm} aarch64 ppc64 ppc64le
|
||||
%ifarch %{arm} aarch64 ppc64 ppc64le s390x
|
||||
BuildRequires: cargo-bootstrap
|
||||
BuildRequires: rustc-bootstrap == %{prev_version}
|
||||
BuildRequires: rustc-bootstrap >= %{prev_version}
|
||||
%else
|
||||
%if %{with bootstrap} || 0%{?leap_version} <= 420200
|
||||
%if %{with bootstrap} || (0%{?suse_version} < 1330 && 0%{?sle_version} < 120300)
|
||||
BuildRequires: cargo-bootstrap
|
||||
BuildRequires: rustc-bootstrap == %{prev_version}
|
||||
BuildRequires: rustc-bootstrap >= %{prev_version}
|
||||
%else
|
||||
BuildRequires: cargo
|
||||
BuildRequires: rust == %{prev_version}
|
||||
BuildRequires: rust >= %{prev_version}
|
||||
%endif
|
||||
%endif
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user