# Generated by go2rpm 1.9.0 %bcond_without check %global debug_package %{nil} # https://github.com/containers/image %global goipath github.com/containers/image/v5 %global forgeurl https://github.com/containers/image Version: 5.26.1 %gometa %global common_description %{expand: image is a set of Go libraries aimed at working in various way with containers' images and container image registries. The containers/image library allows application to pull and push images from container image registries, like the docker.io and quay.io registries. It also implements "simple image signing". The containers/image library also allows you to inspect a repository on a container registry without pulling down the image. This means it fetches the repository's manifest and it is able to show you a docker inspect-like json output about a whole repository or a tag. This library, in contrast to docker inspect, helps you gather useful information about a repository or a tag without requiring you to run docker pull. The containers/image library also allows you to translate from one image format to another, for example docker container images to OCI images. It also allows you to copy container images between various registries, possibly converting them as necessary, and to sign and verify images.} %global golicenses LICENSE %global godocs docs CODE-OF-CONDUCT.md CONTRIBUTING.md README.md\\\ SECURITY.md Name: %{goname} Release: %autorelease Summary: Work with containers' images License: Apache-2.0 URL: %{gourl} Source: %{gosource} # Too much deps Patch: 0001-Remove-sigstore.patch Patch: 336c7ff1189ba42d5c29a87dd5bed55e51608e9d.patch %description %{common_description} %gopkg %prep %goprep %autopatch -p1 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 "TestReferenceNewImage" \ "TestReferenceNewImageSource" \ ; do awk -i inplace '/^func.*'"$test"'\(/ { print; print "\tt.Skip(\"disabled failing test\")"; next}1' $(grep -rl $test) done %gocheck %endif %gopkgfiles %changelog %autochangelog