diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..1dcfb64 --- /dev/null +++ b/.gitignore @@ -0,0 +1 @@ +/goversioninfo-1.4.0.tar.gz diff --git a/SPECS/golang-github-josephspurrier-goversioninfo.spec b/SPECS/golang-github-josephspurrier-goversioninfo.spec new file mode 100644 index 0000000..a721428 --- /dev/null +++ b/SPECS/golang-github-josephspurrier-goversioninfo.spec @@ -0,0 +1,67 @@ +# Generated by go2rpm 1.9.0 +%bcond_with check + +# https://github.com/josephspurrier/goversioninfo +%global goipath github.com/josephspurrier/goversioninfo +Version: 1.4.0 + +%gometa + +%global common_description %{expand: +Golang Microsoft Windows File Properties/Version Info and Icon Resource +Generator.} + +%global golicenses LICENSE +%global godocs README.md + +Name: %{goname} +Release: 1%{?dist} +Summary: Golang Microsoft Windows File Properties/Version Info and Icon Resource Generator + +License: MIT +URL: %{gourl} +Source: %{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 + +Provides: goversioninfo + +%description %{common_description} + +%gopkg + +%prep +%goprep +%autopatch -p1 + +%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 +* Fri May 26 2023 Christian Glombek - 1.4.0-1 +- Initial package diff --git a/sources b/sources new file mode 100644 index 0000000..dcedb4a --- /dev/null +++ b/sources @@ -0,0 +1 @@ +SHA512 (goversioninfo-1.4.0.tar.gz) = deb2044d2bcbf40d09cb9dd7358fdf82be1fe3cabc7f28240f55dc3e58c77166eb7c6cdb6fcf515d9d93c953ee09b3a4a20d1b46184093a33355562245edb05a