|
|
7dc4e9 |
Name: jq
|
|
|
7dc4e9 |
Version: 1.6
|
|
|
9f14f8 |
Release: 14%{?dist}
|
|
|
7dc4e9 |
Summary: Command-line JSON processor
|
|
|
7dc4e9 |
|
|
|
7dc4e9 |
License: MIT and ASL 2.0 and CC-BY and GPLv3
|
|
|
7dc4e9 |
URL: http://stedolan.github.io/jq/
|
|
|
7dc4e9 |
Source0: https://github.com/stedolan/jq/releases/download/%{name}-%{version}/%{name}-%{version}.tar.gz
|
|
|
7dc4e9 |
# Backport of PR#1752 for RHBZ#2008979
|
|
|
7dc4e9 |
Patch0: jq-decimal-literal-number.patch
|
|
|
9f14f8 |
Patch1: 0001-iterration-problem-for-non-decimal-string.patch
|
|
|
9f14f8 |
Patch2: 0002-add-mantest.patch
|
|
|
7dc4e9 |
|
|
|
7dc4e9 |
BuildRequires: gcc
|
|
|
7dc4e9 |
BuildRequires: flex
|
|
|
7dc4e9 |
BuildRequires: bison
|
|
|
7dc4e9 |
BuildRequires: oniguruma-devel
|
|
|
7dc4e9 |
BuildRequires: chrpath
|
|
|
7dc4e9 |
|
|
|
7dc4e9 |
%ifarch %{valgrind_arches}
|
|
|
7dc4e9 |
BuildRequires: valgrind
|
|
|
7dc4e9 |
%endif
|
|
|
7dc4e9 |
BuildRequires: make
|
|
|
7dc4e9 |
BuildRequires: autoconf
|
|
|
7dc4e9 |
BuildRequires: automake
|
|
|
7dc4e9 |
BuildRequires: libtool
|
|
|
7dc4e9 |
|
|
|
7dc4e9 |
|
|
|
7dc4e9 |
%description
|
|
|
7dc4e9 |
lightweight and flexible command-line JSON processor
|
|
|
7dc4e9 |
|
|
|
7dc4e9 |
jq is like sed for JSON data – you can use it to slice
|
|
|
7dc4e9 |
and filter and map and transform structured data with
|
|
|
7dc4e9 |
the same ease that sed, awk, grep and friends let you
|
|
|
7dc4e9 |
play with text.
|
|
|
7dc4e9 |
|
|
|
7dc4e9 |
It is written in portable C, and it has zero runtime
|
|
|
7dc4e9 |
dependencies.
|
|
|
7dc4e9 |
|
|
|
7dc4e9 |
jq can mangle the data format that you have into the
|
|
|
7dc4e9 |
one that you want with very little effort, and the
|
|
|
7dc4e9 |
program to do so is often shorter and simpler than
|
|
|
7dc4e9 |
you'd expect.
|
|
|
7dc4e9 |
|
|
|
7dc4e9 |
%package devel
|
|
|
7dc4e9 |
Summary: Development files for %{name}
|
|
|
7dc4e9 |
Requires: %{name}%{?_isa} = %{version}-%{release}
|
|
|
7dc4e9 |
|
|
|
7dc4e9 |
%description devel
|
|
|
7dc4e9 |
Development files for %{name}
|
|
|
7dc4e9 |
|
|
|
7dc4e9 |
|
|
|
7dc4e9 |
%prep
|
|
|
7dc4e9 |
%autosetup -n %{name}-%{version} -p1
|
|
|
7dc4e9 |
|
|
|
7dc4e9 |
%build
|
|
|
7dc4e9 |
autoreconf -if
|
|
|
7dc4e9 |
%configure --disable-static
|
|
|
7dc4e9 |
make %{?_smp_mflags}
|
|
|
7dc4e9 |
# Docs already shipped in jq's tarball.
|
|
|
7dc4e9 |
# In order to build the manual page, it
|
|
|
7dc4e9 |
# is necessary to install rake, rubygem-ronn
|
|
|
7dc4e9 |
# and do the following steps:
|
|
|
7dc4e9 |
#
|
|
|
7dc4e9 |
# # yum install rake rubygem-ronn
|
|
|
7dc4e9 |
# $ cd docs/
|
|
|
7dc4e9 |
# $ curl -L https://get.rvm.io | bash -s stable --ruby=1.9.3
|
|
|
7dc4e9 |
# $ source $HOME/.rvm/scripts/rvm
|
|
|
7dc4e9 |
# $ bundle install
|
|
|
7dc4e9 |
# $ cd ..
|
|
|
7dc4e9 |
# $ ./configure
|
|
|
7dc4e9 |
# $ make real_docs
|
|
|
7dc4e9 |
|
|
|
7dc4e9 |
%install
|
|
|
7dc4e9 |
make DESTDIR=%{buildroot} install
|
|
|
7dc4e9 |
find %{buildroot} -name '*.la' -exec rm -f {} ';'
|
|
|
7dc4e9 |
chrpath --delete %{buildroot}/usr/bin/jq
|
|
|
7dc4e9 |
|
|
|
7dc4e9 |
%check
|
|
|
7dc4e9 |
# Valgrind used, so restrict architectures for check
|
|
|
7dc4e9 |
%ifarch %{ix86} x86_64
|
|
|
7dc4e9 |
make check
|
|
|
7dc4e9 |
%endif
|
|
|
7dc4e9 |
|
|
|
7dc4e9 |
%ldconfig_scriptlets
|
|
|
7dc4e9 |
|
|
|
7dc4e9 |
%files
|
|
|
7dc4e9 |
%{_bindir}/%{name}
|
|
|
7dc4e9 |
%{_libdir}/libjq.so.*
|
|
|
7dc4e9 |
%{_datadir}/man/man1/jq.1.gz
|
|
|
7dc4e9 |
%{_datadir}/doc/jq/AUTHORS
|
|
|
7dc4e9 |
%{_datadir}/doc/jq/COPYING
|
|
|
7dc4e9 |
%{_datadir}/doc/jq/README
|
|
|
7dc4e9 |
%{_datadir}/doc/jq/README.md
|
|
|
7dc4e9 |
|
|
|
7dc4e9 |
%files devel
|
|
|
7dc4e9 |
%{_includedir}/jq.h
|
|
|
7dc4e9 |
%{_includedir}/jv.h
|
|
|
7dc4e9 |
%{_libdir}/libjq.so
|
|
|
7dc4e9 |
|
|
|
7dc4e9 |
|
|
|
7dc4e9 |
%changelog
|
|
|
9f14f8 |
* Fri Nov 4 2022 Tomas Halman <thalman@redhat.com> - 1.6-6
|
|
|
9f14f8 |
- Add mantest to the gating
|
|
|
9f14f8 |
- Related: rhbz#2049594
|
|
|
9f14f8 |
|
|
|
9f14f8 |
* Fri Oct 21 2022 Tomas Halman <thalman@redhat.com> - 1.6-13
|
|
|
9f14f8 |
- jq try/catch stops iteration over items
|
|
|
9f14f8 |
Resolves: rhbz#2049594
|
|
|
9f14f8 |
|
|
|
7dc4e9 |
* Mon Nov 15 2021 Tomas Halman <thalman@redhat.com>
|
|
|
7dc4e9 |
- Strip rpath from jq binary
|
|
|
7dc4e9 |
Related: rhbz#2008983
|
|
|
7dc4e9 |
|
|
|
7dc4e9 |
* Wed Sep 29 2021 Davide Cavalca <dcavalca@centosproject.org> - 1.6-10
|
|
|
7dc4e9 |
- Backport PR#1752 to fix an integer logic issue
|
|
|
7dc4e9 |
Resolves: rhbz#2008983
|
|
|
7dc4e9 |
|
|
|
7dc4e9 |
* Mon Aug 09 2021 Mohan Boddu <mboddu@redhat.com> - 1.6-9
|
|
|
7dc4e9 |
- Rebuilt for IMA sigs, glibc 2.34, aarch64 flags
|
|
|
7dc4e9 |
Related: rhbz#1991688
|
|
|
7dc4e9 |
|
|
|
7dc4e9 |
* Fri Apr 16 2021 Mohan Boddu <mboddu@redhat.com> - 1.6-8
|
|
|
7dc4e9 |
- Rebuilt for RHEL 9 BETA on Apr 15th 2021. Related: rhbz#1947937
|
|
|
7dc4e9 |
|
|
|
7dc4e9 |
* Tue Jan 26 2021 Fedora Release Engineering <releng@fedoraproject.org> - 1.6-7
|
|
|
7dc4e9 |
- Rebuilt for https://fedoraproject.org/wiki/Fedora_34_Mass_Rebuild
|
|
|
7dc4e9 |
|
|
|
7dc4e9 |
* Sat Dec 05 2020 Richard W.M. Jones <rjones@redhat.com> - 1.6-6
|
|
|
7dc4e9 |
- Use correct valgrind_arches macro to check for valgrind.
|
|
|
7dc4e9 |
|
|
|
7dc4e9 |
* Tue Jul 28 2020 Fedora Release Engineering <releng@fedoraproject.org> - 1.6-5
|
|
|
7dc4e9 |
- Rebuilt for https://fedoraproject.org/wiki/Fedora_33_Mass_Rebuild
|
|
|
7dc4e9 |
|
|
|
7dc4e9 |
* Wed Jan 29 2020 Fedora Release Engineering <releng@fedoraproject.org> - 1.6-4
|
|
|
7dc4e9 |
- Rebuilt for https://fedoraproject.org/wiki/Fedora_32_Mass_Rebuild
|
|
|
7dc4e9 |
|
|
|
7dc4e9 |
* Thu Jul 25 2019 Fedora Release Engineering <releng@fedoraproject.org> - 1.6-3
|
|
|
7dc4e9 |
- Rebuilt for https://fedoraproject.org/wiki/Fedora_31_Mass_Rebuild
|
|
|
7dc4e9 |
|
|
|
7dc4e9 |
* Fri Feb 01 2019 Fedora Release Engineering <releng@fedoraproject.org> - 1.6-2
|
|
|
7dc4e9 |
- Rebuilt for https://fedoraproject.org/wiki/Fedora_30_Mass_Rebuild
|
|
|
7dc4e9 |
|
|
|
7dc4e9 |
* Thu Nov 08 2018 David Fetter <david@fetter.org> - 1.6-1
|
|
|
7dc4e9 |
- Upstream 1.6.0
|
|
|
7dc4e9 |
|
|
|
7dc4e9 |
* Fri Jul 13 2018 Fedora Release Engineering <releng@fedoraproject.org> - 1.5-13
|
|
|
7dc4e9 |
- Rebuilt for https://fedoraproject.org/wiki/Fedora_29_Mass_Rebuild
|
|
|
7dc4e9 |
|
|
|
7dc4e9 |
* Sun Apr 01 2018 Mamoru TASAKA <mtasaka@fedoraproject.org> - 1.5-12
|
|
|
7dc4e9 |
- Rebuild against oniguruma 6.8.1
|
|
|
7dc4e9 |
|
|
|
7dc4e9 |
* Wed Feb 07 2018 Fedora Release Engineering <releng@fedoraproject.org> - 1.5-11
|
|
|
7dc4e9 |
- Rebuilt for https://fedoraproject.org/wiki/Fedora_28_Mass_Rebuild
|
|
|
7dc4e9 |
|
|
|
7dc4e9 |
* Wed Feb 07 2018 Lon Hohberger <lon@fedoraproject.org> - 1.5-10
|
|
|
7dc4e9 |
- Fix CVE 2015-8863
|
|
|
7dc4e9 |
|
|
|
7dc4e9 |
* Fri Feb 02 2018 Igor Gnatenko <ignatenkobrain@fedoraproject.org> - 1.5-9
|
|
|
7dc4e9 |
- Switch to %%ldconfig_scriptlets
|
|
|
7dc4e9 |
|
|
|
7dc4e9 |
* Thu Aug 03 2017 Fedora Release Engineering <releng@fedoraproject.org> - 1.5-8
|
|
|
7dc4e9 |
- Rebuilt for https://fedoraproject.org/wiki/Fedora_27_Binutils_Mass_Rebuild
|
|
|
7dc4e9 |
|
|
|
7dc4e9 |
* Wed Jul 26 2017 Fedora Release Engineering <releng@fedoraproject.org> - 1.5-7
|
|
|
7dc4e9 |
- Rebuilt for https://fedoraproject.org/wiki/Fedora_27_Mass_Rebuild
|
|
|
7dc4e9 |
|
|
|
7dc4e9 |
* Fri Feb 10 2017 Fedora Release Engineering <releng@fedoraproject.org> - 1.5-6
|
|
|
7dc4e9 |
- Rebuilt for https://fedoraproject.org/wiki/Fedora_26_Mass_Rebuild
|
|
|
7dc4e9 |
|
|
|
7dc4e9 |
* Sun Oct 30 2016 Mamoru TASAKA <mtasaka@fedoraproject.org> - 1.5-5
|
|
|
7dc4e9 |
- Rebuild for oniguruma 6.1.1
|
|
|
7dc4e9 |
|
|
|
7dc4e9 |
* Mon Jul 18 2016 Mamoru TASAKA <mtasaka@fedoraproject.org> - 1.5-4
|
|
|
7dc4e9 |
- Rebuild for oniguruma 6
|
|
|
7dc4e9 |
|
|
|
7dc4e9 |
* Sun Mar 13 2016 Peter Robinson <pbrobinson@fedoraproject.org> 1.5-3
|
|
|
7dc4e9 |
- valgrind on all but s390
|
|
|
7dc4e9 |
|
|
|
7dc4e9 |
* Thu Feb 04 2016 Fedora Release Engineering <releng@fedoraproject.org> - 1.5-2
|
|
|
7dc4e9 |
- Rebuilt for https://fedoraproject.org/wiki/Fedora_24_Mass_Rebuild
|
|
|
7dc4e9 |
|
|
|
7dc4e9 |
* Tue Aug 25 2015 Haïkel Guémar <hguemar@fedoraproject.org> - 1.5-1
|
|
|
7dc4e9 |
- Upstream 1.5.0
|
|
|
7dc4e9 |
|
|
|
7dc4e9 |
* Wed Jun 17 2015 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.3-5
|
|
|
7dc4e9 |
- Rebuilt for https://fedoraproject.org/wiki/Fedora_23_Mass_Rebuild
|
|
|
7dc4e9 |
|
|
|
7dc4e9 |
* Sat Aug 16 2014 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.3-4
|
|
|
7dc4e9 |
- Rebuilt for https://fedoraproject.org/wiki/Fedora_21_22_Mass_Rebuild
|
|
|
7dc4e9 |
|
|
|
7dc4e9 |
* Sun Jun 08 2014 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.3-3
|
|
|
7dc4e9 |
- Rebuilt for https://fedoraproject.org/wiki/Fedora_21_Mass_Rebuild
|
|
|
7dc4e9 |
|
|
|
7dc4e9 |
* Thu Oct 24 2013 Flavio Percoco <flavio@redhat.com> - 1.3-2
|
|
|
7dc4e9 |
- Added check, manpage
|
|
|
7dc4e9 |
|
|
|
7dc4e9 |
* Fri Oct 18 2013 Flavio Percoco <flavio@redhat.com> - 1.3-1
|
|
|
7dc4e9 |
- Initial package release.
|