Browse Source

json-c-0.16-1

Tomohiro "Tomo-p" KATO 1 year ago
parent
commit
51bf09e212
1 changed files with 17 additions and 9 deletions
  1. 17 9
      j/json-c/json-c-vl.spec

+ 17 - 9
j/json-c/json-c-vl.spec

@@ -1,22 +1,21 @@
 %define build_compat32 %{?_with_compat32:1}%{!?_with_compat32:0}
 
-%define pkg_date	20200726
+%define pkg_date	20220414
 
 Summary:	A JSON implementation in C
 Name:		json-c
-Version:	0.15
+Version:	0.16
 Release:	1%{?_dist_release}
 Group:		system
 Vendor:		Project Vine
 Distribution:	Vine Linux
 
 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
-Patch1000:	CVE-2020-12762.patch
 
 BuildRoot:	%{_tmppath}/%{name}-%{version}-root
-BuildRequires:	cmake
+BuildRequires:	cmake ninja
 
 %description
 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
 %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
 
 
@@ -128,6 +133,9 @@ for writing applications that are using json-c.
 
 
 %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
 - new upstream release.
 - dropped Patch1000: fixed in upstream.