## START: Set by rpmautospec ## (rpmautospec version 0.2.5) %define autorelease(e:s:pb:) %{?-p:0.}%{lua: release_number = 5; base_release_number = tonumber(rpm.expand("%{?-b*}%{!?-b:1}")); print(release_number + base_release_number - 1); }%{?-e:.%{-e*}}%{?-s:.%{-s*}}%{?dist} ## END: Set by rpmautospec # Generated by go2rpm 1.3 %bcond_without check # https://github.com/insomniacslk/termhook %global goipath github.com/insomniacslk/termhook %global commit a267c978e590d0e84c40b76dbf79393eabed254a %gometa %global common_description %{expand: termhook is a small library that attaches to a terminal, serial console or other similar device, and lets you attach your own hook on terminal output.} %global golicenses COPYING %global godocs README.md Name: %{goname} Version: 0 Release: %autorelease Summary: Simple terminal that allows attaching hooks # Upstream license specification: BSD-2-Clause License: BSD URL: %{gourl} Source0: %{gosource} # PR#6: Update Tcsetattr usage to the new API Patch0: %{url}/pull/6.patch#/termhook-tcsetattr.patch BuildRequires: golang(github.com/pkg/term) BuildRequires: golang(github.com/pkg/term/termios) BuildRequires: golang(golang.org/x/sys/unix) %description %{common_description} %gopkg %prep %goprep %autopatch -p1 %build for cmd in cmds/termhook; do %gobuild -o %{gobuilddir}/bin/$(basename $cmd) %{goipath}/$cmd done %install %gopkginstall install -m 0755 -vd %{buildroot}%{_bindir} install -m 0755 -vp %{gobuilddir}/bin/* %{buildroot}%{_bindir}/ %if %{with check} %check %gocheck %endif %files %license COPYING %doc README.md %{_bindir}/* %gopkgfiles %changelog * Thu Jan 20 2022 Fedora Release Engineering 0-5 - Rebuilt for https://fedoraproject.org/wiki/Fedora_36_Mass_Rebuild * Wed Aug 04 2021 Davide Cavalca 0-4 - Update Tcsetattr usage to the new API; Fixes: RHBZ#1987530 * Thu Jul 22 2021 Fedora Release Engineering - 0-0.2 - Rebuilt for https://fedoraproject.org/wiki/Fedora_35_Mass_Rebuild * Tue Apr 06 2021 Davide Cavalca - 0-0.1.20210406gita267c97 - Initial package