Blame golang-github-c-bata-prompt.spec

7aead22
# Generated by go2rpm
7aead22
%bcond_without check
7aead22
7aead22
# https://github.com/c-bata/go-prompt
7aead22
%global goipath         github.com/c-bata/go-prompt
1b316ce
Version:                0.2.5
7aead22
7aead22
%gometa
7aead22
7aead22
%global common_description %{expand:
7aead22
A library for building powerful interactive prompts inspired by
7aead22
python-prompt-toolkit, making it easier to build cross-platform command line
7aead22
tools using Go.}
7aead22
7aead22
%global golicenses      LICENSE
7aead22
%global godocs          _example CHANGELOG.md README.md
7aead22
7aead22
Name:           %{goname}
1b316ce
Release:        1%{?dist}
7aead22
Summary:        Building powerful interactive prompts in Go
7aead22
7aead22
License:        MIT
7aead22
URL:            %{gourl}
7aead22
Source0:        %{gosource}
7aead22
7aead22
BuildRequires:  golang(github.com/mattn/go-runewidth)
7aead22
BuildRequires:  golang(github.com/pkg/term/termios)
1b316ce
BuildRequires:  golang(golang.org/x/sys/unix)
7aead22
7aead22
%description
7aead22
%{common_description}
7aead22
7aead22
%gopkg
7aead22
7aead22
%prep
7aead22
%goprep
7aead22
7aead22
%build
7aead22
for cmd in _tools/sigwinch _tools/vt100_debug _tools/complete_file; do
7aead22
  %gobuild -o %{gobuilddir}/bin/$(basename $cmd) %{goipath}/$cmd
7aead22
done
7aead22
7aead22
%install
7aead22
%gopkginstall
7aead22
install -m 0755 -vd                     %{buildroot}%{_bindir}
7aead22
install -m 0755 -vp %{gobuilddir}/bin/* %{buildroot}%{_bindir}/
7aead22
7aead22
%if %{with check}
7aead22
%check
7aead22
%gocheck
7aead22
%endif
7aead22
7aead22
%files
7aead22
%license %{golicenses}
7aead22
%doc %{godocs}
7aead22
%{_bindir}/*
7aead22
7aead22
%gopkgfiles
7aead22
7aead22
%changelog
1b316ce
* Wed Dec 16 07:23:23 CET 2020 Robert-André Mauchin <zebob.m@gmail.com> - 0.2.5-1
1b316ce
- Update to 0.2.5
1b316ce
- Close: rhbz#1880705
1b316ce
cc5a7dd
* Mon Jul 27 2020 Fedora Release Engineering <releng@fedoraproject.org> - 0.2.3-4
cc5a7dd
- Rebuilt for https://fedoraproject.org/wiki/Fedora_33_Mass_Rebuild
cc5a7dd
cfd9bea
* Tue Jan 28 2020 Fedora Release Engineering <releng@fedoraproject.org> - 0.2.3-3
cfd9bea
- Rebuilt for https://fedoraproject.org/wiki/Fedora_32_Mass_Rebuild
cfd9bea
29d34e9
* Thu Jul 25 2019 Fedora Release Engineering <releng@fedoraproject.org> - 0.2.3-2
29d34e9
- Rebuilt for https://fedoraproject.org/wiki/Fedora_31_Mass_Rebuild
29d34e9
7aead22
* Wed Apr 24 22:50:06 CEST 2019 Robert-André Mauchin <zebob.m@gmail.com> - 0.2.3-1
7aead22
- Initial package