From d70f017d2a132ebeebe87f3ea2cfe93f7ef41f35 Mon Sep 17 00:00:00 2001 From: Igor Raits Date: Jul 20 2020 11:20:47 +0000 Subject: Improve compatibility with new CMake macro Signed-off-by: Igor Raits --- diff --git a/kmag.spec b/kmag.spec index 56f7dce..2a91a0d 100644 --- a/kmag.spec +++ b/kmag.spec @@ -1,3 +1,5 @@ +%undefine __cmake_in_source_build + Name: kmag Version: 20.04.3 Release: 1%{?dist} @@ -44,16 +46,12 @@ Conflicts: kdeaccessibility < 1:4.7.80 %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 %{name} --all-name --with-html --with-man