# Generated by go2rpm 1.6.0 %bcond_without check # https://github.com/golang/mod %global goipath golang.org/x/mod %global forgeurl https://github.com/golang/mod Version: 0.22.0 %gometa %global common_description %{expand: This packages holds packages for writing tools that work directly with Go module mechanics. That is, it is for direct manipulation of Go modules themselves.} %global golicenses LICENSE PATENTS %global godocs README.md Name: %{goname} Release: %autorelease Summary: Go module mechanics libraries # Upstream license specification: BSD-3-Clause License: BSD-3-Clause URL: %{gourl} Source0: %{gosource} %description %{common_description} %gopkg %prep %goprep %generate_buildrequires %go_generate_buildrequires %build for cmd in gosumcheck; 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 # sumdb/tlog: needs network %gocheck -d golang.org/x/mod/sumdb/tlog %endif %files %license LICENSE PATENTS %doc README.md %{_bindir}/gosumcheck %gopkgfiles %changelog %autochangelog