# Generated by go2rpm 1.3 %bcond_without check # https://github.com/dave/dst %global goipath github.com/dave/dst Version: 0.26.2 %gometa %global common_description %{expand: Decorated Syntax Tree, manipulate Go source with perfect fidelity.} %global golicenses LICENSE %global godocs README.md Name: %{goname} Release: 1%{?dist} Summary: Manipulate Go source with perfect fidelity License: MIT and BSD URL: %{gourl} Source0: %{gosource} BuildRequires: golang(github.com/dave/jennifer/jen) BuildRequires: golang(golang.org/x/tools/go/loader) BuildRequires: golang(golang.org/x/tools/go/packages) %if %{with check} # Tests BuildRequires: golang(github.com/sergi/go-diff/diffmatchpatch) %endif %description %{common_description} %gopkg %prep %goprep %build for cmd in gendst; 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 # Needs modules? rm decorations_test.go %gocheck -d decorator %endif %files %license LICENSE %doc gendst/README.md %{_bindir}/* %gopkgfiles %changelog * Thu Jan 28 20:43:20 CET 2021 Robert-André Mauchin - 0.26.2-1 - Initial package