2018-04-21 19:55:42 +00:00
|
|
|
# Run tests in check section
|
|
|
|
# disable for bootstrapping
|
|
|
|
%bcond_without check
|
|
|
|
|
|
|
|
%global goipath honnef.co/go/tools
|
|
|
|
%global forgeurl https://github.com/dominikh/go-tools
|
2019-03-17 19:51:00 +00:00
|
|
|
Version: 2019.1.1
|
2018-04-21 19:55:42 +00:00
|
|
|
|
|
|
|
%global common_description %{expand:
|
|
|
|
Tools and libraries for working with Go, including linters and static analysis.}
|
|
|
|
|
|
|
|
%gometa
|
|
|
|
|
|
|
|
Name: %{goname}
|
2019-02-20 02:04:25 +00:00
|
|
|
Release: 1%{?dist}
|
2018-04-21 19:55:42 +00:00
|
|
|
Summary: Tools and libraries for working with Go, including linters and static analysis
|
|
|
|
License: MIT and BSD
|
|
|
|
URL: %{gourl}
|
|
|
|
Source0: %{gourl}/archive/%{version}/go-tools-%{version}.tar.gz
|
|
|
|
|
2019-02-20 02:04:25 +00:00
|
|
|
BuildRequires: golang(github.com/BurntSushi/toml)
|
2018-04-21 19:55:42 +00:00
|
|
|
BuildRequires: golang(golang.org/x/tools/go/ast/astutil)
|
|
|
|
BuildRequires: golang(golang.org/x/tools/go/loader)
|
2019-02-20 02:04:25 +00:00
|
|
|
BuildRequires: golang(golang.org/x/tools/go/packages)
|
2018-04-21 19:55:42 +00:00
|
|
|
BuildRequires: golang(golang.org/x/tools/go/types/typeutil)
|
2019-02-20 02:04:25 +00:00
|
|
|
BuildRequires: golang(github.com/kisielk/gotool)
|
2018-04-21 19:55:42 +00:00
|
|
|
|
|
|
|
%description
|
|
|
|
%{common_description}
|
|
|
|
|
|
|
|
|
|
|
|
%package devel
|
|
|
|
Summary: %{summary}
|
|
|
|
BuildArch: noarch
|
|
|
|
|
|
|
|
%description devel
|
|
|
|
%{common_description}
|
|
|
|
|
|
|
|
This package contains library source intended for
|
|
|
|
building other packages which use import path with
|
|
|
|
%{goipath} prefix.
|
|
|
|
|
|
|
|
|
|
|
|
%prep
|
|
|
|
%forgeautosetup
|
|
|
|
|
|
|
|
|
|
|
|
%build
|
|
|
|
%gobuildroot
|
|
|
|
for cmd in $(ls -1 cmd) ; do
|
|
|
|
%gobuild -o _bin/$cmd %{goipath}/cmd/$cmd
|
|
|
|
done
|
|
|
|
|
|
|
|
|
|
|
|
%install
|
|
|
|
%goinstall
|
|
|
|
for cmd in $(ls -1 _bin) ; do
|
|
|
|
install -Dpm 0755 _bin/$cmd %{buildroot}%{_bindir}/$cmd
|
|
|
|
done
|
|
|
|
|
|
|
|
|
|
|
|
%if %{with check}
|
|
|
|
%check
|
|
|
|
%gochecks
|
|
|
|
%endif
|
|
|
|
|
|
|
|
|
|
|
|
%files
|
|
|
|
%license LICENSE
|
|
|
|
%{_bindir}/*
|
|
|
|
|
|
|
|
|
|
|
|
%files devel -f devel.file-list
|
|
|
|
%license LICENSE
|
|
|
|
%doc README.md
|
|
|
|
|
|
|
|
|
|
|
|
%changelog
|
2019-03-17 19:51:00 +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
|
|
|
|
|
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
|
|
|
|
|