golang-honnef-tools/golang-honnef-tools.spec

92 lines
2.8 KiB
RPMSpec
Raw Normal View History

# Generated by go2rpm
2018-04-21 19:55:42 +00:00
%bcond_without check
# 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
2019-03-17 21:04:06 +00:00
Version: 2019.1.1
%global tag 2019.1.1
%gometa
2018-04-21 19:55:42 +00:00
%global common_description %{expand:
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
%global golicenses LICENSE LICENSE-gcsizes LICENSE-lint LICENSE-ssa
%global godocs README.md
2018-04-21 19:55:42 +00:00
Name: %{goname}
Release: 3%{?dist}
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}
Source0: %{gosource}
2018-04-21 19:55:42 +00:00
BuildRequires: golang(github.com/BurntSushi/toml)
BuildRequires: golang(github.com/kisielk/gotool)
BuildRequires: golang(golang.org/x/tools/go/ast/astutil)
BuildRequires: golang(golang.org/x/tools/go/buildutil)
BuildRequires: golang(golang.org/x/tools/go/loader)
BuildRequires: golang(golang.org/x/tools/go/packages)
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}
%gopkg
2018-04-21 19:55:42 +00:00
%prep
%goprep
mv gcsizes/LICENSE LICENSE-gcsizes
mv lint/LICENSE LICENSE-lint
mv ssa/LICENSE LICENSE-ssa
%build
for cmd in cmd/gosimple cmd/keyify cmd/megacheck cmd/rdeps cmd/staticcheck cmd/structlayout-optimize cmd/structlayout-pretty cmd/structlayout; do
%gobuild -o %{gobuilddir}/bin/$(basename $cmd) %{goipath}/$cmd
2018-04-21 19:55:42 +00:00
done
%install
%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
%gocheck
2018-04-21 19:55:42 +00:00
%endif
%files
%license LICENSE LICENSE-gcsizes LICENSE-lint LICENSE-ssa
2018-04-21 19:55:42 +00:00
%doc README.md
%{_bindir}/*
2018-04-21 19:55:42 +00:00
%gopkgfiles
2018-04-21 19:55:42 +00:00
%changelog
* Thu Jul 25 2019 Fedora Release Engineering <releng@fedoraproject.org> - 2019.1.1-3
- Rebuilt for https://fedoraproject.org/wiki/Fedora_31_Mass_Rebuild
* 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)
* Tue Feb 19 2019 Robert-André Mauchin <zebob.m@gmail.com> - 2019.1-1
- Update to 2019.1
- Fixes #1675047
* Fri Feb 01 2019 Fedora Release Engineering <releng@fedoraproject.org> - 2017.2.2-3
- Rebuilt for https://fedoraproject.org/wiki/Fedora_30_Mass_Rebuild
* 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