2019-05-16 21:22:31 +00:00
|
|
|
# Generated by go2rpm
|
2018-04-21 19:55:42 +00:00
|
|
|
%bcond_without check
|
|
|
|
|
2019-05-16 21:22:31 +00:00
|
|
|
# https://github.com/dominikh/go-tools
|
2018-04-21 19:55:42 +00:00
|
|
|
%global goipath honnef.co/go/tools
|
|
|
|
%global forgeurl https://github.com/dominikh/go-tools
|
2020-08-06 13:17:35 +00:00
|
|
|
Version: 2020.1.5
|
|
|
|
%global tag 2020.1.5
|
2019-05-16 21:22:31 +00:00
|
|
|
|
|
|
|
%gometa
|
2018-04-21 19:55:42 +00:00
|
|
|
|
|
|
|
%global common_description %{expand:
|
2019-05-16 21:22:31 +00:00
|
|
|
honnef.co/go/tools/... is a collection of tools and libraries for working with
|
|
|
|
Go code, including linters and static analysis, most prominently staticcheck.}
|
2018-04-21 19:55:42 +00:00
|
|
|
|
2020-08-06 13:17:35 +00:00
|
|
|
%global golicenses LICENSE
|
2019-05-16 21:22:31 +00:00
|
|
|
%global godocs README.md
|
2018-04-21 19:55:42 +00:00
|
|
|
|
|
|
|
Name: %{goname}
|
2020-07-27 23:52:27 +00:00
|
|
|
Release: 2%{?dist}
|
2019-05-16 21:22:31 +00:00
|
|
|
Summary: Collection of static analysis tools for working with Go code
|
|
|
|
|
|
|
|
# Upstream license specification: BSD-3-Clause and MIT
|
|
|
|
License: BSD and MIT
|
2018-04-21 19:55:42 +00:00
|
|
|
URL: %{gourl}
|
2019-05-16 21:22:31 +00:00
|
|
|
Source0: %{gosource}
|
2018-04-21 19:55:42 +00:00
|
|
|
|
2019-05-16 21:22:31 +00:00
|
|
|
BuildRequires: golang(github.com/BurntSushi/toml)
|
2019-08-02 22:11:24 +00:00
|
|
|
BuildRequires: golang(github.com/google/renameio)
|
2019-05-16 21:22:31 +00:00
|
|
|
BuildRequires: golang(github.com/kisielk/gotool)
|
2019-08-02 22:11:24 +00:00
|
|
|
BuildRequires: golang(github.com/rogpeppe/go-internal/modfile)
|
|
|
|
BuildRequires: golang(golang.org/x/mod/module)
|
|
|
|
BuildRequires: golang(golang.org/x/tools/go/analysis)
|
|
|
|
BuildRequires: golang(golang.org/x/tools/go/analysis/analysistest)
|
|
|
|
BuildRequires: golang(golang.org/x/tools/go/analysis/passes/inspect)
|
2019-05-16 21:22:31 +00:00
|
|
|
BuildRequires: golang(golang.org/x/tools/go/ast/astutil)
|
2019-08-02 22:11:24 +00:00
|
|
|
BuildRequires: golang(golang.org/x/tools/go/ast/inspector)
|
2019-05-16 21:22:31 +00:00
|
|
|
BuildRequires: golang(golang.org/x/tools/go/buildutil)
|
2019-08-02 22:11:24 +00:00
|
|
|
BuildRequires: golang(golang.org/x/tools/go/gcexportdata)
|
2019-05-16 21:22:31 +00:00
|
|
|
BuildRequires: golang(golang.org/x/tools/go/loader)
|
|
|
|
BuildRequires: golang(golang.org/x/tools/go/packages)
|
2019-08-02 22:11:24 +00:00
|
|
|
BuildRequires: golang(golang.org/x/tools/go/types/objectpath)
|
2019-05-16 21:22:31 +00:00
|
|
|
BuildRequires: golang(golang.org/x/tools/go/types/typeutil)
|
|
|
|
BuildRequires: golang(golang.org/x/tools/refactor/importgraph)
|
2018-04-21 19:55:42 +00:00
|
|
|
|
|
|
|
%description
|
|
|
|
%{common_description}
|
|
|
|
|
2019-05-16 21:22:31 +00:00
|
|
|
%gopkg
|
2018-04-21 19:55:42 +00:00
|
|
|
|
|
|
|
%prep
|
2019-05-16 21:22:31 +00:00
|
|
|
%goprep
|
|
|
|
|
|
|
|
%build
|
2019-08-02 22:19:54 +00:00
|
|
|
for cmd in cmd/go-module-query cmd/keyify cmd/rdeps cmd/staticcheck cmd/structlayout-optimize cmd/structlayout-pretty cmd/structlayout; do
|
2019-05-16 21:22:31 +00:00
|
|
|
%gobuild -o %{gobuilddir}/bin/$(basename $cmd) %{goipath}/$cmd
|
2018-04-21 19:55:42 +00:00
|
|
|
done
|
|
|
|
|
|
|
|
%install
|
2019-05-16 21:22:31 +00:00
|
|
|
%gopkginstall
|
|
|
|
install -m 0755 -vd %{buildroot}%{_bindir}
|
|
|
|
install -m 0755 -vp %{gobuilddir}/bin/* %{buildroot}%{_bindir}/
|
2018-04-21 19:55:42 +00:00
|
|
|
|
|
|
|
%if %{with check}
|
|
|
|
%check
|
2020-02-05 16:18:51 +00:00
|
|
|
# https://github.com/dominikh/go-tools/issues/687
|
|
|
|
%gocheck -d unused
|
2018-04-21 19:55:42 +00:00
|
|
|
%endif
|
|
|
|
|
|
|
|
%files
|
2020-08-06 13:17:35 +00:00
|
|
|
%license LICENSE
|
2018-04-21 19:55:42 +00:00
|
|
|
%doc README.md
|
2019-05-16 21:22:31 +00:00
|
|
|
%{_bindir}/*
|
2018-04-21 19:55:42 +00:00
|
|
|
|
2019-05-16 21:22:31 +00:00
|
|
|
%gopkgfiles
|
2018-04-21 19:55:42 +00:00
|
|
|
|
|
|
|
%changelog
|
2020-08-06 13:17:35 +00:00
|
|
|
* Thu Aug 06 14:57:49 CEST 2020 Robert-André Mauchin <zebob.m@gmail.com> - 2020.1.5-1
|
|
|
|
- Update to 2020.1.5
|
|
|
|
|
2020-07-27 23:52:27 +00:00
|
|
|
* Mon Jul 27 2020 Fedora Release Engineering <releng@fedoraproject.org> - 2019.2.3-2
|
|
|
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_33_Mass_Rebuild
|
|
|
|
|
2020-02-05 16:18:51 +00:00
|
|
|
* Wed Feb 05 16:57:55 CET 2020 Robert-André Mauchin <zebob.m@gmail.com> - 2019.2.3-1
|
|
|
|
- Update to 2019.2.3
|
|
|
|
|
2020-01-29 02:54:27 +00:00
|
|
|
* Wed Jan 29 2020 Fedora Release Engineering <releng@fedoraproject.org> - 2019.2.2-2
|
|
|
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_32_Mass_Rebuild
|
|
|
|
|
2019-08-02 22:11:24 +00:00
|
|
|
* Mon Jul 29 23:25:11 CEST 2019 Robert-André Mauchin <zebob.m@gmail.com> - 2019.2.2-1
|
|
|
|
- Release 2019.2.2
|
|
|
|
|
2019-07-25 07:13:39 +00:00
|
|
|
* Thu Jul 25 2019 Fedora Release Engineering <releng@fedoraproject.org> - 2019.1.1-3
|
|
|
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_31_Mass_Rebuild
|
|
|
|
|
2019-05-16 21:22:31 +00:00
|
|
|
* Thu May 16 22:58:09 CEST 2019 Robert-André Mauchin <zebob.m@gmail.com> - 2019.1.1-2
|
|
|
|
- Update to new macros
|
|
|
|
|
2019-03-17 21:04:06 +00:00
|
|
|
* Sun Mar 17 2019 Robert-André Mauchin <zebob.m@gmail.com> - 2019.1.1-1
|
|
|
|
- Release 2019.1.1 (#1689449)
|
|
|
|
|
2019-02-20 02:04:25 +00:00
|
|
|
* Tue Feb 19 2019 Robert-André Mauchin <zebob.m@gmail.com> - 2019.1-1
|
|
|
|
- Update to 2019.1
|
|
|
|
- Fixes #1675047
|
|
|
|
|
2019-02-01 01:14:45 +00:00
|
|
|
* Fri Feb 01 2019 Fedora Release Engineering <releng@fedoraproject.org> - 2017.2.2-3
|
|
|
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_30_Mass_Rebuild
|
|
|
|
|
2018-07-13 04:18:50 +00:00
|
|
|
* Fri Jul 13 2018 Fedora Release Engineering <releng@fedoraproject.org> - 2017.2.2-2
|
|
|
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_29_Mass_Rebuild
|
|
|
|
|
2018-04-21 19:55:42 +00:00
|
|
|
* Fri Mar 23 2018 Robert-André Mauchin <zebob.m@gmail.com> - 2017.2.2-1
|
|
|
|
- First package for Fedora
|