# Generated by go2rpm 1.3 %bcond_without check # https://github.com/lucor/goinfo %global goipath github.com/lucor/goinfo %global commit 526b5363a13a9f7edfff7fb694eea71c6583f6f0 %gometa %global common_description %{expand: Goinfo is a simple tool that collect info about a Go project and the develop environment.} %global golicenses LICENSE %global godocs README.md Name: %{goname} Version: 0 Release: 0.1%{?dist} Summary: Collect info about a Go project and the develop environment # Upstream license specification: BSD-3-Clause License: BSD URL: %{gourl} Source0: %{gosource} BuildRequires: golang(golang.org/x/mod/modfile) %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:58:37 CET 2021 Robert-André Mauchin - 0-0.1.20210130git526b536 - Initial package