Name: golang-1.26 Version: 1.26.1 Release: 1%{?dist} Summary: The Go Programming Language (1.26 series) %global goroot /usr/lib/golang-1.26 %global debug_package %{nil} %global __strip /bin/true AutoReq: no License: BSD-3-Clause URL: https://go.dev Source0: https://go.dev/dl/go%{version}.src.tar.gz BuildRequires: golang >= 1.22 BuildRequires: gcc BuildRequires: glibc-devel Provides: golang-1.26 = %{version} Provides: golang = %{version} %description Go is an open source programming language that makes it simple to build reliable and efficient software. This package provides the 1.26 series. %prep %setup -q -n go %build export GOROOT=%{goroot} export CGO_ENABLED=0 cd src ./make.bash %install mkdir -p %{buildroot}%{goroot} cp -a api bin doc lib misc pkg src %{buildroot}%{goroot}/ mkdir -p %{buildroot}%{_bindir} ln -s %{goroot}/bin/go %{buildroot}%{_bindir}/go ln -s %{goroot}/bin/gofmt %{buildroot}%{_bindir}/gofmt ln -s %{goroot}/bin/go %{buildroot}%{_bindir}/go-1.26 ln -s %{goroot}/bin/gofmt %{buildroot}%{_bindir}/gofmt-1.26 %files %license LICENSE %doc README.md %{_bindir}/go %{_bindir}/gofmt %{_bindir}/go-1.26 %{_bindir}/gofmt-1.26 %{goroot}/ %changelog * Wed Apr 01 2026 Andres - 1.26.1-1 - Initial package