# Generated by go2rpm 1.8.2 %bcond_without check %global debug_package %{nil} # https://github.com/spiffe/go-spiffe %global goipath github.com/spiffe/go-spiffe/v2 Version: 2.1.1 %gometa -f %global common_description %{expand: Golang library for SPIFFE support.} %global golicenses LICENSE %global godocs CHANGELOG.md README.md examples Name: %{goname} Release: %autorelease Summary: Golang library for SPIFFE support License: Apache-2.0 URL: %{gourl} Source: %{gosource} %description %{common_description} %gopkg %prep %goprep mv v2/* . rm -rfv examples %generate_buildrequires %go_generate_buildrequires %install %gopkginstall %if %{with check} %check for test in "TestParse" \ ; do awk -i inplace '/^func.*'"$test"'\(/ { print; print "\tt.Skip(\"disabled failing test\")"; next}1' $(grep -rl $test) done %gocheck -d spiffegrpc/grpccredentials %endif %gopkgfiles %changelog %autochangelog