Notification time stamped 2020-08-31 19:25:00 UTC
From 0b08ba97df8f9f6a67ef9857636af77c8aba5617 Mon Sep 17 00:00:00 2001
From: Miro Hrončok <miro(a)hroncok.cz>
Date: Jul 26 2020 13:08:37 +0000
Subject:
https://fedoraproject.org/wiki/Changes/CMake_to_do_out-of-source_builds
---
diff --git a/libarcus.spec b/libarcus.spec
index cdf6038..1f56c18 100644
--- a/libarcus.spec
+++ b/libarcus.spec
@@ -19,6 +19,9 @@ BuildRequires: cmake
BuildRequires: gcc-c++
BuildRequires: git-core
+# Get Fedora 33++ behavior on anything older
+%undefine __cmake_in_source_build
+
%description
Arcus library contains C++ code and Python 3 bindings for creating a socket in
a thread and using this socket to send and receive messages based on the
@@ -60,11 +63,11 @@ between Cura and its backend and similar code.
sed -i 's/Python3_SITELIB/Python3_SITEARCH/' cmake/SIPMacros.cmake
%build
-%{cmake} -DBUILD_EXAMPLES:BOOL=OFF -DCMAKE_SKIP_RPATH:BOOL=ON .
-%make_build
+%cmake -DBUILD_EXAMPLES:BOOL=OFF -DCMAKE_SKIP_RPATH:BOOL=ON .
+%cmake_build
%install
-%make_install
+%cmake_install
%files
%license LICENSE
https://src.fedoraproject.org/rpms/libarcus/c/0b08ba97df8f9f6a67ef9857636...