# Generated by go2rpm 1.9.0 %bcond_without check %global debug_package %{nil} # https://github.com/opencontainers/runc %global goipath github.com/opencontainers/runc Version: 1.1.8 %gometa %global common_description %{expand: Runc is a CLI tool for spawning and running containers according to the OCI specification.} %global golicenses LICENSE NOTICE %global godocs docs CONTRIBUTING.md EMERITUS.md PRINCIPLES.md\\\ CHANGELOG.md MAINTAINERS_GUIDE.md README.md\\\ SECURITY.md Name: %{goname} Release: %autorelease -b 10 Summary: CLI tool for spawning and running containers License: Apache-2.0 URL: %{gourl} Source: %{gosource} Patch: https://github.com/opencontainers/runc/commit/c0be1aa2d101dcd3074b5a0e486d58d3f9568d81.patch %description %{common_description} %gopkg %prep %goprep %autopatch -p1 %generate_buildrequires %go_generate_buildrequires %install %gopkginstall %if %{with check} %check for test in "TestFactoryNewTmpfs" \ "TestNsenterValidPaths" \ "TestNsenterChildLogging" \ "TestResolveRootfs" \ ; do awk -i inplace '/^func.*'"$test"'\(/ { print; print "\tt.Skip(\"disabled failing test\")"; next}1' $(grep -rl $test) done %gocheck -d libcontainer/integration -t libcontainer/cgroups %endif %gopkgfiles %changelog %autochangelog