# Generated by go2rpm 1 %bcond_without check # https://github.com/posener/complete/v2 %global goipath github.com/posener/complete/v2 Version: 2.0.0 %global commit 5c05e978ea43e9992b04d9542bcab5f0b323a985 %gometa %global common_description %{expand: Bash completion written in go + bash completion for go command.} %global golicenses LICENSE.txt %global godocs example README.md Name: %{goname} Release: 1%{?dist} Summary: Bash completion written in go + bash completion for go command License: MIT URL: %{gourl} Source0: %{gosource} BuildRequires: golang(github.com/hashicorp/go-multierror) BuildRequires: golang(github.com/posener/autogen) BuildRequires: golang(github.com/posener/script) %if %{with check} # Tests BuildRequires: golang(github.com/stretchr/testify/assert) BuildRequires: golang(github.com/stretchr/testify/require) %endif %description %{common_description} %gopkg %prep %goprep %build for cmd in gocomplete; 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.txt %doc example README.md %{_bindir}/* %gopkgfiles %changelog * Mon Aug 17 00:02:29 CEST 2020 Robert-André Mauchin - 2.0.0-1.20200817git5c05e97 - Initial package