From 73d6df583f7acab2c7eec42289330d5ebbc1233b Mon Sep 17 00:00:00 2001 From: Igor Raits Date: Mon, 20 Jul 2020 14:13:09 +0200 Subject: [PATCH] Improve compatibility with new CMake macro Signed-off-by: Igor Raits --- kwrited.spec | 11 ++++------- 1 file changed, 4 insertions(+), 7 deletions(-) diff --git a/kwrited.spec b/kwrited.spec index e1a6802..caf7d7e 100644 --- a/kwrited.spec +++ b/kwrited.spec @@ -1,3 +1,4 @@ +%undefine __cmake_in_source_build Name: kwrited Summary: KDE Write Daemon @@ -44,16 +45,12 @@ Conflicts: kde-workspace < 5.0.0-1 %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 %files