From ed65f13f54c054992f391cb33ddc10ecba991fc1 Mon Sep 17 00:00:00 2001 From: Funda Wang Date: Wed, 5 Mar 2025 10:40:13 +0800 Subject: [PATCH] build with cmake 4.0 --- 0001-clibcni-port-to-newer-cmake.patch | 8 ++++++++ clibcni.spec | 6 +++++- 2 files changed, 13 insertions(+), 1 deletion(-) create mode 100644 0001-clibcni-port-to-newer-cmake.patch diff --git a/0001-clibcni-port-to-newer-cmake.patch b/0001-clibcni-port-to-newer-cmake.patch new file mode 100644 index 0000000..62b9529 --- /dev/null +++ b/0001-clibcni-port-to-newer-cmake.patch @@ -0,0 +1,8 @@ +--- clibcni-v2.1.0/CMakeLists.txt.orig 2025-03-02 01:22:37.545875100 +0800 ++++ clibcni-v2.1.0/CMakeLists.txt 2025-03-02 01:22:54.065234300 +0800 +@@ -1,4 +1,4 @@ +-cmake_minimum_required (VERSION 2.8) ++cmake_minimum_required (VERSION 2.8...${CMAKE_VERSION}) + project (clibcni) + + option(VERSION "set clibcni version" ON) diff --git a/clibcni.spec b/clibcni.spec index e431502..e6fdab9 100644 --- a/clibcni.spec +++ b/clibcni.spec @@ -1,5 +1,5 @@ %global _version 2.1.0 -%global _release 3 +%global _release 4 Name: clibcni Version: %{_version} Release: %{_release} @@ -8,6 +8,7 @@ Group: System Environment/Libraries License: Mulan PSL v2 URL: https://gitee.com/openeuler/clibcni Source0: https://gitee.com/openeuler/clibcni/repository/archive/v%{version}.tar.gz +Patch0001: 0001-clibcni-port-to-newer-cmake.patch %define libisulaver_lower 2.1.1-0 @@ -63,6 +64,9 @@ install -m 0644 %{_vpath_srcdir}/src/version/version.h %{buildroot}/%{_includedi %{_libdir}/pkgconfig/%{name}.pc %changelog +* Sun Mar 02 2025 Funda Wang - 2.1.0-4 +- build with cmake 4.0 + * Mon Nov 18 2024 Funda Wang - 2.1.0-3 - adopt to new cmake macro -- Gitee