Open usui-tk opened 1 year ago
It would be super nice to have both jq
& yq
available by default. :+1:
third this. I guess we could use FPM to make our own?
I created a RPM you can have a look at yq-4.33.3-1.amzn2023.zip
Name: yq
Version: 4.33.3
Release: 1%{?dist}
Summary: Command-line YAML processor
License: MIT
URL: https://github.com/mikefarah/yq
Source0: %{name}-%{version}.tar.gz
BuildRequires: golang
BuildRequires: gcc
BuildRequires: g++
%global _hardened_build 1
%global debug_package %{nil}
%description
yq is a command-line YAML processor that can read, modify and write YAML data.
%prep
%autosetup -n %{name}-%{version}
%build
go build -v -trimpath -buildmode=pie -tags netgo -ldflags="-s -w" -o %{name}
%install
install -Dpm 0755 %{name} %{buildroot}%{_bindir}/%{name}
%files
%{_bindir}/yq
@Kemotaha
The Fedora project has officially built and released yq as a RPM package. Therefore, I would like to use these artifacts in Amazon Linux 2023.
[Reference links] https://packages.fedoraproject.org/pkgs/yq/yq/index.html
https://src.fedoraproject.org/rpms/yq/tree/rawhide https://src.fedoraproject.org/rpms/yq/blob/rawhide/f/yq.spec
What package is missing from Amazon Linux 2022? Please describe and include package name.
yq
link here -> https://github.com/mikefarah/yq
Is this an update to existing package or new package request?
Is a new package.
Is this package available in Amazon Linux 2?
No, This package is not provided with Amazon Linux 2.
However, it is provided in the Oracle Linux v8 extended repository as a reference for building new RPM packages.
[yq] https://public-yum.oracle.com/repo/OracleLinux/OL8/olcne15/x86_64/index_src.html https://public-yum.oracle.com/repo/OracleLinux/OL8/olcne15/x86_64/getPackageSource/yq-3.4.0-3.el8.src.rpm
Number of users impacted
It improves developer productivity by facilitating queries against YAML-formatted files generated by the various development tools provided by AWS. It also improves compatibility with various continuous integration tools.