From 592e85ab435c9b463779cb9ee13c8e75ba32cdd3 Mon Sep 17 00:00:00 2001 From: Igor Raits Date: Jul 18 2020 09:07:51 +0000 Subject: Improve compatibility with new CMake macro Signed-off-by: Igor Raits --- diff --git a/kgoldrunner.spec b/kgoldrunner.spec index daef57c..8d0bfe6 100644 --- a/kgoldrunner.spec +++ b/kgoldrunner.spec @@ -1,3 +1,4 @@ +%undefine __cmake_in_source_build Name: kgoldrunner Summary: A game of action and puzzle solving Version: 20.04.3 @@ -51,16 +52,12 @@ dodge your enemies, collect all the gold and climb up to the next level. %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