# Generated by go2rpm 1.9.0 %bcond_without check # https://github.com/hashicorp/hc-install %global goipath github.com/hashicorp/hc-install Version: 0.5.2 %gometa -f %global common_description %{expand: Go module for downloading or locating HashiCorp binaries, verifying signatures and checksums, and asserting version constraints.} %global golicenses LICENSE %global godocs docs README.md Name: %{goname} Release: %autorelease Summary: Go module for downloading or locating HashiCorp binaries License: MPL-2.0 URL: %{gourl} Source: %{gosource} %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 %gocheck %endif %files %license LICENSE %doc docs README.md %{_bindir}/hc-install %gopkgfiles %changelog %autochangelog