# Generated by go2rpm 1.8.2 %bcond_without check %global debug_package %{nil} # https://github.com/oras-project/oras-go %global goipath oras.land/oras-go %global forgeurl https://github.com/oras-project/oras-go Version: 1.2.1 %gometa -f %global goname %{goname}1 %global godevelname %{goname}1-devel %global common_description %{expand: ORAS Go library.} %global golicenses LICENSE %global godocs examples CODE_OF_CONDUCT.md OWNERS.md README.md Name: %{goname} Release: %autorelease Summary: ORAS Go library License: Apache-2.0 URL: %{gourl} Source: %{gosource} Patch0: oras-fix-for-registry.patch # Remove in F43 Provides: golang-oras-1 = %{version}-%{release} Obsoletes: golang-oras-1 < 1.2.1-3 %global godevelheader %{expand: Provides: golang-oras-1-devel = %{version}-%{release} Obsoletes: golang-oras-1-devel < 1.2.1-3} %description %{common_description} %gopkg %prep %goprep %patch0 -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 "TestContentTestSuite" \ ; do awk -i inplace '/^func.*'"$test"'\(/ { print; print "\tt.Skip(\"disabled failing test\")"; next}1' $(grep -rl $test) done %gocheck %endif %gopkgfiles %changelog %autochangelog