# Generated by go2rpm 1.3 %bcond_without check # https://github.com/cyberdotgent/route3270 %global goipath github.com/cyberdotgent/route3270 Version: 0.2 %gometa %global common_description %{expand: A simple TN3270 router that can be used to route access to several applications or machines behind a single gateway. Features: - Crude access control system for proxied services - Authentication - 2FA support using TOTP} %global golicenses COPYING %global godocs doc README.md Name: %{goname} Release: 1%{?dist} Summary: A simple 3270 application/connection router License: GPLv3 URL: %{gourl} Source0: %{gosource} BuildRequires: sed BuildRequires: golang(github.com/akamensky/argparse) BuildRequires: golang(github.com/BurntSushi/toml) BuildRequires: golang(github.com/pquerna/otp/totp) BuildRequires: golang(github.com/racingmars/go3270) BuildRequires: golang(github.com/rs/zerolog) BuildRequires: golang(github.com/rs/zerolog/log) %description %{common_description} %package -n route3270 Summary: %{summary} %description -n route3270 %{common_description} %gopkg %prep %goprep # Fix incorrect end-of-line encoding sed -i 's/\r$//' README.md example.toml %build %gobuild -o %{gobuilddir}/bin/route3270 %{goipath} %install %gopkginstall install -m 0755 -vd %{buildroot}%{_bindir} install -m 0755 -vp %{gobuilddir}/bin/* %{buildroot}%{_bindir}/ %if %{with check} %check %gocheck %endif %files -n route3270 %license COPYING %doc doc README.md example.toml %{_bindir}/* %gopkgfiles %changelog * Sat Apr 3 2021 Davide Cavalca - 0.2-1 - Initial package