# Generated by go2rpm 1 %bcond_without check # https://github.com/golangci/lint-1 %global goipath github.com/golangci/lint-1 %global commit d2cdd8c0821928c61cb0903441f8b35457a98a61 %gometa %global common_description %{expand: This is a linter for Go source code.} %global golicenses LICENSE %global godocs CONTRIBUTING.md README.md Name: %{goname} Version: 0 Release: 0.1%{?dist} Summary: Linter for Go source code # Upstream license specification: BSD-3-Clause License: BSD URL: %{gourl} Source0: %{gosource} BuildRequires: golang(golang.org/x/lint) BuildRequires: golang(golang.org/x/tools/go/ast/astutil) BuildRequires: golang(golang.org/x/tools/go/gcexportdata) %description %{common_description} %gopkg %prep %goprep %build for cmd in golint; do %gobuild -o %{gobuilddir}/bin/$(basename $cmd) %{goipath}/$cmd done %install %gopkginstall install -m 0755 -vd %{buildroot}%{_bindir} install -m 0755 -vp %{gobuilddir}/bin/* %{buildroot}%{_bindir}/ %if %{with check} %check %gocheck %endif %files %license LICENSE %doc CONTRIBUTING.md README.md %{_bindir}/* %gopkgfiles %changelog * Thu Aug 13 02:43:03 CEST 2020 Robert-André Mauchin - 0-0.1.20200813gitd2cdd8c - Initial package