# Generated by go2rpm 1.3 %bcond_without check # https://github.com/josephspurrier/goversioninfo %global goipath github.com/josephspurrier/goversioninfo Version: 1.2.0 %gometa %global common_description %{expand: Microsoft Windows File Properties/Version Info and Icon Resource Generator for the Go Language Package creates a syso file which contains Microsoft Windows Version Information and an optional icon. When you run "go build", Go will embed the version information and an optional icon and an optional manifest in the executable. Go will automatically use the syso file if it's in the same directory as the main() function} %global golicenses LICENSE %global godocs README.md Name: %{goname} Release: 1%{?dist} Summary: Golang Windows File Properties/Version Info and Icon Resource Generator License: MIT URL: %{gourl} Source0: %{gosource} BuildRequires: golang(github.com/akavel/rsrc/binutil) BuildRequires: golang(github.com/akavel/rsrc/coff) BuildRequires: golang(github.com/akavel/rsrc/ico) %if %{with check} # Tests BuildRequires: golang(github.com/stretchr/testify/assert) %endif %description %{common_description} %gopkg %prep %goprep %build for cmd in cmd/* ; 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 LICENSE %doc README.md %{_bindir}/* %gopkgfiles %changelog * Sat Jan 30 23:34:04 CET 2021 Robert-André Mauchin - 1.2.0-1 - Initial package