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:
Luke Jones 2017-02-13 20:36:59 +00:00 committed by Git OBS Bridge
parent 5c434839a1
commit f9b6a7ce5b

View File

@ -62,22 +62,22 @@ Conflicts: rustc-bootstrap
Provides: rustc = %{version} Provides: rustc = %{version}
Provides: rustc-stable = %{version} Provides: rustc-stable = %{version}
BuildRoot: %{_tmppath}/%{name}-%{version}-build 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} %if 0%{?suse_version}
BuildRequires: fdupes BuildRequires: fdupes
%endif %endif
%ifarch %{arm} aarch64 ppc64 ppc64le %ifarch %{arm} aarch64 ppc64 ppc64le s390x
BuildRequires: cargo-bootstrap BuildRequires: cargo-bootstrap
BuildRequires: rustc-bootstrap == %{prev_version} BuildRequires: rustc-bootstrap >= %{prev_version}
%else %else
%if %{with bootstrap} || 0%{?leap_version} <= 420200 %if %{with bootstrap} || (0%{?suse_version} < 1330 && 0%{?sle_version} < 120300)
BuildRequires: cargo-bootstrap BuildRequires: cargo-bootstrap
BuildRequires: rustc-bootstrap == %{prev_version} BuildRequires: rustc-bootstrap >= %{prev_version}
%else %else
BuildRequires: cargo BuildRequires: cargo
BuildRequires: rust == %{prev_version} BuildRequires: rust >= %{prev_version}
%endif %endif
%endif %endif