From 26c65c3aa4f42cd893eaaf70b135354b1e98ac82d39b977383608315bc6df987 Mon Sep 17 00:00:00 2001 From: Michael Vetter Date: Mon, 18 Sep 2023 10:37:22 +0000 Subject: [PATCH] Accepting request 1109563 from home:mnhauke - Update to version 1.7 * Make object key color configurable using JQ_COLORS environment variable. * Change the default color of null to Bright Black. * Respect NO_COLOR environment variable to disable color output. * Improved --help output. Now mentions all options and nicer order. * Fix multiple issues of exit code using --exit-code/-e option. * Add --raw-output0 for NUL (zero byte) separated output. * Fix assert crash and validate JSON for --jsonarg. * Remove deprecated --argfile option. Language changes * Use decimal number literals to preserve precision. Comparison operations respects precision but arithmetic operations might truncate. * Adds new builtin pick(stream) to emit a projection of the input object or array. * Adds new builtin debug(msgs) that works like debug but applies a filter on the input before writing to stderr. * Adds new builtin scan($re; $flags). Was documented but not implemented. * Adds new builtin abs to get absolute value. This potentially allows the literal value of numbers to be preserved as length and fabs convert to float. * Allow if without else-branch. When skipped the else-branch will be . (identity). * Allow use of $binding as key in object literals. * Allow dot between chained indexes when using .["index"] * Allow dot for chained value iterator .[], .[]? * Fix try/catch catches more than it should. OBS-URL: https://build.opensuse.org/request/show/1109563 OBS-URL: https://build.opensuse.org/package/show/utilities/jq?expand=0&rev=26 --- jq-1.6.tar.gz | 3 --- jq-1.7.tar.gz | 3 +++ jq.changes | 68 +++++++++++++++++++++++++++++++++++++++++++++++++++ jq.spec | 25 +++++++++++-------- 4 files changed, 86 insertions(+), 13 deletions(-) delete mode 100644 jq-1.6.tar.gz create mode 100644 jq-1.7.tar.gz diff --git a/jq-1.6.tar.gz b/jq-1.6.tar.gz deleted file mode 100644 index a091feb..0000000 --- a/jq-1.6.tar.gz +++ /dev/null @@ -1,3 +0,0 @@ -version https://git-lfs.github.com/spec/v1 -oid sha256:9625784cf2e4fd9842f1d407681ce4878b5b0dcddbcd31c6135114a30c71e6a8 -size 1191856 diff --git a/jq-1.7.tar.gz b/jq-1.7.tar.gz new file mode 100644 index 0000000..9996cbe --- /dev/null +++ b/jq-1.7.tar.gz @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:f755e813b88b494a5087502812cb35bc32e1544102345900707e8d71124caffc +size 1267139 diff --git a/jq.changes b/jq.changes index bfd9b32..949e9b2 100644 --- a/jq.changes +++ b/jq.changes @@ -1,3 +1,71 @@ +------------------------------------------------------------------- +Thu Sep 7 13:42:19 UTC 2023 - Martin Hauke + +- Update to version 1.7 + * Make object key color configurable using JQ_COLORS environment + variable. + * Change the default color of null to Bright Black. + * Respect NO_COLOR environment variable to disable color output. + * Improved --help output. Now mentions all options and nicer + order. + * Fix multiple issues of exit code using --exit-code/-e option. + * Add --raw-output0 for NUL (zero byte) separated output. + * Fix assert crash and validate JSON for --jsonarg. + * Remove deprecated --argfile option. + Language changes + * Use decimal number literals to preserve precision. Comparison + operations respects precision but arithmetic operations might + truncate. + * Adds new builtin pick(stream) to emit a projection of the + input object or array. + * Adds new builtin debug(msgs) that works like debug but applies + a filter on the input before writing to stderr. + * Adds new builtin scan($re; $flags). Was documented but not + implemented. + * Adds new builtin abs to get absolute value. This potentially + allows the literal value of numbers to be preserved as length + and fabs convert to float. + * Allow if without else-branch. When skipped the else-branch + will be . (identity). + * Allow use of $binding as key in object literals. + * Allow dot between chained indexes when using .["index"] + * Allow dot for chained value iterator .[], .[]? + * Fix try/catch catches more than it should. + * Speed up and refactor some builtins, also remove + scalars_or_empty/0. + * Now halt and halt_error exit immediately instead of continuing + to the next input. + * Fix issue converting string to number after previous convert + error. + * Fix issue representing large numbers on some platforms causing + invalid JSON output. + * Fix deletion using assigning empty against arrays. + * Allow keywords to be used as binding name in more places. + * Allow using nan as NaN in JSON. + * Expose a module's function names in modulemeta. + * Fix contains/1 to handle strings with NUL. + * Fix stderr/0 to output raw text without any decoration. + * Fix nth/2 to emit empty on index out of range. + * Fix implode to not assert and instead replace invalid unicode + codepoints. + * Fix indices/1 and rindex/1 in case of overlapping matches in + strings. + * Fix sub/3 to resolve issues involving global search-and-replace + (gsub) operations. + * Fix empty regular expression matches. + * Fix overflow exception of the modulo operator. + * Fix string multiplication by 0 (and less than 1) to emit empty + string. + * Fix segfault when using libjq and threads. + * Fix constant folding of division and reminder with zero + divisor. + * Fix error/0, error/1 to throw null error. + * Simpler and faster transpose. + * Simple and efficient implementation of walk/1. + * Remove deprecated filters leaf_paths, recurse_down. +- Adjust URL/Source - new upstream + https://github.com/stedolan/jq -> https://github.com/jqlang + ------------------------------------------------------------------- Fri Sep 23 16:16:46 UTC 2022 - Dirk Müller diff --git a/jq.spec b/jq.spec index d243fb9..b173063 100644 --- a/jq.spec +++ b/jq.spec @@ -1,7 +1,7 @@ # # spec file for package jq # -# Copyright (c) 2022 SUSE LLC +# Copyright (c) 2023 SUSE LLC # # All modifications and additions to the file contributed by third parties # remain the property of their copyright owners, unless otherwise agreed @@ -17,20 +17,23 @@ Name: jq -Version: 1.6 +Version: 1.7 Release: 0 Summary: A lightweight and flexible command-line JSON processor License: CC-BY-3.0 AND MIT Group: Productivity/Text/Utilities -URL: https://stedolan.github.io/jq/ -Source: https://github.com/stedolan/jq/releases/download/jq-%{version}/jq-%{version}.tar.gz +URL: https://github.com/jqlang +Source: https://github.com/jqlang/jq/archive/refs/tags/jq-%{version}/jq-%{version}.tar.gz +BuildRequires: autoconf +BuildRequires: automake BuildRequires: chrpath -BuildRequires: flex +BuildRequires: libtool +#BuildRequires: flex BuildRequires: oniguruma-devel +Requires: libjq1 = %{version} %ifnarch riscv64 BuildRequires: valgrind %endif -Requires: libjq1 = %{version} %description A lightweight and flexible command-line JSON processor. jq is like sed for @@ -54,16 +57,17 @@ Requires: libjq1 = %{version} Development files (headers and libraries for jq). %prep -%setup -q +%setup -q -n %{name}-%{name}-%{version} %build +autoreconf -fiv %configure \ --disable-static \ %ifarch riscv64 --disable-valgrind \ %endif --disable-silent-rules -make %{?_smp_mflags} +%make_build %install %make_install @@ -79,7 +83,7 @@ rm -rf %{buildroot}%{_datadir}/doc/%{name} %check %if "%{qemu_user_space_build}" == "0" -make %{?_smp_mflags} check +%make_build check %endif %post -n libjq1 -p /sbin/ldconfig @@ -87,7 +91,7 @@ make %{?_smp_mflags} check %files %license COPYING -%doc AUTHORS ChangeLog NEWS README.md +%doc AUTHORS ChangeLog NEWS.md README.md %{_bindir}/%{name} %{_mandir}/man1/%{name}.1%{?ext_man} @@ -98,5 +102,6 @@ make %{?_smp_mflags} check %{_includedir}/jq.h %{_includedir}/jv.h %{_libdir}/libjq.so +%{_libdir}/pkgconfig/libjq.pc %changelog