## START: Set by rpmautospec ## (rpmautospec version 0.3.5) ## RPMAUTOSPEC: autorelease, autochangelog %define autorelease(e:s:pb:n) %{?-p:0.}%{lua: release_number = 1; base_release_number = tonumber(rpm.expand("%{?-b*}%{!?-b:1}")); print(release_number + base_release_number - 1); }%{?-e:.%{-e*}}%{?-s:.%{-s*}}%{!?-n:%{?dist}} ## END: Set by rpmautospec # Generated by go2rpm 1.8.0 # Needs special permissions for cgroupsv2 %bcond_with check %global debug_package %{nil} # https://github.com/containerd/cgroups # XXX: The goipath should be `github.com/containerd/cgroups/v3`, # but we need this hack because of the github.com/containerd/cgroups/cmd # module. %global goipath github.com/containerd/cgroups %global goname %{gorpmname %{goipath}/v3} %global godevelname %{gorpmname %{goipath}/v3}-devel # End XXX Epoch: 1 Version: 3.0.1 %gometa %global common_description %{expand: Go package for creating, managing, inspecting, and destroying cgroups.} %global golicenses v3/LICENSE %global godocs v3/README.md Name: %{gorpmname %{goipath}/v3} Release: %autorelease Summary: Cgroups package for Go License: Apache-2.0 URL: %{gourl} Source: %{gosource} %description %{common_description} %gopkg %prep %goprep # XXX: We need this hack because of the github.com/containerd/cgroups/cmd # module. mv _build ._build mkdir .v3/ mv * .v3 mv .v3/cmd cmd mv .v3 v3 mv ._build _build mv .* v3 %generate_buildrequires %go_generate_buildrequires %install %gopkginstall %if %{with check} %check %gocheck %endif %gopkgfiles %changelog * Sun Apr 23 2023 John Doe - 1:3.0.1-1 - Uncommitted changes