From cbf6ad53f113cd46aa3e2f3eccf2eb0caee472bd Mon Sep 17 00:00:00 2001 From: ChenYanpan Date: Fri, 15 Nov 2024 19:38:43 +0800 Subject: [PATCH] adapt to the new CMake macros to fix build failure --- kdecoration.spec | 23 ++++++++--------------- 1 file changed, 8 insertions(+), 15 deletions(-) diff --git a/kdecoration.spec b/kdecoration.spec index 45906c3..f0e552c 100644 --- a/kdecoration.spec +++ b/kdecoration.spec @@ -12,7 +12,7 @@ Name: kdecoration Summary: A plugin-based library to create window decorations Version: 5.27.10 -Release: 1 +Release: 2 License: LGPLv2 URL: https://cgit.kde.org/%{name}.git @@ -57,28 +57,18 @@ sed -i "s/set(KDECORATION2_INCLUDEDIR \"\${CMAKE_INSTALL_INCLUDEDIR}\/KDecoratio %build -mkdir %{_target_platform} -pushd %{_target_platform} -%{cmake_kf5} .. \ - -DBUILD_TESTING:BOOL=%{?tests:ON}%{!?tests:OFF} -popd - -%make_build -C %{_target_platform} +%{cmake_kf5} +%{cmake_build} %install -make install/fast DESTDIR=%{buildroot} -C %{_target_platform} +%{cmake_install} # create/own plugin dir mkdir -p %{buildroot}%{_kf5_qtplugindir}/org.kde.kdecoration2/ %check -%if 0%{?tests} -export CTEST_OUTPUT_ON_FAILURE=1 -xvfb-run -a \ -make test ARGS="--output-on-failure --timeout 20" -C %{_target_platform} ||: -%endif - +%{ctest} %ldconfig_scriptlets @@ -98,6 +88,9 @@ make test ARGS="--output-on-failure --timeout 20" -C %{_target_platform} ||: %changelog +* Fri Nov 15 2024 ChenYanpan - 5.27.10-2 +- adapt to the new CMake macros to fix build failure + * Mon Jan 08 2024 jiangxinyu - 5.27.10-1 - Update package to version 5.27.10