From 16b6bea8943bbc1d99c0099d831329505f566846 Mon Sep 17 00:00:00 2001 From: Igor Raits Date: Mon, 20 Jul 2020 13:23:07 +0200 Subject: [PATCH] Improve compatibility with new CMake macro Signed-off-by: Igor Raits --- kmenuedit.spec | 11 ++++------- 1 file changed, 4 insertions(+), 7 deletions(-) diff --git a/kmenuedit.spec b/kmenuedit.spec index b95b909..b9332d4 100644 --- a/kmenuedit.spec +++ b/kmenuedit.spec @@ -1,3 +1,4 @@ +%undefine __cmake_in_source_build %global kf5_version 5.26.0 @@ -52,16 +53,12 @@ Conflicts: kde-workspace < 4.11.15-3 %build -mkdir %{_target_platform} -pushd %{_target_platform} -%{cmake_kf5} .. -popd - -%make_build -C %{_target_platform} +%{cmake_kf5} +%cmake_build %install -make install/fast DESTDIR=%{buildroot} -C %{_target_platform} +%cmake_install %find_lang kmenuedit5 --with-html --all-name