# Generated by go2rpm
%bcond_without check
# https://github.com/posener/complete
%global goipath github.com/posener/complete
Version: 1.2.3
%gometa
%global common_description %{expand:
Package Complete provides a tool for bash writing bash completion in go, and
bash completion for the go command line.
Writing bash completion scripts is a hard work. This package provides an easy
way to create bash completion scripts for any command, and also an easy way to
install/uninstall the completion of the command.}
%global golicenses LICENSE.txt
%global godocs example README.md
Name: %{goname}
Release: 4%{?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)
%if %{with check}
# Tests
BuildRequires: golang(github.com/stretchr/testify/assert)
%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 %{golicenses}
%doc %{godocs}
%{_bindir}/*
%gopkgfiles
%changelog
* Mon Jul 27 2020 Fedora Release Engineering <releng@fedoraproject.org> - 1.2.3-4
- Rebuilt for https://fedoraproject.org/wiki/Fedora_33_Mass_Rebuild
* Wed Jan 29 2020 Fedora Release Engineering <releng@fedoraproject.org> - 1.2.3-3
- Rebuilt for https://fedoraproject.org/wiki/Fedora_32_Mass_Rebuild
* Fri Dec 27 16:34:26 CET 2019 Robert-André Mauchin <zebob.m@gmail.com> - 1.2.3-1
- Update to 1.2.3
* Thu Jul 25 2019 Fedora Release Engineering <releng@fedoraproject.org> - 1.2.1-2
- Rebuilt for https://fedoraproject.org/wiki/Fedora_31_Mass_Rebuild
* Sun Apr 21 19:59:20 CEST 2019 Robert-André Mauchin <zebob.m@gmail.com> - 1.2.1-1
- Initial package