diff --git a/golang.spec b/golang.spec index abe45e94766ca6f99865db0838bb3662a94d1457..1c3946415938c739a287cb43f9e45ec640a95639 100644 --- a/golang.spec +++ b/golang.spec @@ -1,4 +1,4 @@ -%define anolis_release 1 +%define anolis_release 2 # Disable debuginfo packages %global debug_package %{nil} @@ -42,7 +42,11 @@ %endif # Build golang shared objects for stdlib +%ifarch riscv64 +%bcond_with shared +%else %bcond_without shared +%endif # Pre build std lib with -race enabled # Disabled due to 1.20 new cache usage, see 1.20 upstream release notes @@ -58,6 +62,9 @@ %ifarch loongarch64 %global gohostarch loong64 %endif +%ifarch riscv64 +%global gohostarch riscv64 +%endif # Comment out go_patch as needed %global go_api 1.20 @@ -628,6 +635,9 @@ fi %files docs -f go-docs.list %changelog +* Fri Nov 10 2023 U2FsdGVkX1 - 1.20.10-2 +- Add riscv64 support + * Sat Oct 28 2023 Funda Wang - 1.20.10-1 - New version 1.20.10