diff --git a/json-c-0.16-20220414.tar.gz b/json-c-0.16-20220414.tar.gz deleted file mode 100644 index 2fd5f9a..0000000 --- a/json-c-0.16-20220414.tar.gz +++ /dev/null @@ -1,3 +0,0 @@ -version https://git-lfs.github.com/spec/v1 -oid sha256:3ecaeedffd99a60b1262819f9e60d7d983844073abc74e495cb822b251904185 -size 337024 diff --git a/json-c-0.17-20230812.tar.gz b/json-c-0.17-20230812.tar.gz new file mode 100644 index 0000000..2ebfb80 --- /dev/null +++ b/json-c-0.17-20230812.tar.gz @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:024d302a3aadcbf9f78735320a6d5aedf8b77876c8ac8bbb95081ca55054c7eb +size 364529 diff --git a/json-c.changes b/json-c.changes index 79e08d9..311e713 100644 --- a/json-c.changes +++ b/json-c.changes @@ -1,3 +1,36 @@ +------------------------------------------------------------------- +Wed Dec 6 15:26:31 UTC 2023 - Guillaume GARDET + +- Drop unneeded -DCMAKE_C_FLAGS=-std=gnu99 to use distro CFLAGS + +------------------------------------------------------------------- +Fri Nov 3 08:47:33 UTC 2023 - Paolo Stivanin + +- Update to 0.17: + + New features: + * json_patch: add first implementation only with patch application + * Add --disable-static and --disable-dynamic options to the cmake-configure script. + * Add -DBUILD_APPS=NO option to disable app build + * Minimum cmake version is now 3.9 + + Significant changes and bug fixes: + * When serializing with JSON_C_TO_STRING_PRETTY set, keep the opening and + closing curly or square braces on same line for empty objects or arrays. + * Disable locale handling when targeting a uClibc system due to problems + with its duplocale() function. + * When parsing with JSON_TOKENER_STRICT set, integer overflow/underflow + now result in a json_tokener_error_parse_number. Without that flag + values are capped at INT64_MIN/UINT64_MAX. + * Fix memory leak with emtpy strings in json_object_set_string + * json_object_from_fd_ex: fail if file is too large (>=INT_MAX bytes) + * Add back json_number_chars, but only because it's part of the public API. + * Entirely drop mode bits from open(O_RDONLY) to avoid warnings on certain + platforms. + * Specify dependent libraries, including -lbsd, in a more consistent way so + linking against a static json-c works better + * Fix a variety of build problems and add & improve tests + * Update RFC reference to https://www.rfc-editor.org/rfc/rfc8259 +- Remove deprecated suse_version checks + ------------------------------------------------------------------- Wed Apr 20 06:29:21 UTC 2022 - Paolo Stivanin diff --git a/json-c.spec b/json-c.spec index bbe7bff..4f4404d 100644 --- a/json-c.spec +++ b/json-c.spec @@ -1,7 +1,7 @@ # # spec file for package json-c # -# 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 @@ -19,9 +19,9 @@ %define libname libjson-c %define libsoname %{libname}5 %define oldlibname libjson -%define version_date 20220414 +%define version_date 20230812 Name: json-c -Version: 0.16 +Version: 0.17 Release: 0 Summary: JSON implementation in C License: MIT @@ -73,9 +73,7 @@ Summary: Documentation files Group: Documentation/Other Provides: %{oldlibname}-doc = %{version} Obsoletes: %{oldlibname}-doc < %{version} -%if 0%{?suse_version} >= 1120 BuildArch: noarch -%endif %description -n %{libname}-doc JSON-C implements a reference counting object model that allows you to @@ -89,15 +87,10 @@ This package includes the json-c documentation. %autosetup -p1 -n %{name}-json-c-%{version}-%{version_date} %build -%if 0%{?suse_version} <= 1110 -sed -i 's/-Werror //g' Makefile.am.inc -autoreconf -fiv -%endif %cmake \ -DCMAKE_BUILD_TYPE=None \ -DCMAKE_INSTALL_PREFIX=%{_prefix} \ -DCMAKE_INSTALL_LIBDIR=%{_libdir} \ - -DCMAKE_C_FLAGS=-std=gnu99 \ -DENABLE_THREADING=ON \ -DENABLE_RDRAND=ON