Sync from SUSE:SLFO:Main json-c revision c3ebf7ece6c1a1822c2d408bc1a6f6c2
This commit is contained in:
parent
f851f62ae1
commit
fab2d6b617
BIN
json-c-0.16-20220414.tar.gz
(Stored with Git LFS)
BIN
json-c-0.16-20220414.tar.gz
(Stored with Git LFS)
Binary file not shown.
BIN
json-c-0.17-20230812.tar.gz
(Stored with Git LFS)
Normal file
BIN
json-c-0.17-20230812.tar.gz
(Stored with Git LFS)
Normal file
Binary file not shown.
@ -1,3 +1,36 @@
|
||||
-------------------------------------------------------------------
|
||||
Wed Dec 6 15:26:31 UTC 2023 - Guillaume GARDET <guillaume.gardet@opensuse.org>
|
||||
|
||||
- Drop unneeded -DCMAKE_C_FLAGS=-std=gnu99 to use distro CFLAGS
|
||||
|
||||
-------------------------------------------------------------------
|
||||
Fri Nov 3 08:47:33 UTC 2023 - Paolo Stivanin <info@paolostivanin.com>
|
||||
|
||||
- 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 <info@paolostivanin.com>
|
||||
|
||||
|
13
json-c.spec
13
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
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user