# Generated by go2rpm 1.14.0 %bcond_without check # https://pagure.io/modist %global goipath pagure.io/modist %global forgeurl https://pagure.io/modist Version: 0.1.0 %gometa -L -f %global common_description %{expand: A small utility to create and query Go (Golang) modules.} Name: modist Release: %autorelease Summary: A small utility to create and query Go (Golang) modules # Generated by go-vendor-tools License: Apache-2.0 AND BSD-3-Clause AND GPL-3.0-only URL: %{gourl} Source: %{gosource} # Generated by go-vendor-tools Source: %{archivename}-vendor.tar.bz2 %description %{common_description} %prep %goprep -A %setup -q -T -D -a1 %{forgesetupargs} %autopatch -p1 %build export GOFLAGS="-mod=vendor" for cmd in cmd/* ; do %gobuild -o %{gobuilddir}/bin/$(basename $cmd) %{goipath}/$cmd done %install install -m 0755 -vd %{buildroot}%{_bindir} install -m 0755 -vp %{gobuilddir}/bin/* %{buildroot}%{_bindir}/ %check %if %{with check} %gocheck %endif %files %license LICENSE.txt vendor/modules.txt %doc README.md %{_bindir}/%{name} %changelog %autochangelog