# Generated by go2rpm 1 %bcond_without check # https://github.com/posener/complete %global goipath github.com/posener/complete/v2 %global forgeurl https://github.com/posener/complete Version: 2.0.1~alpha.13 %gometa %global extractdir %(echo %{extractdir} | sed -e 's/~/-/g') %global gosource %(echo %{gosource} | sed -e 's/~/-/g') %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: %autorelease Summary: Bash completion written in go + bash completion for go command License: MIT URL: %{gourl} Source0: %{gosource} # Remove in F43 Provides: golang-github-posener-complete-2 = %{version}-%{release} Obsoletes: golang-github-posener-complete-2 < 2.0.1~alpha.13-10 %global godevelheader %{expand: Provides: golang-github-posener-complete-2-devel = %{version}-%{release} Obsoletes: golang-github-posener-complete-2-devel < 2.0.1~alpha.13-10} 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 # https://github.com/posener/complete/issues/132 %gocheck -d gocomplete %endif %files %license LICENSE.txt %doc example README.md %{_bindir}/* %gopkgfiles %changelog %autochangelog