# fzf-style fully-bundled (vendored) Go build for offline koji/Copr on AL2023. # Vendor blob (Source1) generated with go-vendor-tools (go_vendor_archive). %bcond_with check # https://github.com/mikefarah/yq %global goipath github.com/mikefarah/yq Version: 4.53.3 %gometa -L -f Name: yq Release: 1%{?dist} Summary: Portable command-line YAML/JSON/XML processor License: Apache-2.0 AND BSD-2-Clause AND BSD-3-Clause AND MIT AND MPL-2.0 URL: %{gourl} Source0: %{gosource} Source1: %{archivename}-vendor.tar.bz2 Source2: go-vendor-tools.toml BuildRequires: go-rpm-macros BuildRequires: go-vendor-tools BuildRequires: golang %description yq is a portable command-line YAML, JSON, XML, CSV, TOML and properties processor. All Go module dependencies are bundled (vendored) in the source RPM for fully offline builds. %prep %goprep -p1 # Unpack the vendored dependencies (go.mod, go.sum, vendor/) over the source tree tar -xf %{S:1} %generate_buildrequires %go_vendor_license_buildrequires -c %{S:2} %build %global gomodulesmode GO111MODULE=on %gobuild -o %{gobuilddir}/bin/yq %{goipath}/v4 %install %go_vendor_license_install -c %{S:2} install -m 0755 -vd %{buildroot}%{_bindir} install -m 0755 -vp %{gobuilddir}/bin/yq %{buildroot}%{_bindir}/yq %check %go_vendor_license_check -c %{S:2} %if %{with check} %gotest ./... %endif %files -f %{go_vendor_license_filelist} %doc README.md %{_bindir}/yq %changelog * Fri Jul 03 2026 yxwang5db2 - 4.53.3-1 - Initial package for AL-Stream-2023 with fully bundled (vendored) Go deps