# Generated by go2rpm 1.9.0 # Needs special permissions for cgroupsv2 %bcond_with check # https://github.com/containerd/cgroups %global goipath github.com/containerd/cgroups/v3 %global forgeurl https://github.com/containerd/cgroups Version: 3.0.2 %gometa %global common_description %{expand: Cgroups package for Go.} %global golicenses LICENSE %global godocs README.md Name: %{goname} Release: %autorelease Summary: Cgroups package for Go License: Apache-2.0 URL: %{gourl} Source: %{gosource} %description %{common_description} %gopkg %prep %goprep %autopatch -p1 %generate_buildrequires %go_generate_buildrequires %build %gobuild -o %{gobuilddir}/bin/cgctl %{goipath}/cmd/cgctl %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}/cgctl %gopkgfiles %changelog %autochangelog