From 2b3e7d644a74a960c56dd026e65ac4e76cd9c894 Mon Sep 17 00:00:00 2001 From: Igor Raits Date: Jul 18 2020 15:36:14 +0000 Subject: Improve compatibility with new CMake macro Signed-off-by: Igor Raits --- diff --git a/kde-connect.spec b/kde-connect.spec index 5d7ef3d..8b417a3 100644 --- a/kde-connect.spec +++ b/kde-connect.spec @@ -1,4 +1,4 @@ - +%undefine __cmake_in_source_build # enable experimental (default off) bluetooth support #global bluetooth 1 @@ -117,17 +117,13 @@ Supplements: (kdeconnectd and nautilus) %build -mkdir %{_target_platform} -pushd %{_target_platform} -%{cmake_kf5} .. \ +%{cmake_kf5} \ %{?bluetooth:-DBLUETOOTH_ENABLED:BOOL=ON} -popd - -%make_build -C %{_target_platform} +%cmake_build %install -make install/fast DESTDIR=%{buildroot} -C %{_target_platform} +%cmake_install # firewalld as shipped in f31+ provides it's own kdeconnect.xml %if 0%{?fedora} && 0%{?fedora} < 31