# Generated by go2rpm 1.11.1 %bcond_without check # https://github.com/mikefarah/yq %global goipath github.com/mikefarah/yq Version: 4.43.1 %gometa -L -f %global common_description %{expand: Yq is a portable command-line YAML, JSON, XML, CSV, TOML and properties processor.} %global golicenses LICENSE %global godocs examples CODE_OF_CONDUCT.md how-it-works.md project-\\\ words.txt release_instructions.txt CONTRIBUTING.md\\\ README.md release_notes.txt Name: yq Release: %autorelease Summary: Yq is a portable command-line YAML, JSON, XML, CSV, TOML and properties processor License: MIT URL: %{gourl} Source: %{gosource} %description %{common_description} %gopkg %prep %goprep -A %autopatch -p1 %generate_buildrequires %go_generate_buildrequires %build %gobuild -o %{gobuilddir}/bin/yq %{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 examples CODE_OF_CONDUCT.md how-it-works.md project-words.txt %doc release_instructions.txt CONTRIBUTING.md README.md release_notes.txt %{_bindir}/yq %gopkgfiles %changelog %autochangelog