# Generated by go2rpm 1.9.0 %bcond_without check %global debug_package %{nil} # https://github.com/containers/common %global goipath github.com/containers/common Version: 0.55.2 %gometa %global common_description %{expand: Location for shared common files in github.com/containers repos.} %global golicenses LICENSE LICENSE-camelcase.md %global godocs docs CODE-OF-CONDUCT.md CONTRIBUTING.md README.md\\\ SECURITY.md Name: %{goname} Release: %autorelease Summary: Location for shared common files in github.com/containers repos # Apache-2.0: main library # MIT: pkg/report/camelcase/ License: Apache-2.0 AND MIT URL: %{gourl} Source: %{gosource} %description %{common_description} %gopkg %prep %goprep %autopatch -p1 mv pkg/report/camelcase/LICENSE.md LICENSE-camelcase.md sed -i "s|github.com/docker/distribution|github.com/distribution/distribution/v3|" $(find . -iname "*.go" -type f) %generate_buildrequires %go_generate_buildrequires %install %gopkginstall %if %{with check} %check for test in "TestSupplemented" \ ; do awk -i inplace '/^func.*'"$test"'\(/ { print; print "\tt.Skip(\"disabled failing test\")"; next}1' $(grep -rl $test) done %gocheck -d libimage -d libnetwork/cni -d libnetwork/netavark %endif %gopkgfiles %changelog %autochangelog