# Generated by go2rpm 1.9.0 %bcond_with check %global gomodulesmode GO111MODULE=on # https://github.com/rootless-containers/rootlesskit %global goipath github.com/rootless-containers/rootlesskit/v2 Version: 2.3.1 %gometa -f %global goname rootlesskit %global common_description %{expand: Linux-native "fake root" for implementing rootless containers.} %global golicenses LICENSE %global godocs docs README.md Name: %{goname} Release: %autorelease Summary: Linux-native "fake root" for implementing rootless containers License: Apache-2.0 URL: %{gourl} Source: %{gosource} BuildRequires: git-core Supplements: nerdctl %description %{common_description} %prep %goprep %autopatch -p1 go env -w GOPROXY=https://proxy.golang.org,direct go env -w GOSUMDB=sum.golang.org %build for cmd in cmd/* ; do %gobuild \-modcacherw -o %{gobuilddir}/bin/$(basename $cmd) %{goipath}/$cmd done %install install -m 0755 -vd %{buildroot}%{_bindir} install -m 0755 -vp %{gobuilddir}/bin/* %{buildroot}%{_bindir}/ %if %{with check} %check %gocheck %endif %files %license LICENSE %doc docs README.md %{_bindir}/* %changelog %autochangelog