# Generated by go2rpm 1.9.0 %bcond_without check # https://github.com/hashicorp/terraform-config-inspect %global goipath github.com/hashicorp/terraform-config-inspect %global commit f1617e8a5fccc2ba3dae2e1983669b304dab8c3c %gometa -f %global common_description %{expand: A helper library for shallow inspection of Terraform configurations.} %global golicenses LICENSE %global godocs README.md Name: %{goname} Version: 0 Release: %autorelease -p Summary: A helper library for shallow inspection of Terraform configurations License: MPL-2.0 URL: %{gourl} Source: %{gosource} %description %{common_description} %gopkg %prep %goprep %autopatch -p1 %generate_buildrequires %go_generate_buildrequires %build %gobuild -o %{gobuilddir}/bin/terraform-config-inspect %{goipath} %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 README.md %{_bindir}/* %gopkgfiles %changelog %autochangelog