Notification time stamped 2020-08-31 19:25:09 UTC
From b6f7c334de31efd5e362d28236988343871d90d1 Mon Sep 17 00:00:00 2001
From: Miro Hrončok <miro(a)hroncok.cz>
Date: Jul 26 2020 13:14:33 +0000
Subject:
https://fedoraproject.org/wiki/Changes/CMake_to_do_out-of-source_builds
---
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/862a246bdfd7e25541b04a3540695...
-%{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
https://src.fedoraproject.org/rpms/python-uranium/c/b6f7c334de31efd5e362d...