From 9c1eaaf15d35e81f4c038436d29a5e2ca412a78d Mon Sep 17 00:00:00 2001 From: Funda Wang Date: Tue, 4 Mar 2025 22:21:47 +0800 Subject: [PATCH] build with cmake 4.0 --- taglib-1.13.1-port-to-newer-cmake.patch | 8 ++++++++ taglib.spec | 8 ++++++-- 2 files changed, 14 insertions(+), 2 deletions(-) create mode 100644 taglib-1.13.1-port-to-newer-cmake.patch diff --git a/taglib-1.13.1-port-to-newer-cmake.patch b/taglib-1.13.1-port-to-newer-cmake.patch new file mode 100644 index 0000000..5225d0b --- /dev/null +++ b/taglib-1.13.1-port-to-newer-cmake.patch @@ -0,0 +1,8 @@ +--- taglib-1.13.1/CMakeLists.txt.orig 2025-03-04 22:20:26.593219800 +0800 ++++ taglib-1.13.1/CMakeLists.txt 2025-03-04 22:20:38.370990500 +0800 +@@ -1,4 +1,4 @@ +-cmake_minimum_required(VERSION 3.0.0 FATAL_ERROR) ++cmake_minimum_required(VERSION 3.0.0...${CMAKE_VERSION} FATAL_ERROR) + + project(taglib) + diff --git a/taglib.spec b/taglib.spec index 50ae86b..fb14b65 100644 --- a/taglib.spec +++ b/taglib.spec @@ -1,12 +1,13 @@ Name: taglib Summary: Audio Meta-Data Library Version: 1.13.1 -Release: 2 +Release: 3 License: (LGPL-2.1-only OR MPL-1.1) AND BSD-2-Clause AND LGPL-2.1-only URL: https://taglib.org/ Source0: https://github.com/%{name}/%{name}/archive/%{version}/%{name}-%{version}.tar.gz +Patch0: taglib-1.13.1-port-to-newer-cmake.patch -BuildRequires: gcc gcc-c++ cmake pkgconfig zlib-devel +BuildRequires: gcc gcc-c++ cmake zlib-devel %description TagLib is a library for reading and editing the meta-data of several popular @@ -50,6 +51,9 @@ Files needed when building software with %{name}. %changelog +* Tue Mar 04 2025 Funda Wang - 1.13.1-3 +- build with cmake 4.0 + * Wed Nov 20 2024 Funda Wang - 1.13.1-2 - adopt to new cmake macro - cleanup spec -- Gitee