已开启
[sync] PR-4: Adapt to CMake 4: bump cmake_minimum_required from 3.1.0 to 3.5 #5
openeuler-ci-bot创建于 8月20日
[sync] PR-4: Adapt to CMake 4: bump cmake_minimum_required from 3.1.0 to 3.5 #5
已开启
共 2 个文件变更+14-2
| @@ -0,0 +1,8 @@ | |||
| 1 | +--- kylin-device-daemon-3.20.0.5/CMakeLists.txt 2024-05-06 15:55:16.000000000 +0800 | ||
| 2 | ++++ kylin-device-daemon-3.20.0.5/CMakeLists.txt 2026-08-20 15:48:13.568697114 +0800 | ||
| 3 | + | ||
| 4 | +-cmake_minimum_required(VERSION 3.1.0) | ||
| 5 | ++cmake_minimum_required(VERSION 3.5) | ||
| 6 | + | ||
| 7 | + project(kylin-device-daemon) | ||
| 8 | + | ||
| @@ -1,11 +1,12 @@ | |||
| 1 | Name: kylin-device-daemon | 1 | Name: kylin-device-daemon |
| 2 | Version: 3.20.0.5 | 2 | Version: 3.20.0.5 |
| 3 | -Release: 2 | 3 | +Release: 3 |
| 4 | Summary: kylin device daemon | 4 | Summary: kylin device daemon |
| 5 | License: LGPL-2.0-or-later and GPL-2.0-or-later and BSD | 5 | License: LGPL-2.0-or-later and GPL-2.0-or-later and BSD |
| 6 | URL: https://github.com/ukui/kylin-device-daemon | 6 | URL: https://github.com/ukui/kylin-device-daemon |
| 7 | Source0: %{name}-%{version}.tar.gz | 7 | Source0: %{name}-%{version}.tar.gz |
| 8 | 8 | ||
| 9 | +Patch0: kylin-device-daemon-3.20.0.5-cmake-min-version-3.5.patch | ||
| 9 | 10 | ||
| 10 | BuildRequires: cmake | 11 | BuildRequires: cmake |
| 11 | BuildRequires: glib2-devel >= 2.36 | 12 | BuildRequires: glib2-devel >= 2.36 |
| @@ -27,7 +28,7 @@ BuildRequires: qt5-qttools-devel | |||
| 27 | %autosetup -n %{name}-%{version} -p1 | 28 | %autosetup -n %{name}-%{version} -p1 |
| 28 | 29 | ||
| 29 | %build | 30 | %build |
| 30 | -%cmake3 . | 31 | +%cmake |
| 31 | %cmake_build | 32 | %cmake_build |
| 32 | 33 | ||
| 33 | %install | 34 | %install |
| @@ -54,6 +55,9 @@ rm -rf $RPM_BUILD_ROOT | |||
| 54 | 55 | ||
| 55 | 56 | ||
| 56 | %changelog | 57 | %changelog |
| 58 | +* Thu Aug 20 2026 peijiankang <peijiankang@kylinos.cn> - 3.20.0.5-3 | ||
| 59 | +- Adapt to CMake 4: bump cmake_minimum_required from 3.1.0 to 3.5 | ||
| 60 | + | ||
| 57 | * Thu Sep 11 2025 peijiankang <peijiankang@kylinos.cn> - 3.20.0.5-2 | 61 | * Thu Sep 11 2025 peijiankang <peijiankang@kylinos.cn> - 3.20.0.5-2 |
| 58 | - fix build error | 62 | - fix build error |
| 59 | 63 | ||