Compare commits

...
Sign in to create a new pull request.

13 commits

Author SHA1 Message Date
Packit
2592ddd904 Update to 4.53.4 upstream release
- Resolves: rhbz#2519404

Upstream tag: v4.53.4
Upstream commit: ce7026e3

Commit authored by Packit automation (https://packit.dev/)
2026-08-19 06:49:22 +00:00
Fedora Release Engineering
f2a5285f11 Rebuilt for https://fedoraproject.org/wiki/Fedora_45_Mass_Rebuild 2026-07-17 09:35:56 +00:00
Mikel Olasagasti Uranga
1e417689de Update to 4.53.3 and add packit integration 2026-07-14 12:44:07 +02:00
Maxwell G
a93b68f430 Rebuild for https://fedoraproject.org/wiki/Changes/golang1.26 2026-02-02 20:04:38 -06:00
Fedora Release Engineering
9ea538ca37 Rebuilt for https://fedoraproject.org/wiki/Fedora_44_Mass_Rebuild 2026-01-17 21:03:23 +00:00
Alejandro Sáez
d2295bbe56 rebuild 2025-10-10 16:40:28 +02:00
Mikel Olasagasti Uranga
e19346b601 Add shell completions 2025-08-29 16:21:01 +02:00
Romain Geissler
e4018e8da8 Upgrade to upstream version 4.47.1 and use vendoring (rhbz#2282002). 2025-08-21 09:14:24 +00:00
Maxwell G
5860566afe Rebuild for golang-1.25.0 2025-08-15 18:48:15 -05:00
Fedora Release Engineering
0b5f2047f8 Rebuilt for https://fedoraproject.org/wiki/Fedora_43_Mass_Rebuild 2025-07-25 21:13:38 +00:00
4f98ea7ce7
Fix building with Go 1.24; Resolves: RHBZ#2341595
Signed-off-by: Michel Lind <salimma@fedoraproject.org>
2025-01-26 14:29:09 -06:00
Fedora Release Engineering
e49998d666 Rebuilt for https://fedoraproject.org/wiki/Fedora_42_Mass_Rebuild 2025-01-19 16:36:42 +00:00
Fedora Release Engineering
ea882f276a Rebuilt for https://fedoraproject.org/wiki/Fedora_41_Mass_Rebuild 2024-07-20 10:44:08 +00:00
5 changed files with 88 additions and 26 deletions

6
.gitignore vendored
View file

@ -1 +1,7 @@
/yq-4.43.1.tar.gz
/yq-4.47.1.tar.gz
/yq-4.47.1-vendor.tar.bz2
/yq-4.53.3.tar.gz
/yq-4.53.3-vendor.tar.bz2
/yq-4.53.4.tar.gz
/yq-4.53.4-vendor.tar.bz2

34
.packit.yaml Normal file
View file

@ -0,0 +1,34 @@
---
downstream_package_name: yq
upstream_project_url: https://github.com/mikefarah/yq
upstream_tag_template: "v{version}"
jobs:
- job: pull_from_upstream
trigger: release
dist_git_branches:
rawhide:
fast_forward_merge_into:
- fedora-branched
- epel-all
- job: koji_build
trigger: commit
dist_git_branches:
- rawhide
actions:
post-modifications:
- |
sh -xeuc "
cd $PACKIT_DOWNSTREAM_REPO
export GOTOOLCHAIN=local+auto
spec="$PACKIT_DOWNSTREAM_PACKAGE_NAME.spec"
go_vendor_archive create --config go-vendor-tools.toml "$spec"
go_vendor_license \
--config go-vendor-tools.toml \
--path "$spec" \
report \
--verify-spec \
--autofill=auto
"
create_sync_note: false

8
go-vendor-tools.toml Normal file
View file

@ -0,0 +1,8 @@
[archive]
[licensing]
detector = "askalono"
[[licensing.licenses]]
path = "vendor/github.com/apparentlymart/go-textseg/v15/LICENSE"
sha256sum = "59e80949c14925f65181757d837ed93dea3783f62b031f642281d9e5b1936917"
expression = "(MIT AND Apache-2.0) AND Unicode-3.0"

View file

@ -1 +1,2 @@
SHA512 (yq-4.43.1.tar.gz) = a3bb594421811db613118af5ba002e08ccb4b76a63ddf428bbdd4926cf8614217d67f47bfa4ad2c87361a96ade1841fde656fcf9ed700a8994333d61b9a80a8d
SHA512 (yq-4.53.4.tar.gz) = f5edb9198abfbfff0e54fa7f0de7fa2d34184716fffdd34360e955fa1eca0b06c3f268713cf459863de688648e3ce535f1c2851342b90690904de330fd9f94f3
SHA512 (yq-4.53.4-vendor.tar.bz2) = 6121e2e7f20642452ec63f3f652ca416eedd9004a6dc5c2854f10fb06657a417277bde379e6759f9d940c162ff4b6587aee9869fcf1475f6aa39dfadaa6f59ac

63
yq.spec
View file

@ -1,57 +1,70 @@
# Generated by go2rpm 1.11.1
%bcond_without check
# Generated by go2rpm 1.19.0
%bcond check 1
# https://github.com/mikefarah/yq
%global goipath github.com/mikefarah/yq/v4
Version: 4.43.1
Version: 4.53.4
%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
Summary: Yq is a portable command-line YAML, JSON, XML, CSV, TOML, HCL and properties processor
License: MIT
# Generated by go-vendor-tools
License: Apache-2.0 AND BSD-2-Clause AND BSD-3-Clause AND MIT AND MPL-2.0 AND Unicode-3.0
URL: %{gourl}
Source: %{gosource}
Source0: %{gosource}
# Generated by go-vendor-tools
Source1: %{archivename}-vendor.tar.bz2
Source2: go-vendor-tools.toml
%description %{common_description}
BuildRequires: go-vendor-tools
%gopkg
%description
Yq is a portable command-line YAML, JSON, XML, CSV, TOML, HCL and properties
processor.
%prep
%goprep -A
%autopatch -p1
%goprep -p1
tar -xf %{S:1}
%generate_buildrequires
%go_generate_buildrequires
%go_vendor_license_buildrequires -c %{S:2}
%build
%global gomodulesmode GO111MODULE=on
%gobuild -o %{gobuilddir}/bin/yq %{goipath}
%{gobuilddir}/bin/%{name} shell-completion bash > %{name}.bash
%{gobuilddir}/bin/%{name} shell-completion fish > %{name}.fish
%{gobuilddir}/bin/%{name} shell-completion zsh > %{name}.zsh
%install
%go_vendor_license_install -c %{S:2}
install -m 0755 -vd %{buildroot}%{_bindir}
install -m 0755 -vp %{gobuilddir}/bin/* %{buildroot}%{_bindir}/
%if %{with check}
install -Dpm 0644 %{name}.bash %{buildroot}%{bash_completions_dir}/%{name}
install -Dpm 0644 %{name}.fish %{buildroot}%{fish_completions_dir}/%{name}.fish
install -Dpm 0644 %{name}.zsh %{buildroot}%{zsh_completions_dir}/_%{name}
%check
%gocheck
%go_vendor_license_check -c %{S:2}
%if %{with check}
%gotest ./...
%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
%files -f %{go_vendor_license_filelist}
%doc examples CODE_OF_CONDUCT.md CONTRIBUTING.md README.md SECURITY.md
%doc how-it-works.md project-words.txt release_instructions.txt
%doc release_notes.txt
%{_bindir}/yq
%{bash_completions_dir}/%{name}
%{fish_completions_dir}/%{name}.fish
%{zsh_completions_dir}/_%{name}
%changelog
%autochangelog