Blame golang-gotest.spec

999c68b
# Generated by go2rpm
999c68b
%bcond_without check
999c68b
999c68b
# https://github.com/gotestyourself/gotest.tools
65ee3b7
%global goipath         gotest.tools
999c68b
%global forgeurl        https://github.com/gotestyourself/gotest.tools
ce1b544
Version:                3.0.3
999c68b
999c68b
%gometa
999c68b
65ee3b7
%global goaltipaths     gotest.tools/v3
9760810
999c68b
%global common_description %{expand:
999c68b
A collection of packages to augment the Go testing package and support common
999c68b
patterns.}
999c68b
999c68b
%global golicenses      LICENSE LICENSE-difflib
999c68b
%global godocs          CONTRIBUTING.md README.md
999c68b
999c68b
Name:           %{goname}
ce1b544
Release:        1%{?dist}
999c68b
Summary:        A collection of packages to augment the Go testing package
999c68b
999c68b
# Upstream license specification: BSD-3-Clause and Apache-2.0
999c68b
# ASL 2.0: main package
999c68b
# BSD: internal/difflib
999c68b
License:        BSD and ASL 2.0
999c68b
URL:            %{gourl}
999c68b
Source0:        %{gosource}
999c68b
999c68b
BuildRequires:  golang(github.com/google/go-cmp/cmp)
999c68b
BuildRequires:  golang(github.com/pkg/errors)
999c68b
BuildRequires:  golang(github.com/spf13/pflag)
999c68b
BuildRequires:  golang(golang.org/x/tools/go/ast/astutil)
999c68b
BuildRequires:  golang(golang.org/x/tools/go/loader)
999c68b
BuildRequires:  golang(golang.org/x/tools/imports)
999c68b
999c68b
%description
999c68b
%{common_description}
999c68b
999c68b
%gopkg
999c68b
999c68b
%prep
999c68b
%goprep
999c68b
mv internal/difflib/LICENSE LICENSE-difflib
999c68b
999c68b
%install
999c68b
%gopkginstall
999c68b
999c68b
%if %{with check}
999c68b
%check
0cd6cd8
sed -i "s|gotest.tools/v3|gotest.tools|" $(find . -iname "*.go" -type f)
999c68b
# poll: needs network
0cd6cd8
%gocheck -d poll -d assert/cmp -d assert/opt
999c68b
%endif
999c68b
999c68b
%gopkgfiles
999c68b
999c68b
%changelog
ce1b544
* Sat Dec 26 10:05:21 CET 2020 Robert-André Mauchin <zebob.m@gmail.com> - 3.0.3-1
ce1b544
- Update to 3.0.3
ce1b544
- Close: rhbz#1886649
ce1b544
5886071
* Sat Aug 01 2020 Fedora Release Engineering <releng@fedoraproject.org> - 3.0.2-4
5886071
- Second attempt - Rebuilt for
5886071
  https://fedoraproject.org/wiki/Fedora_33_Mass_Rebuild
5886071
32d846d
* Mon Jul 27 2020 Fedora Release Engineering <releng@fedoraproject.org> - 3.0.2-3
32d846d
- Rebuilt for https://fedoraproject.org/wiki/Fedora_33_Mass_Rebuild
32d846d
3140edb
* Sat Jul 25 23:30:04 CEST 2020 Robert-André Mauchin <zebob.m@gmail.com> - 3.0.2-2
3140edb
- Add alternative import path
3140edb
9760810
* Sat Jul 25 22:43:31 CEST 2020 Robert-André Mauchin <zebob.m@gmail.com> - 3.0.2-1
9760810
- Update to 3.0.2
9760810
8048d57
* Thu Jan 30 01:46:48 CET 2020 Robert-André Mauchin <zebob.m@gmail.com> - 3.0.0-1.20200130gita1378ce
8048d57
- Bump to commit a1378ce1d2f4f9e556528a94613c9e7536aa6b9d
8048d57
4a6d726
* Wed Jan 29 2020 Fedora Release Engineering <releng@fedoraproject.org> - 2.3.0-3
4a6d726
- Rebuilt for https://fedoraproject.org/wiki/Fedora_32_Mass_Rebuild
4a6d726
8a465dd
* Thu Jul 25 2019 Fedora Release Engineering <releng@fedoraproject.org> - 2.3.0-2
8a465dd
- Rebuilt for https://fedoraproject.org/wiki/Fedora_31_Mass_Rebuild
8a465dd
999c68b
* Sat May 04 17:56:46 CEST 2019 Robert-André Mauchin <zebob.m@gmail.com> - 2.3.0-1
999c68b
- Initial package