# Generated by go2rpm 1.9.0 %bcond_without check %global debug_package %{nil} # https://github.com/containerd/nri %global goipath github.com/containerd/nri Version: 0.3.0 %gometa %global common_description %{expand: Node Resource Interface.} %global golicenses LICENSE %global godocs docs examples README-v0.1.0.md README.md Name: %{goname} Release: %autorelease Summary: Node Resource Interface License: Apache-2.0 URL: %{gourl} Source: %{gosource} Patch: 0001-Take-pkg-hooks-from-github.com-containers-common.patch %description %{common_description} %gopkg %prep %goprep %autopatch -p1 %generate_buildrequires %go_generate_buildrequires %install %gopkginstall %if %{with check} %check # https://github.com/r3labs/diff/issues/95 for test in "TestDiff" \ ; do awk -i inplace '/^func.*'"$test"'\(/ { print; print "\tt.Skip(\"disabled failing test\")"; next}1' $(grep -rl $test) done %gocheck %endif %gopkgfiles %changelog %autochangelog