|
@@ -1,22 +1,21 @@
|
|
%define build_compat32 %{?_with_compat32:1}%{!?_with_compat32:0}
|
|
%define build_compat32 %{?_with_compat32:1}%{!?_with_compat32:0}
|
|
|
|
|
|
-%define pkg_date 20200726
|
|
|
|
|
|
+%define pkg_date 20220414
|
|
|
|
|
|
Summary: A JSON implementation in C
|
|
Summary: A JSON implementation in C
|
|
Name: json-c
|
|
Name: json-c
|
|
-Version: 0.15
|
|
|
|
|
|
+Version: 0.16
|
|
Release: 1%{?_dist_release}
|
|
Release: 1%{?_dist_release}
|
|
Group: system
|
|
Group: system
|
|
Vendor: Project Vine
|
|
Vendor: Project Vine
|
|
Distribution: Vine Linux
|
|
Distribution: Vine Linux
|
|
|
|
|
|
License: MIT
|
|
License: MIT
|
|
-URL: https://github.com/json-c/json-c/wiki
|
|
|
|
|
|
+URL: http://json-c.github.io/json-c/
|
|
Source0: https://github.com/json-c/json-c/archive/json-c-%{version}-%{pkg_date}.tar.gz
|
|
Source0: https://github.com/json-c/json-c/archive/json-c-%{version}-%{pkg_date}.tar.gz
|
|
-Patch1000: CVE-2020-12762.patch
|
|
|
|
|
|
|
|
BuildRoot: %{_tmppath}/%{name}-%{version}-root
|
|
BuildRoot: %{_tmppath}/%{name}-%{version}-root
|
|
-BuildRequires: cmake
|
|
|
|
|
|
+BuildRequires: cmake ninja
|
|
|
|
|
|
%description
|
|
%description
|
|
JSON-C implements a reference counting object model that allows you to easily
|
|
JSON-C implements a reference counting object model that allows you to easily
|
|
@@ -75,10 +74,16 @@ for writing applications that are using json-c.
|
|
|
|
|
|
%build
|
|
%build
|
|
%cmake \
|
|
%cmake \
|
|
- -DBUILD_SHARED_LIBS=ON \
|
|
|
|
- -DBUILD_STATIC_LIBS=OFF \
|
|
|
|
- -DENABLE_RDRAND=ON \
|
|
|
|
- ../
|
|
|
|
|
|
+ -DBUILD_SHARED_LIBS:BOOL=ON \
|
|
|
|
+ -DBUILD_STATIC_LIBS:BOOL=OFF \
|
|
|
|
+ -DCMAKE_BUILD_TYPE:STRING=RELEASE \
|
|
|
|
+ -DCMAKE_C_FLAGS_RELEASE:STRING="" \
|
|
|
|
+ -DDISABLE_BSYMBOLIC:BOOL=OFF \
|
|
|
|
+ -DDISABLE_WERROR:BOOL=ON \
|
|
|
|
+ -DENABLE_RDRAND:BOOL=ON \
|
|
|
|
+ -DENABLE_THREADING:BOOL=ON \
|
|
|
|
+ -G Ninja
|
|
|
|
+
|
|
%cmake_build
|
|
%cmake_build
|
|
|
|
|
|
|
|
|
|
@@ -128,6 +133,9 @@ for writing applications that are using json-c.
|
|
|
|
|
|
|
|
|
|
%changelog
|
|
%changelog
|
|
|
|
+* Wed Oct 26 2022 Tomohiro "Tomo-p" KATO <tomop@teamgedoh.net> 0.16-1
|
|
|
|
+- new upstream release.
|
|
|
|
+
|
|
* Fri Sep 03 2021 Tomohiro "Tomo-p" KATO <tomop@teamgedoh.net> 0.15-1
|
|
* Fri Sep 03 2021 Tomohiro "Tomo-p" KATO <tomop@teamgedoh.net> 0.15-1
|
|
- new upstream release.
|
|
- new upstream release.
|
|
- dropped Patch1000: fixed in upstream.
|
|
- dropped Patch1000: fixed in upstream.
|