ef048a6290
- Enable build for %arm OBS-URL: https://build.opensuse.org/request/show/576997 OBS-URL: https://build.opensuse.org/package/show/devel:languages:go/go?expand=0&rev=309
98 lines
2.9 KiB
RPMSpec
98 lines
2.9 KiB
RPMSpec
#
|
|
# spec file for package go
|
|
#
|
|
# Copyright (c) 2017 SUSE LINUX GmbH, Nuernberg, Germany.
|
|
#
|
|
# 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 http://bugs.opensuse.org/
|
|
#
|
|
# nodebuginfo
|
|
|
|
# By default we don't include tsan. It's only supported on amd64.
|
|
%define tsan_arch x86_64
|
|
|
|
%define short_version 1.9
|
|
|
|
Name: go
|
|
Version: 1.9.4
|
|
Release: 0
|
|
BuildRoot: %{_tmppath}/%{name}-%{version}-build
|
|
Summary: A compiled, garbage-collected, concurrent programming language
|
|
License: BSD-3-Clause
|
|
Group: Development/Languages/Other
|
|
Url: http://golang.org
|
|
Source: README
|
|
Recommends: go-doc = %{version}
|
|
ExclusiveArch: %ix86 x86_64 %arm aarch64 ppc64 ppc64le s390x
|
|
Requires: go%{short_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
|
|
Requires: go = %{version}
|
|
Requires: go%{short_version}-doc
|
|
Provides: go-doc = %{version}
|
|
|
|
%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/Other
|
|
Url: https://compiler-rt.llvm.org/
|
|
Requires: go = %{version}
|
|
Supplements: go = %{version}
|
|
ExclusiveArch: %{tsan_arch}
|
|
Requires: go%{short_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
|