From cf163be3fac783e219258c8b2144e78ce77ad761 Mon Sep 17 00:00:00 2001 From: Igor Raits Date: Aug 03 2020 15:38:20 +0000 Subject: Improve compatibility with new CMake macro Signed-off-by: Igor Raits --- diff --git a/gnurobbo.spec b/gnurobbo.spec index d5d68d7..cc60526 100644 --- a/gnurobbo.spec +++ b/gnurobbo.spec @@ -1,3 +1,5 @@ +%undefine __cmake_in_source_build + %global rev 415 %global date 20151113 @@ -102,12 +104,12 @@ sed -i s,add_subdirectory.data.,, CMakeLists.txt %build # fonts and sounds are not redistributable, ignore them -%cmake -DUSE_FONTS=OFF -DDISABLE_MUSIC=ON . -%make_build +%cmake -DUSE_FONTS=OFF -DDISABLE_MUSIC=ON +%cmake_build %install -%make_install +%cmake_install # skip misplaced license texts, they get replaced via %license rm -v %{buildroot}%{_pkgdocdir}/COPYING %{buildroot}%{_pkgdocdir}/LICENSE*