diff --git a/backport-libebml-port-to-newer-cmake.patch b/backport-libebml-port-to-newer-cmake.patch new file mode 100644 index 0000000000000000000000000000000000000000..4f8fce04dc2d54ad5d5cb289680833416a6adaf7 --- /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 7581a3201a6f8d30e8603e651c6de85f0580b2aa..e84800d3ef235af6cd7bf74135c74365fef29fe7 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