Accepting request 1111947 from utilities
OBS-URL: https://build.opensuse.org/request/show/1111947 OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/jq?expand=0&rev=12
This commit is contained in:
commit
e1dd8e5a74
BIN
jq-1.6.tar.gz
(Stored with Git LFS)
BIN
jq-1.6.tar.gz
(Stored with Git LFS)
Binary file not shown.
3
jq-1.7.tar.gz
Normal file
3
jq-1.7.tar.gz
Normal file
@ -0,0 +1,3 @@
|
|||||||
|
version https://git-lfs.github.com/spec/v1
|
||||||
|
oid sha256:f755e813b88b494a5087502812cb35bc32e1544102345900707e8d71124caffc
|
||||||
|
size 1267139
|
68
jq.changes
68
jq.changes
@ -1,3 +1,71 @@
|
|||||||
|
-------------------------------------------------------------------
|
||||||
|
Thu Sep 7 13:42:19 UTC 2023 - Martin Hauke <mardnh@gmx.de>
|
||||||
|
|
||||||
|
- 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 <dmueller@suse.com>
|
Fri Sep 23 16:16:46 UTC 2022 - Dirk Müller <dmueller@suse.com>
|
||||||
|
|
||||||
|
25
jq.spec
25
jq.spec
@ -1,7 +1,7 @@
|
|||||||
#
|
#
|
||||||
# spec file for package jq
|
# 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
|
# All modifications and additions to the file contributed by third parties
|
||||||
# remain the property of their copyright owners, unless otherwise agreed
|
# remain the property of their copyright owners, unless otherwise agreed
|
||||||
@ -17,20 +17,23 @@
|
|||||||
|
|
||||||
|
|
||||||
Name: jq
|
Name: jq
|
||||||
Version: 1.6
|
Version: 1.7
|
||||||
Release: 0
|
Release: 0
|
||||||
Summary: A lightweight and flexible command-line JSON processor
|
Summary: A lightweight and flexible command-line JSON processor
|
||||||
License: CC-BY-3.0 AND MIT
|
License: CC-BY-3.0 AND MIT
|
||||||
Group: Productivity/Text/Utilities
|
Group: Productivity/Text/Utilities
|
||||||
URL: https://stedolan.github.io/jq/
|
URL: https://github.com/jqlang
|
||||||
Source: https://github.com/stedolan/jq/releases/download/jq-%{version}/jq-%{version}.tar.gz
|
Source: https://github.com/jqlang/jq/archive/refs/tags/jq-%{version}/jq-%{version}.tar.gz
|
||||||
|
BuildRequires: autoconf
|
||||||
|
BuildRequires: automake
|
||||||
BuildRequires: chrpath
|
BuildRequires: chrpath
|
||||||
BuildRequires: flex
|
BuildRequires: libtool
|
||||||
|
#BuildRequires: flex
|
||||||
BuildRequires: oniguruma-devel
|
BuildRequires: oniguruma-devel
|
||||||
|
Requires: libjq1 = %{version}
|
||||||
%ifnarch riscv64
|
%ifnarch riscv64
|
||||||
BuildRequires: valgrind
|
BuildRequires: valgrind
|
||||||
%endif
|
%endif
|
||||||
Requires: libjq1 = %{version}
|
|
||||||
|
|
||||||
%description
|
%description
|
||||||
A lightweight and flexible command-line JSON processor. jq is like sed for
|
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).
|
Development files (headers and libraries for jq).
|
||||||
|
|
||||||
%prep
|
%prep
|
||||||
%setup -q
|
%setup -q -n %{name}-%{name}-%{version}
|
||||||
|
|
||||||
%build
|
%build
|
||||||
|
autoreconf -fiv
|
||||||
%configure \
|
%configure \
|
||||||
--disable-static \
|
--disable-static \
|
||||||
%ifarch riscv64
|
%ifarch riscv64
|
||||||
--disable-valgrind \
|
--disable-valgrind \
|
||||||
%endif
|
%endif
|
||||||
--disable-silent-rules
|
--disable-silent-rules
|
||||||
make %{?_smp_mflags}
|
%make_build
|
||||||
|
|
||||||
%install
|
%install
|
||||||
%make_install
|
%make_install
|
||||||
@ -79,7 +83,7 @@ rm -rf %{buildroot}%{_datadir}/doc/%{name}
|
|||||||
|
|
||||||
%check
|
%check
|
||||||
%if "%{qemu_user_space_build}" == "0"
|
%if "%{qemu_user_space_build}" == "0"
|
||||||
make %{?_smp_mflags} check
|
%make_build check
|
||||||
%endif
|
%endif
|
||||||
|
|
||||||
%post -n libjq1 -p /sbin/ldconfig
|
%post -n libjq1 -p /sbin/ldconfig
|
||||||
@ -87,7 +91,7 @@ make %{?_smp_mflags} check
|
|||||||
|
|
||||||
%files
|
%files
|
||||||
%license COPYING
|
%license COPYING
|
||||||
%doc AUTHORS ChangeLog NEWS README.md
|
%doc AUTHORS ChangeLog NEWS.md README.md
|
||||||
%{_bindir}/%{name}
|
%{_bindir}/%{name}
|
||||||
%{_mandir}/man1/%{name}.1%{?ext_man}
|
%{_mandir}/man1/%{name}.1%{?ext_man}
|
||||||
|
|
||||||
@ -98,5 +102,6 @@ make %{?_smp_mflags} check
|
|||||||
%{_includedir}/jq.h
|
%{_includedir}/jq.h
|
||||||
%{_includedir}/jv.h
|
%{_includedir}/jv.h
|
||||||
%{_libdir}/libjq.so
|
%{_libdir}/libjq.so
|
||||||
|
%{_libdir}/pkgconfig/libjq.pc
|
||||||
|
|
||||||
%changelog
|
%changelog
|
||||||
|
Loading…
x
Reference in New Issue
Block a user