File golang-github-go4org-go4.spec of Package golang-github-go4org-go4

#
# spec file for package golang-github-go4org-go4
#
# Copyright (c) 2020 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/
#


%global provider        github
%global provider_tld    com
%global project         go4org
%global repo            go4
%global provider_prefix %{provider}.%{provider_tld}/%{project}/%{repo}
%global import_path     %{provider_prefix}

Name:           golang-%{provider}-%{project}-%{repo}
Version:        0.0.0+git20200411.f5505b9
Release:        0
Summary:        Collection of packages for Go programmers
License:        Apache-2.0
Group:          Development/Languages/Golang
URL:            https://%{provider_prefix}
Source0:        %{repo}-%{version}.tar.gz
Source1:        vendor.tar.gz
Source2:        rpmlintrc
BuildRoot:      %{_tmppath}/%{name}-%{version}-build

BuildArch:      noarch

BuildRequires:  fdupes
BuildRequires:  golang-packaging

%{go_nostrip}
%{go_provides}

%description
go4.org is a collection of packages for Go programmers.

They started out living in Perkeep's repo and elsewhere but they have
nothing to do with Perkeep, so we're moving them here.

Details

 * single repo. go4 is a single repo. That means things can be changed and rearranged
   globally atomically with ease and confidence.

 * no backwards compatibility. go4 makes no backwards compatibility promises. If you want
   to use go4, vendor it. And next time you update your vendor tree, update to the latest
   API if things in go4 changed. The plan is to eventually provide tools to make this easier.

 * forward progress because we have no backwards compatibility, it's always okay to change
   things to make things better. That also means the bar for contributions is lower. We don't
   have to get the API 100% correct in the first commit.

 * no Go version policy go4 packages are usually built and tested with the latest Go stable
   version. However, go4 has no overarching version policy; each package can declare its own
   set of supported Go versions.

 * code review contributions must be code-reviewed. We're trying out Gerrithub, to see if we
   can find a mix of Github Pull Requests and Gerrit that works well for many people. We'll see.

 * CLA compliant contributors must agree to the Google CLA (the same as Go itself). This ensures
   we can move things into Go as necessary in the future. It also makes lawyers at various
   companies happy. The CLA is not a copyright assignment; you retain the copyright on your work.
   The CLA just says that your work is open source and you have permission to open source it.
   See https://golang.org/doc/contribute.html#cla

 * docs, tests, portability all code should be documented in the normal Go style, have tests,
   and be portable to different operating systems and architectures. We'll try to get builders
   in place to help run the tests on different OS/arches. For now we have Travis at least.

%prep
%setup -q -n %{repo}-%{version}
%setup -q -D -T -a 1 -n %{repo}-%{version}

%build
%goprep %{import_path}
%gobuild --mod=vendor ""...

%install
%goinstall
%gosrc
%gofilelist
%fdupes %{buildroot}%{_prefix}

%check
%gotest --mod=vendor ""...

%files -f file.lst
%doc README.md
%license LICENSE

%changelog
openSUSE Build Service is sponsored by