# Generated by go2rpm 1.3 %bcond_without check # https://github.com/gdamore/tcell %global goipath github.com/gdamore/tcell/v2 %global forgeurl https://github.com/gdamore/tcell Version: 2.4.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 README.adoc AUTHORS Name: %{goname} Release: 3%{?dist} Summary: Alternate terminal package # 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) >= 1.0.2 BuildRequires: golang(github.com/mattn/go-runewidth) >= 0.0.10 BuildRequires: golang(golang.org/x/sys/unix) BuildRequires: golang(golang.org/x/term) BuildRequires: golang(golang.org/x/text/encoding) >= 0.3.0 BuildRequires: golang(golang.org/x/text/encoding/charmap) >= 0.3.0 BuildRequires: golang(golang.org/x/text/encoding/japanese) >= 0.3.0 BuildRequires: golang(golang.org/x/text/encoding/korean) >= 0.3.0 BuildRequires: golang(golang.org/x/text/encoding/simplifiedchinese) >= 0.3.0 BuildRequires: golang(golang.org/x/text/encoding/traditionalchinese) >= 0.3.0 BuildRequires: golang(golang.org/x/text/transform) >= 0.3.0 # 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: # * 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 '*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 %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 README.md AUTHORS %{_bindir}/* %gopkgfiles %changelog * Thu Jan 20 2022 Fedora Release Engineering - 2.4.0-3 - Rebuilt for https://fedoraproject.org/wiki/Fedora_36_Mass_Rebuild * Thu Jul 22 2021 Fedora Release Engineering - 2.4.0-2 - Rebuilt for https://fedoraproject.org/wiki/Fedora_35_Mass_Rebuild * Sun Jul 18 2021 Elliott Sales de Andrade - 2.4.0-1 - Update to latest version (#1983376) * Sat Jun 12 2021 Elliott Sales de Andrade - 2.3.11-1 - Update to latest version (#1966473) * Thu May 20 2021 Elliott Sales de Andrade - 2.3.3-1 - Update to latest version (#1962134) * Sun May 16 2021 Elliott Sales de Andrade - 2.3.1-1 - Update to latest version (#1960989) * Mon Apr 19 2021 Elliott Sales de Andrade - 2.2.1-1 - Update to latest version (#1950835) * Tue Feb 23 2021 Elliott Sales de Andrade - 2.2.0-1 - Update to latest version * Mon Dec 28 2020 Elliott Sales de Andrade - 2.1.0-1 - Update to v2; new package for new import path * Thu Aug 27 2020 Elliott Sales de Andrade - 1.4.0-1 - Update to latest version - Fix regeneration of terminfo * Sat Aug 01 2020 Fedora Release Engineering - 1.3.0-4 - Second attempt - Rebuilt for https://fedoraproject.org/wiki/Fedora_33_Mass_Rebuild * Mon Jul 27 2020 Fedora Release Engineering - 1.3.0-3 - Rebuilt for https://fedoraproject.org/wiki/Fedora_33_Mass_Rebuild * Wed Jan 29 2020 Fedora Release Engineering - 1.3.0-2 - Rebuilt for https://fedoraproject.org/wiki/Fedora_32_Mass_Rebuild * Mon Sep 23 2019 Elliott Sales de Andrade - 1.3.0-1 - Update to latest version * Sun Aug 18 2019 Elliott Sales de Andrade - 1.2.0-1 - Update to latest version * Thu Jul 25 2019 Fedora Release Engineering - 1.1.4-2 - Rebuilt for https://fedoraproject.org/wiki/Fedora_31_Mass_Rebuild * Wed Jul 10 04:28:28 EDT 2019 Elliott Sales de Andrade - 1.1.4-1 - Update to latest version * Sun Jun 02 17:25:48 CEST 2019 Robert-André Mauchin - 1.1.2-1 - Release 1.1.2 * Fri Feb 01 2019 Fedora Release Engineering - 1.1.1-2 - Rebuilt for https://fedoraproject.org/wiki/Fedora_30_Mass_Rebuild * Mon Jan 14 2019 Elliott Sales de Andrade - 1.1.1-1 - Update to latest version * Tue Oct 23 2018 Nicolas Mailhot - 1.1.0-2 - redhat-rpm-config-123 triggers bugs in gosetup, remove it from Go spec files as it’s just an alias - https://lists.fedoraproject.org/archives/list/devel@lists.fedoraproject.org/message/RWD5YATAYAFWKIDZBB7EB6N5DAO4ZKFM/ * Wed Oct 10 2018 Elliott Sales de Andrade - 1.1.0-1 - Update to latest version - Rebuild terminfo from Fedora information * Fri Jul 13 2018 Fedora Release Engineering - 1.0.0-3 - Rebuilt for https://fedoraproject.org/wiki/Fedora_29_Mass_Rebuild * Thu Jun 07 2018 Elliott Sales de Andrade - 1.0.0-2 - Re-template against More Go Packaging guidelines * Fri Mar 16 2018 Elliott Sales de Andrade - 1.0.0-1 - Update to first released version - Check build of demos * Wed Feb 07 2018 Fedora Release Engineering - 0-0.2.20170807gitd55f61c - Rebuilt for https://fedoraproject.org/wiki/Fedora_28_Mass_Rebuild * Sat Aug 19 2017 Elliott Sales de Andrade - 0-0.1.20170807gitd55f61c - Add commit date to revision * Fri Aug 18 2017 Elliott Sales de Andrade - 0-0.1.gitd55f61c - Initial package for Fedora