Blob Blame History Raw
# Generated by go2rpm
%bcond_without check

# https://github.com/c-bata/go-prompt
%global goipath         github.com/c-bata/go-prompt
Version:                0.2.5

%gometa

%global common_description %{expand:
A library for building powerful interactive prompts inspired by
python-prompt-toolkit, making it easier to build cross-platform command line
tools using Go.}

%global golicenses      LICENSE
%global godocs          _example CHANGELOG.md README.md

Name:           %{goname}
Release:        1%{?dist}
Summary:        Building powerful interactive prompts in Go

License:        MIT
URL:            %{gourl}
Source0:        %{gosource}

BuildRequires:  golang(github.com/mattn/go-runewidth)
BuildRequires:  golang(github.com/pkg/term/termios)
BuildRequires:  golang(golang.org/x/sys/unix)

%description
%{common_description}

%gopkg

%prep
%goprep

%build
for cmd in _tools/sigwinch _tools/vt100_debug _tools/complete_file; 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
* Wed Dec 16 07:23:23 CET 2020 Robert-André Mauchin <zebob.m@gmail.com> - 0.2.5-1
- Update to 0.2.5
- Close: rhbz#1880705

* Mon Jul 27 2020 Fedora Release Engineering <releng@fedoraproject.org> - 0.2.3-4
- Rebuilt for https://fedoraproject.org/wiki/Fedora_33_Mass_Rebuild

* Tue Jan 28 2020 Fedora Release Engineering <releng@fedoraproject.org> - 0.2.3-3
- Rebuilt for https://fedoraproject.org/wiki/Fedora_32_Mass_Rebuild

* Thu Jul 25 2019 Fedora Release Engineering <releng@fedoraproject.org> - 0.2.3-2
- Rebuilt for https://fedoraproject.org/wiki/Fedora_31_Mass_Rebuild

* Wed Apr 24 22:50:06 CEST 2019 Robert-André Mauchin <zebob.m@gmail.com> - 0.2.3-1
- Initial package