diff --git a/rust.spec b/rust.spec index 1a1492d..657c7e6 100644 --- a/rust.spec +++ b/rust.spec @@ -1,6 +1,6 @@ # Only x86_64 and i686 are Tier 1 platforms at this time. # https://doc.rust-lang.org/nightly/rustc/platform-support.html -%global rust_arches x86_64 i686 armv7hl aarch64 ppc64le s390x +%global rust_arches x86_64 i686 armv7hl aarch64 ppc64le s390x riscv64 # The channel can be stable, beta, or nightly %{!?channel: %global channel stable} @@ -76,15 +76,19 @@ %endif # LLDB isn't available everywhere... +%ifnarch riscv64 %if 0%{?rhel} && 0%{?rhel} < 8 %bcond_with lldb %else %bcond_without lldb %endif +%else +%bcond_with lldb +%endif Name: rust Version: 1.65.0 -Release: 1%{?dist} +Release: 1.0.riscv64%{?dist} Summary: The Rust Programming Language License: (ASL 2.0 or MIT) and (BSD and MIT) # ^ written as: (rust itself) and (bundled libraries) @@ -672,7 +676,7 @@ find -name '*.rs' -type f -perm /111 -exec chmod -v -x '{}' '+' %build %{export_rust_env} -%ifarch %{arm} %{ix86} +%ifarch %{arm} %{ix86} riscv64 # full debuginfo is exhausting memory; just do libstd for now # https://github.com/rust-lang/rust/issues/45854 %if 0%{?rhel} && 0%{?rhel} < 8 @@ -1052,6 +1056,9 @@ end} %changelog +* Fri Nov 04 2022 David Abdurachmanov - 1.65.0-1.0.riscv64 +- Enable riscv64 + * Thu Nov 03 2022 Josh Stone - 1.65.0-1 - Update to 1.65.0. - rust-analyzer now obsoletes rls.