# 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: [mirror] This is a linter for Go source code.} %global golicenses LICENSE %global godocs README.md CONTRIBUTING.md Name: %{goname} Version: 0 Release: 0.1%{?dist} Summary: [mirror] This is a 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 README.md CONTRIBUTING.md %{_bindir}/* %gopkgfiles %changelog * Wed Aug 26 13:22:36 CEST 2020 Ondřej Budai - 0-0.1.20200826gitd2cdd8c - Initial package