# Generated by go2rpm 1.3 %bcond_without check # https://github.com/theoapp/theo-agent %global goipath github.com/theoapp/theo-agent Version: 0.14.0 %gometa %global common_description %{expand: theo-agent is the command line program used to fetch authorized_keys from a Theo server.} %global golicenses LICENSE %global godocs README.md Name: %{goname} Release: 5%{?dist} Summary: Theo authorized keys manager agent # Upstream license specification: Apache-2.0 License: ASL 2.0 URL: %{gourl} Source0: %{gosource} Source1: theo-agent.sysusers BuildRequires: golang(github.com/hashicorp/go-syslog) BuildRequires: golang(golang.org/x/crypto/ssh) BuildRequires: golang(gopkg.in/yaml.v2) BuildRequires: systemd-rpm-macros %description %{common_description} %package -n theo-agent Summary: %{summary} Recommends: openssh-server %description -n theo-agent %{common_description} %gopkg %prep %goprep %build export LDFLAGS="-X %{goipath}/common.NAME=theo-agent -X %{goipath}/common.VERSION=%{version} -X %{goipath}/common.BUILT=$(date -u +%%Y-%%m-%%dT%%H:%%M:%%S%%z) " %gobuild -o %{gobuilddir}/bin/theo-agent %{goipath} %install %gopkginstall install -m 0755 -vd %{buildroot}%{_bindir} install -m 0755 -vp %{gobuilddir}/bin/* %{buildroot}%{_bindir}/ install -p -D -m 0644 %{SOURCE1} %{buildroot}%{_sysusersdir}/theo-agent.conf install -d -m 0755 %{buildroot}%{_sysconfdir}/theo-agent %if %{with check} %check %gocheck %endif %pre %sysusers_create_compat %{SOURCE1} %files -n theo-agent %license LICENSE %doc README.md %{_bindir}/* %dir %{_sysconfdir}/theo-agent %{_sysusersdir}/theo-agent.conf %gopkgfiles %changelog * Tue Jul 19 2022 Maxwell G - 0.14.0-5 - Rebuild for CVE-2022-{1705,32148,30631,30633,28131,30635,30632,30630,1962} in golang * Sat Jul 09 2022 Maxwell G - 0.14.0-4 - Rebuild for CVE-2022-{24675,28327,29526 in golang} * Thu Jan 20 2022 Fedora Release Engineering - 0.14.0-3 - Rebuilt for https://fedoraproject.org/wiki/Fedora_36_Mass_Rebuild * Thu Jul 22 2021 Fedora Release Engineering - 0.14.0-2 - Rebuilt for https://fedoraproject.org/wiki/Fedora_35_Mass_Rebuild * Sat Apr 24 2021 Davide Cavalca - 0.14.0-1 - Initial package