Notification time stamped 2020-08-31 19:25:25 UTC
From abfc7ec73fa7ab92ae33585db7ad72036f531dc6 Mon Sep 17 00:00:00 2001
From: Miro Hrončok <miro(a)hroncok.cz>
Date: Jul 26 2020 13:35:12 +0000
Subject:
https://fedoraproject.org/wiki/Changes/CMake_to_do_out-of-source_builds
---
diff --git a/cura.spec b/cura.spec
index ca983c7..45a8fe9 100644
--- a/cura.spec
+++ b/cura.spec
@@ -48,6 +48,9 @@ Requires: libglvnd-devel
# So that it just works
Requires: 3dprinter-udev-rules
+# Get Fedora 33++ behavior on anything older
+%undefine __cmake_in_source_build
+
%description
Cura is a project which aims to be an single software solution for 3D printing.
While it is developed to be used with the Ultimaker 3D printer, it can be used
@@ -72,14 +75,14 @@ dos2unix docs/How_to_use_the_flame_graph_profiler.md
sed -i '1s=^#!/usr/bin/\(python\|env python\)3*=#!%{__python3}=' cura_app.py
%build
-%{cmake} \
+%cmake \
-DCURA_VERSION:STRING=%{version} \
-DCURA_BUILDTYPE=RPM \
-DCURA_CLOUD_API_ROOT:STRING=%{cura_cloud_api_root} \
-DCURA_CLOUD_API_VERSION:STRING=%{cura_cloud_api_version} \
-DCURA_CLOUD_ACCOUNT_API_ROOT:STRING=%{cura_cloud_account_api_root} \
- -DLIB_SUFFIX:STR= .
-make %{?_smp_mflags}
+ -DLIB_SUFFIX:STR=
+%cmake_build
# rebuild locales
cd resources/i18n
@@ -95,7 +98,7 @@ cd -
%install
-make install DESTDIR=%{buildroot}
+%cmake_install
# Sanitize the location of locale files
pushd %{buildroot}%{_datadir}
https://src.fedoraproject.org/rpms/cura/c/abfc7ec73fa7ab92ae33585db7ad720...