# Generated by go2rpm 1.6.0 %bcond_without check # https://github.com/mikefarah/yq %global goipath github.com/mikefarah/yq Version: 4.25.3 %gometa %global common_description %{expand: Lightweight and portable command-line YAML, JSON and XML processor. yq uses jq like syntax but works with yaml files as well as json and xml. It doesn't yet support everything jq does - but it does support the most common operations and functions, and more is being added continuously.} %global golicenses LICENSE %global godocs examples how-it-works.md CODE_OF_CONDUCT.md README.md\\\ CONTRIBUTING.md release_instructions.txt\\\ release_notes.txt debian/changelog Name: yq Release: 1%{?dist} Summary: Portable command-line YAML, JSON and XML processor License: MIT URL: %{gourl} Source0: %{gosource} %description %{common_description} %gopkg %prep %goprep %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 how-it-works.md CODE_OF_CONDUCT.md README.md CONTRIBUTING.md %doc release_instructions.txt release_notes.txt debian/changelog %{_bindir}/* %gopkgfiles %changelog * Fri Jun 24 2022 Julien Rische - 4.25.3-1 - Initial package