Accepting request 1248387 from devel:libraries:c_c++

- update to 0.18:
  * Clean up pre-3.9 CMake support in CMakeLists.txt
  * Build pkg-config for msvc as well
  * Critical fix for binary compatibility with 0.16: Move the
    json_tokener_error_memory entry to the end of enum
    json_tokener_error.
  * Issue #829: attempt to detect clang-cl.exe and pass MSVC-
    compatile command line arguments.
  * PR #831 - rename WIN32 to _WIN32
  * PR #839 - Fix gcc 5 "may be used uninitialized" failure in
    json_pointer.c
  * PR #849 - random_seed.c: add a Coverity Scan suppression
  * Issue #854: Set error=json_tokener_error_memory in
    json_tokener_parser_verbose() when allocating the tokener
    fails.
  * Issue #857: fix a few places where json_tokener should have
    been returning json_tokener_error_memory but wasn't.
  * Handle yet another out-of-memory condition in json_tokener,
    duplocate can return NULL.
  * Various fixes in the fuzzers
  * A few minor doc fixes

    * Direct access to lh_table and lh_entry structure members is deprecated.
    * Speed up parsing by replacing ctype functions with simplified, faster
- update to 0.15:
  * Add `json_object_array_shrink()` (and `array_list_shrink()`) and use it in
  * Add a json_parse binary, for use in testing changes (not installed, but
  * change the floating point output format to %.17g so values with
      only created as libjson-c.so now and headers are only installed
    autoconf call to json-c-0.12-unused_variable_size.patch from

OBS-URL: https://build.opensuse.org/request/show/1248387
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/json-c?expand=0&rev=31
This commit is contained in:
Dominique Leuenberger 2025-02-27 13:50:19 +00:00 committed by Git OBS Bridge
commit 6b568468dd
4 changed files with 46 additions and 20 deletions

BIN
json-c-0.17-20230812.tar.gz (Stored with Git LFS)

Binary file not shown.

View File

@ -0,0 +1,3 @@
version https://git-lfs.github.com/spec/v1
oid sha256:3112c1f25d39eca661fe3fc663431e130cc6e2f900c081738317fba49d29e298
size 401874

View File

@ -1,3 +1,28 @@
-------------------------------------------------------------------
Tue Feb 25 13:55:48 UTC 2025 - Dirk Müller <dmueller@suse.com>
- update to 0.18:
* Clean up pre-3.9 CMake support in CMakeLists.txt
* Build pkg-config for msvc as well
* Critical fix for binary compatibility with 0.16: Move the
json_tokener_error_memory entry to the end of enum
json_tokener_error.
* Issue #829: attempt to detect clang-cl.exe and pass MSVC-
compatile command line arguments.
* PR #831 - rename WIN32 to _WIN32
* PR #839 - Fix gcc 5 "may be used uninitialized" failure in
json_pointer.c
* PR #849 - random_seed.c: add a Coverity Scan suppression
* Issue #854: Set error=json_tokener_error_memory in
json_tokener_parser_verbose() when allocating the tokener
fails.
* Issue #857: fix a few places where json_tokener should have
been returning json_tokener_error_memory but wasn't.
* Handle yet another out-of-memory condition in json_tokener,
duplocate can return NULL.
* Various fixes in the fuzzers
* A few minor doc fixes
------------------------------------------------------------------- -------------------------------------------------------------------
Wed Dec 6 15:26:31 UTC 2023 - Guillaume GARDET <guillaume.gardet@opensuse.org> Wed Dec 6 15:26:31 UTC 2023 - Guillaume GARDET <guillaume.gardet@opensuse.org>

View File

@ -1,7 +1,7 @@
# #
# spec file for package json-c # spec file for package json-c
# #
# Copyright (c) 2023 SUSE LLC # Copyright (c) 2025 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
@ -19,9 +19,9 @@
%define libname libjson-c %define libname libjson-c
%define libsoname %{libname}5 %define libsoname %{libname}5
%define oldlibname libjson %define oldlibname libjson
%define version_date 20230812 %define version_date 20240915
Name: json-c Name: json-c
Version: 0.17 Version: 0.18
Release: 0 Release: 0
Summary: JSON implementation in C Summary: JSON implementation in C
License: MIT License: MIT
@ -93,6 +93,7 @@ This package includes the json-c documentation.
-DCMAKE_INSTALL_LIBDIR=%{_libdir} \ -DCMAKE_INSTALL_LIBDIR=%{_libdir} \
-DENABLE_THREADING=ON \ -DENABLE_THREADING=ON \
-DENABLE_RDRAND=ON -DENABLE_RDRAND=ON
%cmake_build
%check %check
export LD_LIBRARY_PATH=%{buildroot}%{_libdir} export LD_LIBRARY_PATH=%{buildroot}%{_libdir}