diff --git a/json-c-0.18-port-to-newer-cmake.patch b/json-c-0.18-port-to-newer-cmake.patch new file mode 100644 index 0000000000000000000000000000000000000000..9b232760847400162eb390ed6d150cc5be871640 --- /dev/null +++ b/json-c-0.18-port-to-newer-cmake.patch @@ -0,0 +1,9 @@ +--- json-c-json-c-0.18-20240915/apps/CMakeLists.txt.orig 2025-03-04 15:12:32.149447324 +0800 ++++ json-c-json-c-0.18-20240915/apps/CMakeLists.txt 2025-03-04 15:13:08.296962740 +0800 +@@ -1,5 +1,5 @@ + +-cmake_minimum_required(VERSION 2.8) # see ../CMakeLists.txt for why 2.8 ++cmake_minimum_required(VERSION 2.8...${CMAKE_VERSION}) # see ../CMakeLists.txt for why 2.8 + + if(POLICY CMP0075) + cmake_policy(SET CMP0075 NEW) diff --git a/json-c.spec b/json-c.spec index 15c37dbd43e26370bcdf582eb2e316d0b8732e73..1076e4aa067c07ed4d0b60de9a4b7344314accbd 100644 --- a/json-c.spec +++ b/json-c.spec @@ -4,7 +4,7 @@ Name: json-c Version: 0.18 -Release: 3 +Release: 4 Summary: JSON implementation in C License: MIT @@ -12,7 +12,7 @@ URL: https://github.com/%{name}/%{name} Source0: %{url}/archive/%{name}-%{version}-%{reldate}.tar.gz BuildRequires: cmake gcc ninja-build - +Patch0001: json-c-0.18-port-to-newer-cmake.patch Patch6001: backport-Fix-issue-875-cast-to-unsigned-char-so-bytes-above-0.patch %description @@ -99,6 +99,9 @@ end %doc %{_pkgdocdir} %changelog +* Tue Mar 04 2025 Funda Wang - 0.18-4 +- try build with cmake 4.0 + * Wed Dec 04 2024 yueyuankun - 0.18-3 - Fix causing the strict-mode control characters check to incorrectly trigger