From b6f7c334de31efd5e362d28236988343871d90d1 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Miro=20Hron=C4=8Dok?= Date: Sun, 26 Jul 2020 15:14:33 +0200 Subject: [PATCH] https://fedoraproject.org/wiki/Changes/CMake_to_do_out-of-source_builds --- python-uranium.spec | 11 +++++++---- 1 file changed, 7 insertions(+), 4 deletions(-) diff --git a/python-uranium.spec b/python-uranium.spec index f51d097..3d272fe 100644 --- a/python-uranium.spec +++ b/python-uranium.spec @@ -25,6 +25,9 @@ BuildRequires: python3-twisted BuildArch: noarch +# Get Fedora 33++ behavior on anything older +%undefine __cmake_in_source_build + %description Uranium is a Python framework for building 3D printing related applications. @@ -57,9 +60,9 @@ related applications. %build # there is no arch specific content, so we set LIB_SUFFIX to nothing # see https://github.com/Ultimaker/Uranium/commit/862a246bdfd7e25541b04a35406957612c6f4bb7 -%{cmake} -DLIB_SUFFIX:STR= . -make %{?_smp_mflags} -make doc +%cmake -DLIB_SUFFIX:STR= . +%cmake_build +%cmake_build -- doc %check %{__python3} -m pip freeze @@ -71,7 +74,7 @@ make doc %install -make install DESTDIR=%{buildroot} +%cmake_install # Move the cmake files mv %{buildroot}%{_datadir}/cmake* %{buildroot}%{_datadir}/cmake