Blame golang-github-posener-complete.spec

fb14a4c
# Generated by go2rpm
fb14a4c
%bcond_without check
fb14a4c
fb14a4c
# https://github.com/posener/complete
fb14a4c
%global goipath         github.com/posener/complete
756873b
Version:                1.2.3
fb14a4c
fb14a4c
%gometa
fb14a4c
fb14a4c
%global common_description %{expand:
fb14a4c
Package Complete provides a tool for bash writing bash completion in go, and
fb14a4c
bash completion for the go command line.
fb14a4c
fb14a4c
Writing bash completion scripts is a hard work. This package provides an easy
fb14a4c
way to create bash completion scripts for any command, and also an easy way to
fb14a4c
install/uninstall the completion of the command.}
fb14a4c
fb14a4c
%global golicenses      LICENSE.txt
756873b
%global godocs          example README.md
fb14a4c
fb14a4c
Name:           %{goname}
45b2599
Release:        4%{?dist}
fb14a4c
Summary:        Bash completion written in go + bash completion for Go command
fb14a4c
fb14a4c
License:        MIT
fb14a4c
URL:            %{gourl}
fb14a4c
Source0:        %{gosource}
fb14a4c
fb14a4c
BuildRequires:  golang(github.com/hashicorp/go-multierror)
fb14a4c
756873b
%if %{with check}
756873b
# Tests
756873b
BuildRequires:  golang(github.com/stretchr/testify/assert)
756873b
%endif
756873b
fb14a4c
%description
fb14a4c
%{common_description}
fb14a4c
fb14a4c
%gopkg
fb14a4c
fb14a4c
%prep
fb14a4c
%goprep
fb14a4c
fb14a4c
%build
fb14a4c
for cmd in gocomplete; do
fb14a4c
  %gobuild -o %{gobuilddir}/bin/$(basename $cmd) %{goipath}/$cmd
fb14a4c
done
fb14a4c
fb14a4c
%install
fb14a4c
%gopkginstall
fb14a4c
install -m 0755 -vd                     %{buildroot}%{_bindir}
fb14a4c
install -m 0755 -vp %{gobuilddir}/bin/* %{buildroot}%{_bindir}/
fb14a4c
fb14a4c
%if %{with check}
fb14a4c
%check
fb14a4c
%gocheck
fb14a4c
%endif
fb14a4c
fb14a4c
%files
fb14a4c
%license %{golicenses}
fb14a4c
%doc %{godocs}
fb14a4c
%{_bindir}/*
fb14a4c
fb14a4c
%gopkgfiles
fb14a4c
fb14a4c
%changelog
45b2599
* Mon Jul 27 2020 Fedora Release Engineering <releng@fedoraproject.org> - 1.2.3-4
45b2599
- Rebuilt for https://fedoraproject.org/wiki/Fedora_33_Mass_Rebuild
45b2599
264db52
* Wed Jan 29 2020 Fedora Release Engineering <releng@fedoraproject.org> - 1.2.3-3
264db52
- Rebuilt for https://fedoraproject.org/wiki/Fedora_32_Mass_Rebuild
264db52
756873b
* Fri Dec 27 16:34:26 CET 2019 Robert-André Mauchin <zebob.m@gmail.com> - 1.2.3-1
756873b
- Update to 1.2.3
756873b
9adfa33
* Thu Jul 25 2019 Fedora Release Engineering <releng@fedoraproject.org> - 1.2.1-2
9adfa33
- Rebuilt for https://fedoraproject.org/wiki/Fedora_31_Mass_Rebuild
9adfa33
fb14a4c
* Sun Apr 21 19:59:20 CEST 2019 Robert-André Mauchin <zebob.m@gmail.com> - 1.2.1-1
fb14a4c
- Initial package