From 5346ad34b4d75dfa4525e92a80c7620097da434ff50d19ce1e3e0da3111cd2ec Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Adrian=20Schr=C3=B6ter?= Date: Fri, 3 May 2024 14:04:58 +0200 Subject: [PATCH] Sync from SUSE:SLFO:Main jq revision 53a51a56962d8ac467b7fe6cc221d9dd --- .gitattributes | 23 ++++++++++ jq-1.6.tar.gz | 3 ++ jq.changes | 122 +++++++++++++++++++++++++++++++++++++++++++++++++ jq.spec | 102 +++++++++++++++++++++++++++++++++++++++++ 4 files changed, 250 insertions(+) create mode 100644 .gitattributes create mode 100644 jq-1.6.tar.gz create mode 100644 jq.changes create mode 100644 jq.spec diff --git a/.gitattributes b/.gitattributes new file mode 100644 index 0000000..9b03811 --- /dev/null +++ b/.gitattributes @@ -0,0 +1,23 @@ +## Default LFS +*.7z filter=lfs diff=lfs merge=lfs -text +*.bsp filter=lfs diff=lfs merge=lfs -text +*.bz2 filter=lfs diff=lfs merge=lfs -text +*.gem filter=lfs diff=lfs merge=lfs -text +*.gz filter=lfs diff=lfs merge=lfs -text +*.jar filter=lfs diff=lfs merge=lfs -text +*.lz filter=lfs diff=lfs merge=lfs -text +*.lzma filter=lfs diff=lfs merge=lfs -text +*.obscpio filter=lfs diff=lfs merge=lfs -text +*.oxt filter=lfs diff=lfs merge=lfs -text +*.pdf filter=lfs diff=lfs merge=lfs -text +*.png filter=lfs diff=lfs merge=lfs -text +*.rpm filter=lfs diff=lfs merge=lfs -text +*.tbz filter=lfs diff=lfs merge=lfs -text +*.tbz2 filter=lfs diff=lfs merge=lfs -text +*.tgz filter=lfs diff=lfs merge=lfs -text +*.ttf filter=lfs diff=lfs merge=lfs -text +*.txz filter=lfs diff=lfs merge=lfs -text +*.whl filter=lfs diff=lfs merge=lfs -text +*.xz filter=lfs diff=lfs merge=lfs -text +*.zip filter=lfs diff=lfs merge=lfs -text +*.zst filter=lfs diff=lfs merge=lfs -text diff --git a/jq-1.6.tar.gz b/jq-1.6.tar.gz new file mode 100644 index 0000000..a091feb --- /dev/null +++ b/jq-1.6.tar.gz @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:9625784cf2e4fd9842f1d407681ce4878b5b0dcddbcd31c6135114a30c71e6a8 +size 1191856 diff --git a/jq.changes b/jq.changes new file mode 100644 index 0000000..bfd9b32 --- /dev/null +++ b/jq.changes @@ -0,0 +1,122 @@ +------------------------------------------------------------------- +Fri Sep 23 16:16:46 UTC 2022 - Dirk Müller + +- build without valgrind on riscv64 - does not exist (yet) + +------------------------------------------------------------------- +Thu Jul 4 17:27:13 UTC 2019 - myen@suse.com + +- Make jq depend on libjq1, so upgrading jq upgrades both + See: https://github.com/stedolan/jq/issues/1904 + +------------------------------------------------------------------- +Fri Nov 2 12:35:25 UTC 2018 - Avindra Goolcharan + +- Update to version 1.6 + * Destructuring Alternation + * many new builtins (see docs) + * Add support for ASAN and UBSAN + * Make it easier to use jq with shebangs + * Add $ENV builtin variable to access environment + * Add JQ_COLORS env var for configuring the output colors + * change: Calling jq without a program argument now always assumes + "." for the program, regardless of stdin/stdout + * fix: Make sorting stable regardless of qsort. +- cleanup with spec-cleaner +- drop CVE-2015-8863.patch (upstreamed in 8eb1367ca44e772963e704a700ef72ae2e12babd) +- drop CVE-2016-4074.patch (upstreamed in fd4ae8304e23007672af9a37855c7a76de7c78cf) + +------------------------------------------------------------------- +Fri Feb 3 09:26:17 UTC 2017 - idonmez@suse.com + +- Add CVE-2016-4074.patch to prevent a stack exhaustion + CVE-2016-4074 bsc#1014176 + +------------------------------------------------------------------- +Mon Jan 2 08:47:00 UTC 2017 - mpluskal@suse.com + +- Update tests dependencies to increase test coverage (bsc#1017157) + * valgrind based tests were skipped +- Do not run tests in qemu builds, valgrind does not work reliably + in such conditions + +------------------------------------------------------------------- +Sat Jul 16 10:14:33 UTC 2016 - mpluskal@suse.com + +- Make building more verbose +- Run tests + +------------------------------------------------------------------- +Mon Apr 25 11:48:27 UTC 2016 - idonmez@suse.com + +- Add CVE-2015-8863.patch to fix a heap overflow bsc#976992 + +------------------------------------------------------------------- +Tue Aug 18 09:12:21 UTC 2015 - idonmez@suse.com + +- Update to version 1.5 + * Regexp support + * A proper module system + * Destructuring syntax + * Math functions + * An online streaming parser + * Minimal I/O builtins (inputs, debug) + * try/catch for catching and handling errors + * Tail call optimization + * Datetime functions + * Performance enhancements +- Add oniguruma-devel BuildRequires for regexp support + +------------------------------------------------------------------- +Fri Jun 27 09:55:52 UTC 2014 - idonmez@suse.com + +- Don't package static libs +- Fix rpath on the main binary + +------------------------------------------------------------------- +Sun Jun 15 20:52:42 UTC 2014 - prusnak@opensuse.org + +- Updated to 1.4 + + New command line arguments + * jq --arg-file variable file + * jq --unbuffered + * jq -e / --exit-status (set exit status based on outputs) + * jq -S / --sort-keys (now jq no longer sorts object keys by + default + + Syntax changes + * .. -> like // in XPath (recursive traversal) + * question mark (e.g., .a?) to suppress errors + * ."foo" syntax (equivalent to .["foo"]) + * better error handling for .foo + * added % operator (modulo) + * allow negation without requiring extra parenthesis + * more function arguments (up to six) + + New filters + * any, all + * iterables, arrays, objects, scalars, nulls, booleans, + numbers, strings, values + + New string built-ins + * split + * join (join an array of strings with a given separator string) + * ltrimstr, rtrimstr + * startswith, endswith + * explode, implode + * fromjson, tojson + * index, rindex, indices + + New math functions + * floor, sqrt, cbrt, etc. + + Addition of libjq, a C API interface to jq's JSON representation + and for running jq programs from C applications. + + +------------------------------------------------------------------- +Thu Oct 17 15:55:03 UTC 2013 - cdenicolo@suse.com + +- license update: MIT and CC-BY-3.0 + documentation is licensed under CC-BY-3.0 + +------------------------------------------------------------------- +Tue Oct 1 15:09:01 UTC 2013 - robert.munteanu@gmail.com + +- Initial packaging of version 1.3 + diff --git a/jq.spec b/jq.spec new file mode 100644 index 0000000..d243fb9 --- /dev/null +++ b/jq.spec @@ -0,0 +1,102 @@ +# +# spec file for package jq +# +# Copyright (c) 2022 SUSE LLC +# +# All modifications and additions to the file contributed by third parties +# remain the property of their copyright owners, unless otherwise agreed +# upon. The license for this file, and modifications and additions to the +# file, is the same license as for the pristine package itself (unless the +# license for the pristine package is not an Open Source License, in which +# case the license is the MIT License). An "Open Source License" is a +# license that conforms to the Open Source Definition (Version 1.9) +# published by the Open Source Initiative. + +# Please submit bugfixes or comments via https://bugs.opensuse.org/ +# + + +Name: jq +Version: 1.6 +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 +BuildRequires: chrpath +BuildRequires: flex +BuildRequires: oniguruma-devel +%ifnarch riscv64 +BuildRequires: valgrind +%endif +Requires: libjq1 = %{version} + +%description +A lightweight and flexible command-line JSON processor. jq is like sed for +JSON data – you can use it to slice and filter and map and transform +structured data with the same ease that sed, awk, grep and friends let +you play with text. + +%package -n libjq1 +Summary: Library for a lightweight and flexible command-line JSON processor +Group: System/Libraries + +%description -n libjq1 +Library for a lightweight and flexible command-line JSON processor. + +%package -n libjq-devel +Summary: Development files for jq +Group: Development/Languages/C and C++ +Requires: libjq1 = %{version} + +%description -n libjq-devel +Development files (headers and libraries for jq). + +%prep +%setup -q + +%build +%configure \ + --disable-static \ +%ifarch riscv64 + --disable-valgrind \ +%endif + --disable-silent-rules +make %{?_smp_mflags} + +%install +%make_install + +# RPATH contains the builddir yucks! +chrpath -d %{buildroot}%{_bindir}/jq + +# No static stuff +rm %{buildroot}%{_libdir}/libjq.la + +# we install the documentation in a separate location using the doc macro +rm -rf %{buildroot}%{_datadir}/doc/%{name} + +%check +%if "%{qemu_user_space_build}" == "0" +make %{?_smp_mflags} check +%endif + +%post -n libjq1 -p /sbin/ldconfig +%postun -n libjq1 -p /sbin/ldconfig + +%files +%license COPYING +%doc AUTHORS ChangeLog NEWS README.md +%{_bindir}/%{name} +%{_mandir}/man1/%{name}.1%{?ext_man} + +%files -n libjq1 +%{_libdir}/libjq.so.1* + +%files -n libjq-devel +%{_includedir}/jq.h +%{_includedir}/jv.h +%{_libdir}/libjq.so + +%changelog