From 39659da9aac08c183570d9a7cc0b63dd63be22b6 Mon Sep 17 00:00:00 2001 From: Igor Raits Date: Jul 18 2020 09:08:30 +0000 Subject: Improve compatibility with new CMake macro Signed-off-by: Igor Raits --- diff --git a/kgpg.spec b/kgpg.spec index 592b56e..d656a3a 100644 --- a/kgpg.spec +++ b/kgpg.spec @@ -1,4 +1,4 @@ - +%undefine __cmake_in_source_build Name: kgpg Summary: Manage GPG encryption keys Version: 20.04.3 @@ -73,16 +73,12 @@ KGpg is a simple interface for GnuPG, a powerful encryption utility. %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 %find_lang %{name} --all-name --with-html