commit 45d03c4f85dda3ec51865ee426b21a2ecb13f7f4
Author: Leigh Scott <leigh123linux(a)gmail.com>
Date: Tue Aug 18 19:21:00 2020 +0100
Improve compatibility with new CMake macro
performous.spec | 12 +++++-------
1 file changed, 5 insertions(+), 7 deletions(-)
---
diff --git a/performous.spec b/performous.spec
index d741dea..919699e 100644
--- a/performous.spec
+++ b/performous.spec
@@ -2,6 +2,8 @@
%global gitdate 20190419
%global shortcommit0 %(c=%{commit0}; echo ${c:0:7})
+%undefine __cmake_in_source_build
+
Name: performous
Version: 1.2
Release: 0.8.%{gitdate}git%{shortcommit0}%{?dist}
@@ -78,20 +80,16 @@ cp -p "docs/license/SIL OFL Font License New Rocker.txt"
SIL-OFL.txt
%build
-mkdir -p build
-cd build
# Jack support is disabled because the engine can't be chosen at run-time and
# jack will always take precedence over pulseaudio
#%%cmake -DSHARE_INSTALL:PATH=share/performous \
%cmake3 -DSHARE_INSTALL:PATH=%{_datadir}/performous \
- -DCMAKE_BUILD_TYPE:STRING=RelWithDebInfo \
- ..
-%make_build
+ -DCMAKE_BUILD_TYPE:STRING=RelWithDebInfo
+%cmake3_build
%install
-cd build
-%make_install
+%cmake3_install
## Menu
mkdir -p %buildroot%{_datadir}/applications