# Generated by go2rpm 1.8.2 %bcond_without check # https://github.com/gdamore/tcell %global goipath github.com/gdamore/tcell/v2 Version: 2.6.0 %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 CHANGESv2.md AUTHORS TUTORIAL.md README.md %global gosupfiles webfiles/* Name: %{goname} Release: %autorelease Summary: Alternate terminal package License: Apache-2.0 URL: %{gourl} Source: %{gosource} # Remove in F43 Provides: golang-github-gdamore-tcell-2 = %{version}-%{release} Obsoletes: golang-github-gdamore-tcell-2 < 2.6.0-3 %global godevelheader %{expand: Provides: golang-github-gdamore-tcell-2-devel = %{version}-%{release} Obsoletes: golang-github-gdamore-tcell-2-devel < 2.6.0-3} # 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 # Use existing sources for: # * alacritty-direct, as it's not provided by ncurses, nor packaged # * foot, as we have no source since it isn't packaged # * sun, which is hand-coded, not generated # * xterm-direct, which is hand-coded, not generated # * xterm-termite, as we have no source since it isn't packaged find terminfo/?/ \! -path '*alacritty/direct.go' -a \! -path '*foot/foot.go' -a \! -path '*sun/term.go' -a \! -path '*xterm/direct.go' -a \! -path '*xterm_termite/term.go' -type f -delete sed -i 's/go run mkinfo.go/$1/g' terminfo/gen.sh %generate_buildrequires %go_generate_buildrequires %build # Rebuild database from source. %gobuild -o %{gobuilddir}/bin/mkinfo terminfo/mkinfo.go pushd terminfo bash -x 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 CHANGESv2.md AUTHORS TUTORIAL.md README.md %{_bindir}/* %gopkgfiles %changelog %autochangelog