Notification time stamped 2020-08-31 19:24:51 UTC
From 219ef48e375f100bbfff86e353eb6c693684ce9e Mon Sep 17 00:00:00 2001
From: Miro Hrončok <miro(a)hroncok.cz>
Date: Jul 26 2020 13:10:19 +0000
Subject:
https://fedoraproject.org/wiki/Changes/CMake_to_do_out-of-source_builds
---
diff --git a/libsavitar.spec b/libsavitar.spec
index 7b38c26..5bb0bbe 100644
--- a/libsavitar.spec
+++ b/libsavitar.spec
@@ -20,6 +20,9 @@ BuildRequires: python3-devel
BuildRequires: python3-sip-devel
BuildRequires: /usr/bin/sip
+# Get Fedora 33++ behavior on anything older
+%undefine __cmake_in_source_build
+
%description
Savitar is a C++ implementation of 3mf loading with SIP Python bindings.
3mf is a 3D printing file format.
@@ -64,11 +67,11 @@ sed -i 's/Python3_SITELIB/Python3_SITEARCH/'
cmake/SIPMacros.cmake
%build
export CXXFLAGS="%{optflags} -Wl,--as-needed"
-%{cmake} -DCMAKE_SKIP_RPATH:BOOL=ON .
-%make_build
+%cmake -DCMAKE_SKIP_RPATH:BOOL=ON .
+%cmake_build
%install
-%make_install
+%cmake_install
%files
%license LICENSE
https://src.fedoraproject.org/rpms/libsavitar/c/219ef48e375f100bbfff86e35...