From 4cb667a09087fb1170cbaedeedf2fafd3c19e0de Mon Sep 17 00:00:00 2001 From: Igor Raits Date: Jul 18 2020 07:46:32 +0000 Subject: Improve compatibility with new CMake macro Signed-off-by: Igor Raits --- diff --git a/kf5-kdelibs4support.spec b/kf5-kdelibs4support.spec index 5047756..7112ae9 100644 --- a/kf5-kdelibs4support.spec +++ b/kf5-kdelibs4support.spec @@ -1,3 +1,4 @@ +%undefine __cmake_in_source_build %global framework kdelibs4support Name: kf5-%{framework} @@ -117,20 +118,17 @@ developing applications that use %{name}. %build -mkdir %{_target_platform} -pushd %{_target_platform} # Set absolute BIN_INSTALL_DIR, otherwise CMake will complain about mixed use of # absolute and relative paths for some reason # Remove once fixed upstream -%{cmake_kf5} .. \ +%{cmake_kf5} \ -DBIN_INSTALL_DIR=%{_kf5_bindir} -popd -%make_build -C %{_target_platform} +%cmake_build %install -make install/fast DESTDIR=%{buildroot} -C %{_target_platform} +%cmake_install %find_lang all --all-name --with-man %{?_with_html}