## START: Set by rpmautospec ## (rpmautospec version 0.7.3) ## RPMAUTOSPEC: autorelease, autochangelog %define autorelease(e:s:pb:n) %{?-p:0.}%{lua: release_number = 5; 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} Patch: https://github.com/mikefarah/yq/commit/6908161f1fb6713db8259909c606109770fe7673.patch#/yq-go1_24-replace_error_creation.diff %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 * Sun Jan 26 2025 Michel Lind - 4.43.1-5 - Fix building with Go 1.24; Resolves: RHBZ#2341595 * Sun Jan 19 2025 Fedora Release Engineering - 4.43.1-4 - Rebuilt for https://fedoraproject.org/wiki/Fedora_42_Mass_Rebuild * Sat Jul 20 2024 Fedora Release Engineering - 4.43.1-3 - Rebuilt for https://fedoraproject.org/wiki/Fedora_41_Mass_Rebuild * 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