# Generated by go2rpm 1.9.0 %bcond_without check %global debug_package %{nil} # https://github.com/cli/go-gh %global goipath github.com/cli/go-gh/v2 Version: 2.0.0 %gometa -f %global goname golang-github-cli-gh %global common_description %{expand: A Go module for interacting with gh and the GitHub API from the command line.} %global golicenses LICENSE %global godocs README.md Name: %{goname} Release: %autorelease Summary: A Go module for interacting with gh and the GitHub API from the command line License: MIT URL: %{gourl} Source: %{gosource} BuildRequires: git-core %description %{common_description} %gopkg %prep %goprep %autopatch -p1 %generate_buildrequires %go_generate_buildrequires %install %gopkginstall %if %{with check} %check for test in "TestGQLClientDoWithContext" "TestRESTClientDoWithContext" "TestRESTClientRequestWithContext" "TestGraphQLClientDoWithContext" \ ; do awk -i inplace '/^func.*'"$test"'\(/ { print; print "\tt.Skip(\"disabled failing test\")"; next}1' $(grep -rl $test) done %gocheck %endif %gopkgfiles %changelog %autochangelog