# Generated by go2rpm 1.3 %bcond_without check # https://github.com/gdamore/tcell %global goipath github.com/gdamore/tcell/v2 %global commit f057f0a857a1b3ac3e4fff8c6cfe8126f8387cd1 Version: 2.4.1 %gometa %global common_description %{expand: Tcell is an alternate terminal package, similar in some ways to termbox, but better in others.} %global golicenses LICENSE %global godocs AUTHORS CHANGESv2.md views/README.md\\\ terminfo/README.md terminfo/models.txt\\\ terminfo/TERMINALS.md Name: %{goname} Release: 1%{?dist} Summary: Tcell is an alternate terminal package, similar in some ways to termbox, but better in others # Upstream license specification: Apache-2.0 License: ASL 2.0 URL: %{gourl} Source0: %{gosource} BuildRequires: golang(github.com/gdamore/encoding) BuildRequires: golang(github.com/lucasb-eyer/go-colorful) BuildRequires: golang(github.com/mattn/go-runewidth) BuildRequires: golang(golang.org/x/sys/unix) BuildRequires: golang(golang.org/x/text/encoding) BuildRequires: golang(golang.org/x/text/encoding/charmap) BuildRequires: golang(golang.org/x/text/encoding/japanese) BuildRequires: golang(golang.org/x/text/encoding/korean) BuildRequires: golang(golang.org/x/text/encoding/simplifiedchinese) BuildRequires: golang(golang.org/x/text/encoding/traditionalchinese) BuildRequires: golang(golang.org/x/text/transform) # These are all needed for rebuilding the terminfo database. BuildRequires: kitty-terminfo BuildRequires: ncurses BuildRequires: ncurses-base BuildRequires: ncurses-term BuildRequires: rxvt-unicode %description %{common_description} %gopkg %prep %goprep sed -i 's/go run mkinfo.go/$1/g' terminfo/gen.sh echo alacritty >> terminfo/models.txt echo xterm-kitty >> terminfo/models.txt %build %gobuild -o %{gobuilddir}/bin/mkinfo terminfo/mkinfo.go pushd terminfo bash gen.sh %{gobuilddir}/bin/mkinfo popd %install %gopkginstall install -m 0755 -vd %{buildroot}%{_bindir} install -m 0755 -vp %{gobuilddir}/bin/* %{buildroot}%{_bindir}/ %if %{with check} %check %gocheck %endif %files %license LICENSE %doc AUTHORS CHANGESv2.md views/README.md terminfo/README.md terminfo/models.txt %doc terminfo/TERMINALS.md %{_bindir}/* %gopkgfiles %changelog * Tue Nov 30 2021 Bruno Meneguele - 2.4.1-0.20210905002822-f057f0a857a1-1 - Rebase to upstream release 2.4.1-0.20210905002822-f057f0a857a1 * Thu Jan 14 17:42:47 -03 2021 Bruno Meneguele - 2.1.0-1 - Initial package