This commit is contained in:
parent
524223508d
commit
9c2ce4d768
@ -36,6 +36,7 @@
|
||||
%global _arch i586
|
||||
%endif
|
||||
%global rust_triple %{_arch}-unknown-linux-%{abi}
|
||||
# to bootstrap, change to bcond_without
|
||||
%bcond_without bootstrap
|
||||
Name: rust
|
||||
Version: 1.15.0
|
||||
@ -49,7 +50,6 @@ Source1: config.toml
|
||||
Source100: %{name}-rpmlintrc
|
||||
# PATCH-FIX-OPENSUSE: Set DT_SONAME when building dylibs
|
||||
Patch1: add-soname.patch
|
||||
BuildRequires: cargo
|
||||
BuildRequires: cmake
|
||||
BuildRequires: curl
|
||||
BuildRequires: gcc-c++
|
||||
@ -68,14 +68,17 @@ ExclusiveArch: %{ix86} x86_64 %{arm} aarch64 ppc64 ppc64le
|
||||
BuildRequires: fdupes
|
||||
%endif
|
||||
%ifnarch %{ix86} x86_64
|
||||
BuildRequires: cargo-bootstrap
|
||||
BuildRequires: rustc-bootstrap <= %{version}
|
||||
BuildRequires: rustc-bootstrap >= %{prev_version}
|
||||
%else
|
||||
%if %{with bootstrap}
|
||||
BuildRequires: cargo-bootstrap
|
||||
BuildRequires: rustc-bootstrap <= %{version}
|
||||
BuildRequires: rustc-bootstrap >= %{prev_version}
|
||||
%else
|
||||
%if %{without bootstrap}
|
||||
BuildRequires: cargo
|
||||
BuildRequires: rust <= %{version}
|
||||
BuildRequires: rust >= %{prev_version}
|
||||
%endif
|
||||
@ -233,4 +236,4 @@ sed -e '/*\//q' src/libbacktrace/backtrace.h \
|
||||
%doc %{_docdir}/%{name}/html/*.js
|
||||
%doc %{_docdir}/%{name}/html/*.css
|
||||
|
||||
%changelog
|
||||
%changelog
|
Loading…
Reference in New Issue
Block a user