From d79ceadd2a569cdba06a03075adbb6c56789130d Mon Sep 17 00:00:00 2001 From: Igor Raits Date: Jul 18 2020 15:38:55 +0000 Subject: Improve compatibility with new CMake macro Signed-off-by: Igor Raits --- diff --git a/kde-print-manager.spec b/kde-print-manager.spec index 34e86e0..1daf091 100644 --- a/kde-print-manager.spec +++ b/kde-print-manager.spec @@ -1,3 +1,4 @@ +%undefine __cmake_in_source_build %global base_name print-manager Name: kde-print-manager @@ -76,16 +77,12 @@ Requires: %{name} = %{version}-%{release} %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