Summary: Go compiler and tools
Summary(pl.UTF-8): Kompilator języka Go i narzędzia
Name: golang
-Version: 1.16.8
+Version: 1.18.8
Release: 1
# source tree includes several copies of Mark.Twain-Tom.Sawyer.txt under Public Domain
License: BSD and Public Domain
Group: Development/Languages
# Source0Download: https://golang.org/dl/
Source0: https://storage.googleapis.com/golang/go%{version}.src.tar.gz
-# Source0-md5: 92e69a5e1bb6ea5e7498d12d03160032
+# Source0-md5: 4da6e6a0f709a4fe9f5b1033a8439a09
Patch0: ca-certs.patch
Patch1: 0001-Don-t-use-the-bundled-tzdata-at-runtime-except-for-t.patch
URL: https://golang.org/
BuildRequires: bash
+BuildRequires: rpm-build >= 4.6
BuildRequires: rpm-pythonprov
# The compiler is written in Go. Needs go(1.4+) compiler for build.
%if %{with bootstrap}
BuildRequires: glibc-static
BuildRequires: hostname
BuildRequires: pcre-devel
+BuildRequires: rpmbuild(macros) >= 2.007
BuildRequires: tzdata
%endif
Requires: ca-certificates
Conflicts: gcc-go
-ExclusiveArch: %{ix86} %{x8664} %{arm} aarch64 mips64 mips64le ppc64 ppc64le s390x
+ExclusiveArch: %{ix86} %{x8664} %{armv5} %{armv6} %{armv7} aarch64 mips mipsel mips64 mips64el ppc64 ppc64le riscv64 s390x
BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
%define no_install_post_strip 1
%ifarch %{x8664}
%define GOARCH amd64
%endif
-%ifarch %{arm}
+%ifarch %{armv5}
%define GOARCH arm
+%define GOARM 5
+%endif
+%ifarch %{armv6}
+%define GOARCH arm
+%define GOARM 6
+%endif
+%ifarch %{armv7}
+%define GOARCH arm
+%define GOARM 7
%endif
%ifarch aarch64
%define GOARCH arm64
%endif
-%ifarch mips64
-%define GOARCH mips64x
+%ifarch mipsel
+%define GOARCH mipsle
+%endif
+%ifarch mips64el
+%define GOARCH mips64le
%endif
-%ifarch ppc64 ppc64le s390x
+%ifarch mips mips64 ppc64 ppc64le riscv64 s390x
%define GOARCH %{_arch}
%endif
export GOOS=linux
export GOARCH=%{GOARCH}
-%if %{without external_linker}
+%{?GOARM:export GOARM=%{GOARM}}
+%ifarch %{ix86}
+%ifarch %{x86_with_sse2}
+export GO386=sse2
+%else
+export GO386=softfloat
+%endif
+%endif
+%if %{without ext_linker}
export GO_LDFLAGS="-linkmode internal"
%endif
%if %{with cgo}