Initial import (#1561674)

This commit is contained in:
Robert-André Mauchin 2018-04-21 21:55:42 +02:00
parent 665dc077c2
commit ebe5fbc789
4 changed files with 81 additions and 3 deletions

1
.gitignore vendored Normal file
View File

@ -0,0 +1 @@
/go-tools-2017.2.2.tar.gz

View File

@ -1,3 +0,0 @@
# golang-honnef-tools
The golang-honnef-tools package

79
golang-honnef-tools.spec Normal file
View File

@ -0,0 +1,79 @@
# 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
Version: 2017.2.2
%global common_description %{expand:
Tools and libraries for working with Go, including linters and static analysis.}
%gometa
Name: %{goname}
Release: 1%{?dist}
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
BuildRequires: golang(github.com/kisielk/gotool)
BuildRequires: golang(golang.org/x/tools/go/ast/astutil)
BuildRequires: golang(golang.org/x/tools/go/loader)
BuildRequires: golang(golang.org/x/tools/go/types/typeutil)
%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
* Fri Mar 23 2018 Robert-André Mauchin <zebob.m@gmail.com> - 2017.2.2-1
- First package for Fedora

1
sources Normal file
View File

@ -0,0 +1 @@
SHA512 (go-tools-2017.2.2.tar.gz) = 8235d3b39aeb6e482404e5b75001980590ef575ec140db28f8b217e51b9c3538c94f5789f5135dbb5fbf4174fb34a3fdd045252c340bb8586c76faed89ee5a12