# Generated by go2rpm 1.9.0 %bcond_without check # https://github.com/hashicorp/go-getter %global goipath github.com/hashicorp/go-getter/v2 Version: 2.2.0 %gometa -f %global common_description %{expand: Package for downloading things from a string URL using a variety of protocols.} %global golicenses LICENSE %global godocs README.md Name: %{goname} Release: %autorelease Summary: Package for downloading things from a string URL using a variety of protocols License: MPL-2.0 URL: %{gourl} Source: %{gosource} # Temporarily disable these to break a circular dependency Patch: go-getter-disable-gcs-s3.patch %description %{common_description} %gopkg %prep %goprep %autopatch -p1 %generate_buildrequires %go_generate_buildrequires %build for cmd in cmd/* ; do %gobuild -o %{gobuilddir}/bin/$(basename $cmd) %{goipath}/$cmd done %install %gopkginstall install -m 0755 -vd %{buildroot}%{_bindir} install -m 0755 -vp %{gobuilddir}/bin/* %{buildroot}%{_bindir}/ %if %{with check} %check # disable tests that require Internet access rm get_git_test.go gcs/get_gcs_test.go s3/get_s3_test.go %gocheck %endif %files %license LICENSE %doc README.md %{_bindir}/* %gopkgfiles %changelog %autochangelog