Sync from SUSE:SLFO:Main libjansson revision 2218842107b90bd7e6696e5057e746ea

This commit is contained in:
Adrian Schröter 2024-05-03 15:10:39 +02:00
commit 2a0456f3e1
7 changed files with 400 additions and 0 deletions

23
.gitattributes vendored Normal file
View File

@ -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

1
baselibs.conf Normal file
View File

@ -0,0 +1 @@
libjansson4

BIN
jansson-2.14.tar.bz2 (Stored with Git LFS) Normal file

Binary file not shown.

16
jansson-2.14.tar.bz2.asc Normal file
View File

@ -0,0 +1,16 @@
-----BEGIN PGP SIGNATURE-----
iQIzBAABCAAdFiEEtdaVPm1QWe162g8v02V9JNBYQ0wFAmE6UEYACgkQ02V9JNBY
Q0zNGxAArjaAx1+Ej4tFnE7HmmFm3dxgFt5DL6X4XtxclVWVWk1N1IocWMhMFb5B
WJuy4k0nv/AS0hlJUtYb7IbK8VpvzFu87+KgOktxVIgvXu1omOuXA8Paqf/xVQJc
IURHEq26z/imhG6LHH/LjO+LwiLJiQqxrVhzb6Pq1DOSwLEqlnnzKZBBmMoeZFPR
fgQDuED7d7L18THZsN8aAWKlycxS4cmt9uSrAAGi4VGAadPXvNFn8yweZ3DALJ8P
fOjurDp57DI3Tn3mgZ/5Nr0C9RkzRSxEgv96ThRbXnh3BcZOcBEooIbzYKe+nxFB
euJ5bd8QgIZt3/OSvQYKVXOwgcg4HaIrWEZbDdKHnbU2fy0pYQD6Ezw7ohF4S27S
NeW5UGrCL5w6qC3NqoPdIwuw+uCyMPocq07pa6RGNY1RwU1tjiM9Am2fvyC88/K7
8DlRTug7cKr9AZ3YbrsBEPvhvJ8jHWr/SALoRKmV7ZTMtdLt4uSnqVeFf997C3Qj
ThUKg1PdQ1WszcML5S1CdhtuvyiCSm26hagGMIbWyq9p+vUjMQTgV44CKbTpjQ0q
8uaqZLwyXN60+7wgPAunn0EiW4BbzxSO1EijypJbMQ45qyRE/DLpPaqRMho4UwoR
8GcM8t3LbZygwSws7NsSv0pNpIdIgfo4vFjGdHSbBoRsuFNqAsU=
=LtYG
-----END PGP SIGNATURE-----

197
libjansson.changes Normal file
View File

@ -0,0 +1,197 @@
-------------------------------------------------------------------
Tue Jan 18 21:11:51 UTC 2022 - Antoine Belvire <antoine.belvire@opensuse.org>
- Update to 2.14:
* New Features:
+ Add `json_object_getn`, `json_object_setn`, `json_object_deln`, and the
corresponding `nocheck` functions.
* Fixes:
+ Handle `sprintf` corner cases.
* Build:
+ Symbol versioning for all exported symbols (gh#akheron/jansson#523).
+ Fix compiler warnings.
* Documentation:
+ Small fixes.
+ Sphinx 3 compatibility (gh#akheron/jansson#530).
- Use GitHub as source URLs: Release hasn't been uploaded to digip.org.
- Cleanup with spec-cleaner.
- Add check section.
-------------------------------------------------------------------
Fri May 8 11:48:39 UTC 2020 - Paolo Stivanin <info@paolostivanin.com>
- Update to 2.13.1
* New Features:
- Add jansson_version_str() and jansson_version_cmp() for runtime
version checking
- Add json_object_update_new(), json_object_update_existing_new()
and json_object_update_missing_new() functions
- Add json_object_update_recursive()
* Bug fixes:
- Add infinite loop check in json_deep_copy()
- Enhance JANSSON_ATTRS macro to support earlier C standard(C89)
- Update version detection for sphinx-build
* Documentation improvements
-------------------------------------------------------------------
Thu Jan 24 07:55:39 UTC 2019 - info@paolostivanin.com
- update to new upstream release 2.12
* Bug fixes:
- Fix error message in `json_pack()` for NULL object (#409).
- Avoid invalid memory read in `json_pack()` (#421).
- Call va_end after va_copy in `json_vsprintf()` (#427).
- Improve handling of formats with '?' and '*' in `json_pack()`
(#438).
- Remove inappropriate `jsonp_free()` which caused
segmentation fault in error handling (#444).
-------------------------------------------------------------------
Fri Nov 9 17:35:19 UTC 2018 - kstreitova@suse.com
- update to new upstream release 2.11
* New features:
- Add `json_pack()` format specifiers s*, o* and O* for values
that can be omitted if null (#339).
- Add `json_error_code()` to retrieve numeric error codes
(#365, #380, #381).
- Enable thread safety for `json_dump()` on all systems.
Enable thread safe `json_decref()` and `json_incref()` for
modern compilers (#389).
- Add `json_sprintf()` and `json_vsprintf()` (#393).
* Bug Fixes:
- Fix incorrect report of success from `json_dump_file()` when
an error is returned by `fclose()` (#359).
- Make json_equal() const-correct (#344).
- Fix incomplete stealing of references by `json_pack()` (#374)
- changelog from 2.9
* New features:
- Add JSON_EMBED encoding flag allowing arrays and objects to
be encoded into existing streams (#329).
- Add `json_dumpb()` function for dumping to a pre-allocated
buffer (#328).
- Add `json_dumpfd()` and `json_loadfd()` functions for dumping
to streaming file descriptors (#328).
- Add support for parsing buffers larger than 2GB (#309).
-------------------------------------------------------------------
Wed Mar 1 16:04:10 UTC 2017 - coolo@suse.com
- update to new upstream release 2.9
* New features:
Add json_auto_t to automatically decref a value that goes out of scope.
Available only on GCC and Clang. (#301)
* Small documentation fixes.
- changelog from 2.8
* New features:
- Always preserve insertion order of object items. json_object_iter()
and friends, json_object_foreach() and json_dumps() and friends now
always work in the insertion order of object items (#293).
- Add json_object_foreach_safe() macro that allows json_object_del()
calls during iteration (#230).
- Add json_get_alloc_funcs() to allow reading the allocation functions
set by json_set_alloc_funcs() (#262, #264).
- Add json_pack() format specifiers s?, o? and O? for values that can
be null (#261, #270).
* Bug fixes:
- Fix a crash when parsing inputs consisting of very deeply nested
arrays or objects (#282, #284).
- Never convert numbers to integers in the parser when
JSON_DECODE_INT_AS_REAL is set.
- Fix a use-after-free in json_pack() error handling.
- Fix subnormal number parsing on mingw32.
- Handle out-of-memory situations gracefully in the hashtable
implementation
-------------------------------------------------------------------
Wed Nov 05 10:18:23 UTC 2014 - efimovov@gmail.com
- Update to new upstream release 2.7
* The json_pack et al functions recognize the specifiers "s%", "+%"
and "+#"
* Add length-aware string constructors "json_stringn()" and
"json_stringn_nocheck()", length-aware string mutators
"json_string_setn()" and "json_string_setn_nocheck()",
and a function for getting string's length "json_string_length()"
* Support ""\u0000"" escapes in the decoder. The support can be
enabled by using the ""JSON_ALLOW_NUL"" decoding flag
* Add "json_boolean_value()" as an alias for "json_is_true()"
* Add JSON_REAL_PRECISION encoding flag/macro for controlling real
number precision
* Define the maximum indentation as JSON_MAX_INDENT.
* Fix cases when some malformed ""\uNNNN"" escapes could crash
the decoder with an assertion failure
* Avoid integer overflows with very long strings in UTF-8 decoder
and hashtable
* Check for *NULL* key in "json_object_get()"
and "json_object_del()"
* "json_unpack()": Allow mixing JSON_STRICT with optional keys.
* Fix int/int32 mismatch
* Parse subnormal numbers correctly
-------------------------------------------------------------------
Thu Sep 11 18:59:04 UTC 2014 - hrvoje.senjan@gmail.com
- Add baselibs.conf
-------------------------------------------------------------------
Sun Jul 20 10:50:34 UTC 2014 - jengelh@inai.de
- Update to new upstream release 2.6
* Fixed CVE-2013-6401: avoid bad performance in large JSON objects
* The json_pack et al functions recognize the specifiers "s#", "+"
and "+#"
* Add the "JSON_DECODE_INT_AS_REAL" flag
* Add "json_array_foreach()" function
* Add the "json_boolean()" macro that returns the JSON true or
false value based on its argument
* Add "json_load_callback()" that calls a callback function
repeatedly to read the JSON input.
* Add JSON_ESCAPE_SLASH encoding flag to escape all occurences of
'/' with '\/'.
- Drop defunct gpg-offline and use local source_validator instead
-------------------------------------------------------------------
Wed Nov 28 19:42:17 CET 2012 - sbrabec@suse.cz
- Verify GPG signature.
-------------------------------------------------------------------
Sat May 12 15:18:44 UTC 2012 - jengelh@inai.de
- Update to new upstream release 2.3.1
* Add support for optional object keys with the "{s?o}" syntax
in json_unpack and the like
* Add json_object_update_existing() and json_object_update_missing()
for updating only existing keys or only adding missing keys to an
object.
* Add json_object_foreach() for more convenient iteration over
objects.
* When decoding JSON, write the number of bytes that were read from
input to "error.position" also on success. This is handy with
JSON_DISABLE_EOF_CHECK.
* Add support for decoding any JSON value, not just arrays or
objects. The support is enabled with the new "JSON_DECODE_ANY"
flag.
* Avoid problems with object's serial number growing too big.
* Remove "+" and leading zeros from exponents in the encoder.
* Decoding functions now return NULL if the first argument is NULL.
-------------------------------------------------------------------
Tue Jan 31 16:50:56 UTC 2012 - jengelh@medozas.de
- Provide pkgconfig symbols
-------------------------------------------------------------------
Fri Oct 21 16:03:16 UTC 2011 - jengelh@medozas.de
- Remove redundant tags/sections (cf. specfile guidelines)
- Centralize the shlib package name
-------------------------------------------------------------------
Mon Oct 17 14:53:08 UTC 2011 - fcastelli@suse.com
- Create initial package (v2.2.1)

64
libjansson.keyring Normal file
View File

@ -0,0 +1,64 @@
-----BEGIN PGP PUBLIC KEY BLOCK-----
mQINBFRA0AgBEAC7nf/sRHT2sdBy0iqc93GAS7RJGL8UMmeRtQ6S9ev4rfz/tn6Q
X2mLY14COYP1uAsZ4ICIJxRYZsTVCq/q2Xrt6JnTBPywgUL/9JKRTwyz1JmpKLmf
qDmCR9B+hF2kv1+bPXgr+hDzTzw8o7qOgZD4XDm/Cjq9p/NhSEm5inSEj2pYk38D
YGieop3w1S277JdwniFwacpumyIvmPdk7Ir6xOCkcASgdH12bv6UVCX59jEcGNeW
VbFcQ763Iu8pdDv9KgXZZWrpZqjviQ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pJaagGW0DQOj
csWnXkW+jricwCkcfQf1yJkkhscAc8AK7OHGcnN5XWPS9mSJE346gQVgdFBmB7C0
JTVOIxSecnKpv6bkI1WvLEW+yj0WfFMI7zAe4OI3mdFFRcWh0YrQ2tFqHMCPzCEP
qFB7Ugar0+xTlDVKZAxKd0I5pfgKdu0m0/u5EL34tuw0O0CxKRJ/ZfqUFrOwTwey
VW1h/W3zgQG6Uu+lJ9Lldy42r5X81MqwVSoigTtJn8Tp1H//BvglhvKenQC7IYVV
S1/6PADQMCjYsxbSgQtvDRxx2kTlM3Ph9xzl9S6hIi715kFPCPvQDtSj2NKQJ7En
3qIW8JeaMCEZY1+zrSVvxHo=
=pcZk
-----END PGP PUBLIC KEY BLOCK-----

96
libjansson.spec Normal file
View File

@ -0,0 +1,96 @@
#
# spec file for package libjansson
#
# 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/
#
%define lname libjansson4
Name: libjansson
Version: 2.14
Release: 0
Summary: C library for encoding, decoding and manipulating JSON data
License: MIT
Group: Development/Libraries/C and C++
URL: https://digip.org/jansson/
#Git-Clone: git://github.com/akheron/jansson
Source0: https://github.com/akheron/jansson/releases/download/v%{version}/jansson-%{version}.tar.bz2
Source1: baselibs.conf
Source2: https://github.com/akheron/jansson/releases/download/v%{version}/jansson-%{version}.tar.bz2.asc
Source3: %{name}.keyring
BuildRequires: pkgconfig
%description
Jansson is a C library for encoding, decoding and manipulating JSON data.
It features:
* Simple and intuitive API and data model
* Comprehensive documentation
* No dependencies on other libraries
* Full Unicode support (UTF-8)
* Extensive test suite
%package -n %{lname}
Summary: C library for encoding, decoding and manipulating JSON data
Group: Development/Libraries/C and C++
%description -n %{lname}
Jansson is a C library for encoding, decoding and manipulating JSON data.
It features:
* Simple and intuitive API and data model
* Comprehensive documentation
* No dependencies on other libraries
* Full Unicode support (UTF-8)
* Extensive test suite
%package devel
Summary: Development files for libjansson
Group: Development/Libraries/C and C++
Requires: %{lname} = %{version}
%description devel
Jansson is a C library for encoding, decoding and manipulating JSON data.
It features:
* Simple and intuitive API and data model
* Comprehensive documentation
* No dependencies on other libraries
* Full Unicode support (UTF-8)
* Extensive test suite
%prep
%setup -q -n jansson-%{version}
%build
%configure --disable-static
%make_build
%install
%make_install
find %{buildroot} -type f -name "*.la" -delete -print
%check
make check
%post -n %{lname} -p /sbin/ldconfig
%postun -n %{lname} -p /sbin/ldconfig
%files -n %{lname}
%{_libdir}/libjansson.so.4*
%files devel
%{_includedir}/jansson.h
%{_includedir}/jansson_config.h
%{_libdir}/libjansson.so
%{_libdir}/pkgconfig/jansson.pc
%changelog