From d574cb20f80d90defcfba5a3652b2da112838d33 Mon Sep 17 00:00:00 2001 From: Igor Raits Date: Sat, 18 Jul 2020 10:53:07 +0200 Subject: [PATCH] Improve compatibility with new CMake macro Signed-off-by: Igor Raits --- kf5-sonnet.spec | 11 ++++------- 1 file changed, 4 insertions(+), 7 deletions(-) diff --git a/kf5-sonnet.spec b/kf5-sonnet.spec index f95bbe6..7dd4617 100644 --- a/kf5-sonnet.spec +++ b/kf5-sonnet.spec @@ -1,3 +1,4 @@ +%undefine __cmake_in_source_build %global framework sonnet # uncomment to enable bootstrap mode @@ -68,17 +69,13 @@ GUI part of the Sonnet framework provides widgets with spell checking support. %build -mkdir %{_target_platform} -pushd %{_target_platform} -%{cmake_kf5} .. \ +%{cmake_kf5} \ %{?tests:-DBUILD_TESTING:BOOL=ON} -popd - -%make_build -C %{_target_platform} +%cmake_build %install -make install/fast DESTDIR=%{buildroot} -C %{_target_platform} +%cmake_install %find_lang_kf5 sonnet5_qt