go/go.spec

118 lines
3.9 KiB
RPMSpec
Raw Permalink Normal View History

#
# spec file for package go
#
# Copyright (c) 2023 SUSE LLC
#
# All modifications and additions to the file contributed by third parties
# remain the property of their copyright owners, unless otherwise agreed
# upon. The license for this file, and modifications and additions to the
# file, is the same license as for the pristine package itself (unless the
# license for the pristine package is not an Open Source License, in which
# case the license is the MIT License). An "Open Source License" is a
# license that conforms to the Open Source Definition (Version 1.9)
# published by the Open Source Initiative.
# Please submit bugfixes or comments via https://bugs.opensuse.org/
#
# NOTE: This logic must come from the latest go1.x package specfile.
# We only build go-race on supported systems.
%if 0%{suse_version} >= 1500 || 0%{?sle_version} >= 150000
%define tsan_arch x86_64 aarch64 s390x ppc64le
%else
# Cannot use {nil} here (ifarch doesn't like it) so just make up a fake
# architecture that no build will ever match.
%define tsan_arch openSUSE_FAKE_ARCH
%endif
Name: go
Version: 1.21
# Version must always be a valid golang(API) version
%define api_version %{version}
Release: 0
Summary: A compiled, garbage-collected, concurrent programming language
- Update to weekly.2001-09-01 version * archive/tar: support symlinks. * big: fix nat.scan bug. (thanks Evan Shaw) * bufio: handle a "\r\n" that straddles the buffer. add openbsd. avoid redundant bss declarations. fix unused parameters. fix windows/amd64 build with newest mingw-w64. * bytes: clarify that NewBuffer is not for beginners. * cgo: explain how to free something. fix GoBytes. fixes callback for windows amd64. note that CString result must be freed. * effective_go: convert to use tmpltohtml. * exp/norm: reduced the size of the byte buffer used by reorderBuffer by half by reusing space when combining. a few minor fixes to support the implementation of norm. added implementation for []byte versions of methods. * exp/template/html: add some tests for ">" attributes. added handling for URL attributes. differentiate URL-valued attributes (such as href). reworked escapeText to recognize attr boundaries. * exp/template: moved from exp to the main tree. * exp/wingui: made compatible with windows/amd64. * flag: add Parsed, restore Usage. * gc: add openbsd. escape analysis. fix build on Plan 9. fix div bug. fix pc/line table. fix some spurious leaks. make static initialization more static. remove JCXZ; add JCXZW, JCXZL, and JCXZQ instructions. shuffle #includes. simplify escape analysis recursion. * go/ast cleanup: base File/PackageExports on FilterFile/FilterPackage code. adjustments to filter function. fix ast.MergePackageFiles to collect infos about imports. generalize ast.FilterFile. * go/build: add test support & use in gotest. separate test imports out when scanning. * go/parser: fix type switch scoping. fix type switch scoping. * gob: explain that Debug isn't useful unless it's compiled in. * gobuilder: increase log limit. OBS-URL: https://build.opensuse.org/package/show/devel:languages:go/go?expand=0&rev=84
2011-09-02 11:15:17 +02:00
License: BSD-3-Clause
Group: Development/Languages/Go
Url: http://golang.org
Source: README
Recommends: go-doc = %{version}
ExclusiveArch: %ix86 x86_64 %arm aarch64 ppc64 ppc64le s390x riscv64
# We provide golang(API) so that projects can Prefer: go. Any project using Go
# code with golang(API) BuildRequires should add Prefer: go.
Provides: golang(API) = %{api_version}
# We provide this for RH/Fedora compatibility
Provides: golang = %{version}
# Make this both Requires and BuildRequires go1.x so that we get build errors
# if it is missing.
BuildRequires: go%{api_version}
Requires: go%{api_version}
%description
Go is an expressive, concurrent, garbage collected systems programming language
that is type safe and memory safe. It has pointers but no pointer arithmetic.
Go has fast builds, clean syntax, garbage collection, methods for any type, and
run-time reflection. It feels like a dynamic language but has the speed and
safety of a static language.
%package doc
Summary: Go documentation
License: BSD-3-Clause
Group: Documentation/Other
# We provide this for RH/Fedora compatibility
Provides: golang-docs = %{version}
Requires: go = %{version}
Supplements: go = %{version}
Requires: go%{api_version}-doc
%description doc
Go examples and documentation.
%ifarch %{tsan_arch}
# boo#1052528
%package race
Summary: Go runtime race detector
License: NCSA or MIT
Group: Development/Languages/Go
Url: https://compiler-rt.llvm.org/
Requires: go = %{version}
Supplements: go = %{version}
ExclusiveArch: %{tsan_arch}
# We provide this for RH/Fedora compatibility
Provides: golang-race = %{version}
# Make this both Requires and BuildRequires go1.x-race so that we get build
# errors if it is missing.
BuildRequires: go%{api_version}-race
Requires: go%{api_version}-race
%description race
Go runtime race detector libraries. Install this package if you wish to use the
-race option, in order to detect race conditions present in your Go programs.
%endif
%prep
%build
%install
install -D -m 0644 %{S:0} %{buildroot}/usr/share/doc/packages/go/README
install -D -m 0644 %{S:0} %{buildroot}/usr/share/doc/packages/go-doc/README
%ifarch %{tsan_arch}
install -D -m 0644 %{S:0} %{buildroot}/usr/share/doc/packages/go-race/README
%endif
%files
%defattr(-,root,root,-)
%doc /usr/share/doc/packages/go/
%files doc
%defattr(-,root,root,-)
%doc /usr/share/doc/packages/go-doc/
%ifarch %{tsan_arch}
%files race
%doc /usr/share/doc/packages/go-race/
%defattr(-,root,root,-)
%endif
%changelog