From a7d0f240331c6d016c7e28de77be6c17b64ea3d0 Mon Sep 17 00:00:00 2001 From: Igor Raits Date: Jul 18 2020 08:55:36 +0000 Subject: Improve compatibility with new CMake macro Signed-off-by: Igor Raits --- diff --git a/kfloppy.spec b/kfloppy.spec index d69dfdb..a1b42d1 100644 --- a/kfloppy.spec +++ b/kfloppy.spec @@ -1,3 +1,4 @@ +%undefine __cmake_in_source_build Name: kfloppy Summary: Floppy formatting tool Version: 20.04.3 @@ -45,16 +46,12 @@ to format 3.5" and 5.25" floppy disks. %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