Update to 2.5.4 - Closes rhbz#2157883

This commit is contained in:
Mikel Olasagasti Uranga
2023-01-05 10:21:44 +01:00
parent ab35bc814d
commit b0688e4d85
3 changed files with 14 additions and 24 deletions

View File

@@ -1,10 +1,9 @@
# Generated by go2rpm 1.3
# Generated by go2rpm 1.8.2
%bcond_without check
# https://github.com/gdamore/tcell
%global goipath github.com/gdamore/tcell/v2
%global forgeurl https://github.com/gdamore/tcell
Version: 2.5.3
Version: 2.5.4
%gometa
@@ -13,29 +12,15 @@ Tcell is an alternate terminal package, similar in some ways to termbox, but
better in others.}
%global golicenses LICENSE
%global godocs README.adoc AUTHORS
%global godocs CHANGESv2.md AUTHORS TUTORIAL.md README.md
Name: %{goname}
Release: %autorelease
Summary: Alternate terminal package
# Upstream license specification: Apache-2.0
License: ASL 2.0
License: Apache-2.0
URL: %{gourl}
Source0: %{gosource}
BuildRequires: golang(github.com/gdamore/encoding)
BuildRequires: golang(github.com/lucasb-eyer/go-colorful) >= 1.2.0
BuildRequires: golang(github.com/mattn/go-runewidth) >= 0.0.13
BuildRequires: golang(golang.org/x/sys/unix)
BuildRequires: golang(golang.org/x/term)
BuildRequires: golang(golang.org/x/text/encoding) >= 0.3.7
BuildRequires: golang(golang.org/x/text/encoding/charmap) >= 0.3.7
BuildRequires: golang(golang.org/x/text/encoding/japanese) >= 0.3.7
BuildRequires: golang(golang.org/x/text/encoding/korean) >= 0.3.7
BuildRequires: golang(golang.org/x/text/encoding/simplifiedchinese) >= 0.3.7
BuildRequires: golang(golang.org/x/text/encoding/traditionalchinese) >= 0.3.7
BuildRequires: golang(golang.org/x/text/transform) >= 0.3.7
Source: %{gosource}
# These are all needed for rebuilding the terminfo database.
BuildRequires: kitty-terminfo
@@ -44,13 +29,14 @@ BuildRequires: ncurses-base
BuildRequires: ncurses-term
BuildRequires: rxvt-unicode
%description
%{common_description}
%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
@@ -59,6 +45,9 @@ BuildRequires: rxvt-unicode
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
%generate_buildrequires
%go_generate_buildrequires
%build
# Rebuild database from source.
%gobuild -o %{gobuilddir}/bin/mkinfo terminfo/mkinfo.go
@@ -78,7 +67,7 @@ install -m 0755 -vp %{gobuilddir}/bin/* %{buildroot}%{_bindir}/
%files
%license LICENSE
%doc README.md AUTHORS
%doc CHANGESv2.md AUTHORS TUTORIAL.md README.md
%{_bindir}/*
%gopkgfiles