## START: Set by rpmautospec ## (rpmautospec version 0.3.0) %define autorelease(e:s:pb:n) %{?-p:0.}%{lua: release_number = 1; base_release_number = tonumber(rpm.expand("%{?-b*}%{!?-b:1}")); print(release_number + base_release_number - 1); }%{?-e:.%{-e*}}%{?-s:.%{-s*}}%{!?-n:%{?dist}} ## END: Set by rpmautospec # 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 %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 * Tue Feb 21 2023 Davide Cavalca 1.2.1-1 - Initial import; Fixes: RHBZ#2172235