# Generated by go2rpm 1.8.2 %bcond_without check %global debug_package %{nil} # https://github.com/sebdah/goldie %global goipath github.com/sebdah/goldie/v2 Version: 2.5.3 %gometa -f %global common_description %{expand: Golden file testing for Go.} %global golicenses LICENSE %global godocs README.md Name: %{goname} Release: %autorelease Summary: Golden file testing for Go License: MIT URL: %{gourl} Source: %{gosource} %description %{common_description} %gopkg %prep %goprep # The git repo includes v1, with v2 in a subdirectory. # Remove v1 files. rm LICENSE README.md go.mod *.go # Move v2 files up. mv v2/* ./. rmdir v2 %generate_buildrequires %go_generate_buildrequires %install %gopkginstall %if %{with check} %check %gocheck %endif %gopkgfiles %changelog %autochangelog