## START: Set by rpmautospec
## (rpmautospec version 0.3.0)
%define autorelease(e:s:pb:n) %{?-p:0.}%{lua:
    release_number = 3;
    base_release_number = tonumber(rpm.expand("%{?-b*}%{!?-b:1}"));
    print(release_number + base_release_number - 1);
}%{?-e:.%{-e*}}%{?-s:.%{-s*}}%{!?-n:%{?dist}}
## END: Set by rpmautospec

# Generated by go2rpm 1.6.0
# int overflow
%ifnarch %{ix86}
%bcond_without check
%endif

# https://github.com/rivo/tview
%global goipath         github.com/rivo/tview
%global commit          9994674d60a85d2c18e2192ef58195fff743091f

%gometa

%global common_description %{expand:
Terminal UI library with rich, interactive widgets — written in Golang.}

%global golicenses      LICENSE.txt
%global godocs          CONTRIBUTING.md README.md

Name:           %{goname}
Version:        0
Release:        %autorelease -p
Summary:        Terminal UI library with rich, interactive widgets — written in Golang

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

BuildRequires:  golang(github.com/gdamore/tcell/v2)
BuildRequires:  golang(github.com/lucasb-eyer/go-colorful)
BuildRequires:  golang(github.com/mattn/go-runewidth)
BuildRequires:  golang(github.com/rivo/uniseg)

%description
%{common_description}

%gopkg

%prep
%goprep

%install
%gopkginstall

%if %{with check}
%check
%gocheck
%endif

%gopkgfiles

%changelog
* Thu Jul 21 2022 Fedora Release Engineering <releng@fedoraproject.org> 0-0.3
- Rebuilt for https://fedoraproject.org/wiki/Fedora_37_Mass_Rebuild

* Mon May 09 2022 Robert-André Mauchin <zebob.m@gmail.com> 0-0.2
- Examples binaries are not needed

* Mon May 09 2022 Robert-André Mauchin <zebob.m@gmail.com> 0-0.1
- Initial import