From f1568557713fed7736119f91c18f344eba24a784 Mon Sep 17 00:00:00 2001 From: Funda Wang Date: Thu, 6 Mar 2025 18:55:16 +0800 Subject: [PATCH] build with cmake 4.0 --- libmad-0.16.4-port-to-newer-cmake.patch | 8 ++++++++ libmad.spec | 6 +++++- 2 files changed, 13 insertions(+), 1 deletion(-) create mode 100644 libmad-0.16.4-port-to-newer-cmake.patch diff --git a/libmad-0.16.4-port-to-newer-cmake.patch b/libmad-0.16.4-port-to-newer-cmake.patch new file mode 100644 index 0000000..8c787bc --- /dev/null +++ b/libmad-0.16.4-port-to-newer-cmake.patch @@ -0,0 +1,8 @@ +--- libmad/CMakeLists.txt.orig 2025-03-06 18:54:02.996745779 +0800 ++++ libmad/CMakeLists.txt 2025-03-06 18:54:14.938918735 +0800 +@@ -1,4 +1,4 @@ +-cmake_minimum_required(VERSION 3.1.0) ++cmake_minimum_required(VERSION 3.1.0...${CMAKE_VERSION}) + project(mad VERSION 0.16.4) + + option(BUILD_SHARED_LIBS "Build dynamic library" ON) diff --git a/libmad.spec b/libmad.spec index 86deed2..8475c41 100644 --- a/libmad.spec +++ b/libmad.spec @@ -1,11 +1,12 @@ Name: libmad Version: 0.16.4 -Release: 1 +Release: 2 Summary: MPEG audio decoder library License: GPL-2.0-or-later URL: https://codeberg.org/tenacityteam/libmad Source0: https://codeberg.org/tenacityteam/libmad/releases/download/%{version}/%{name}-%{version}.tar.gz +Patch0: libmad-0.16.4-port-to-newer-cmake.patch BuildRequires: gcc-c++ BuildRequires: cmake >= 3.5.0 @@ -46,6 +47,9 @@ MPEG audio decoder library development files %{_includedir}/mad.h %changelog +* Thu Mar 06 2025 Funda Wang - 0.16.4-2 +- build with cmake 4.0 + * Sun Nov 03 2024 Funda Wang - 0.16.4-1 - update to 0.16.4 -- Gitee