From 604f8b530f3c2c356127299b9fd58486e467c1b4 Mon Sep 17 00:00:00 2001 From: Fabio Valentini Date: Aug 05 2020 19:23:18 +0000 Subject: adaptations for CMake out-of-tree builds See: https://fedoraproject.org/wiki/Changes/CMake_to_do_out-of-source_builds --- diff --git a/aqemu.spec b/aqemu.spec index cf4231b..9301527 100644 --- a/aqemu.spec +++ b/aqemu.spec @@ -1,3 +1,6 @@ +# force out-of-tree build for spec compatibility with older releases +%undefine __cmake_in_source_build + Name: aqemu Version: 0.9.2 Release: 16%{?dist} @@ -28,10 +31,10 @@ majority of QEMU and KVM options on their virtual machines. # to be # parallel-installable with Qt4 ones PATH=%{_qt5_bindir}:$PATH; export PATH %cmake -make %{?_smp_mflags} +%cmake_build %install -make DESTDIR=%{buildroot} install +%cmake_install # Copy 48x48 and 64x64 icons to correct location. mkdir -p %{buildroot}%{_datadir}/icons/hicolor/{48x48,64x64}/apps mv %{buildroot}%{_datadir}/pixmaps/%{name}_48x48.png \