From a8a681c12d8d424fb045cd8328e837d8137d944a Mon Sep 17 00:00:00 2001 From: Funda Wang Date: Sat, 13 Dec 2025 11:17:34 +0800 Subject: [PATCH] allow build with newer cmake --- backport-libebml-port-to-newer-cmake.patch | 22 ++++++++++++++++++++++ libebml.spec | 6 +++++- 2 files changed, 27 insertions(+), 1 deletion(-) create mode 100644 backport-libebml-port-to-newer-cmake.patch diff --git a/backport-libebml-port-to-newer-cmake.patch b/backport-libebml-port-to-newer-cmake.patch new file mode 100644 index 0000000..4f8fce0 --- /dev/null +++ b/backport-libebml-port-to-newer-cmake.patch @@ -0,0 +1,22 @@ +commit 6725c5f0169981cb0bd2ee124fbf0d8ca30b762d +Author: Steve Lhomme +Date: Sat Feb 24 08:33:56 2024 +0100 + + drop CMake older than 3.5 + + It generates a warning with newer versions of CMake. + 3.4 was released in 2015. We require C++17 with compilers only available in 2017/2018. + If your CMake is older than your toolchain, you have a problem. + + There's no need to support legacy CMake going forward in libebml 2. + +diff --git a/CMakeLists.txt b/CMakeLists.txt +index 11ee059..c7b969a 100644 +--- a/CMakeLists.txt ++++ b/CMakeLists.txt +@@ -1,4 +1,4 @@ +-cmake_minimum_required(VERSION 3.1.2) ++cmake_minimum_required(VERSION 3.5) + + project(ebml VERSION 1.4.5) + diff --git a/libebml.spec b/libebml.spec index 7581a32..e84800d 100644 --- a/libebml.spec +++ b/libebml.spec @@ -1,11 +1,12 @@ Name: libebml Version: 1.4.5 -Release: 1 +Release: 2 Summary: Extensible Binary Meta Language library License: LGPL-2.1-or-later URL: https://www.matroska.org/ Source: https://dl.matroska.org/downloads/%{name}/%{name}-%{version}.tar.xz Patch0: %{name}-use-system-utf8cpp.patch +Patch1: backport-libebml-port-to-newer-cmake.patch BuildRequires: cmake gcc-c++ utf8cpp-devel %description @@ -50,6 +51,9 @@ rm -r src/lib/utf8-cpp %changelog +* Sat Dec 13 2025 Funda Wang - 1.4.5-2 +- allow build with newer cmake + * Fri Nov 08 2024 Funda Wang - 1.4.5-1 - update to 1.4.5 -- Gitee