From dcd4ecf2cecfd3ef9f59ba0da06d1bb60171a69b Mon Sep 17 00:00:00 2001 From: Igor Raits Date: Jul 20 2020 11:29:16 +0000 Subject: Improve compatibility with new CMake macro Signed-off-by: Igor Raits --- diff --git a/knavalbattle.spec b/knavalbattle.spec index 5d100fa..a04ddb4 100644 --- a/knavalbattle.spec +++ b/knavalbattle.spec @@ -1,3 +1,4 @@ +%undefine __cmake_in_source_build Name: knavalbattle Summary: A ship sinking game @@ -52,16 +53,12 @@ ships wins the game. %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