## START: Set by rpmautospec ## (rpmautospec version 0.6.3) ## RPMAUTOSPEC: autorelease, autochangelog %define autorelease(e:s:pb:n) %{?-p:0.}%{lua: release_number = 2; base_release_number = tonumber(rpm.expand("%{?-b*}%{!?-b:1}")); print(release_number + base_release_number - 1); }%{?-e:.%{-e*}}%{?-s:.%{-s*}}%{!?-n:%{?dist}} ## END: Set by rpmautospec # Generated by go2rpm 1.11.1 %bcond_without check # https://github.com/mikefarah/yq %global goipath github.com/mikefarah/yq/v4 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 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 %changelog ## START: Generated by rpmautospec * Tue Apr 23 2024 Michel Lind - 4.43.1-2 - Fix goipath and remove gopkg, thanks mikelo2 * Tue Apr 23 2024 Michel Lind - 4.43.1-1 - Initial package (rhbz#2276522) ## END: Generated by rpmautospec