From c4e30a2c86a03419f4a227aeed0ee6aceafb5691 Mon Sep 17 00:00:00 2001 From: Igor Raits Date: Jul 18 2020 16:32:46 +0000 Subject: Improve compatibility with new CMake macro Signed-off-by: Igor Raits --- diff --git a/kanagram.spec b/kanagram.spec index 8ee1feb..92f4918 100644 --- a/kanagram.spec +++ b/kanagram.spec @@ -1,3 +1,5 @@ +%undefine __cmake_in_source_build + Name: kanagram Summary: Letter Order Game Version: 20.04.3 @@ -54,16 +56,12 @@ Obsoletes: kanagram-libs < 4.13.90 %build -mkdir %{_target_platform} -pushd %{_target_platform} -%{cmake_kf5} .. -popd - -make %{?_smp_mflags} -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 --with-qt