commit 509dea9bc3b565f079dbfb317b52b3df601110af
Author: Leigh Scott <leigh123linux(a)gmail.com>
Date: Mon Aug 17 18:13:37 2020 +0100
Improve compatibility with new CMake macro
chromaprint-tools.spec | 11 +++++------
1 file changed, 5 insertions(+), 6 deletions(-)
---
diff --git a/chromaprint-tools.spec b/chromaprint-tools.spec
index 73451ab..e0b63b7 100644
--- a/chromaprint-tools.spec
+++ b/chromaprint-tools.spec
@@ -1,3 +1,5 @@
+%undefine __cmake_in_source_build
+
Name: chromaprint-tools
Version: 1.5.0
Release: 2%{?dist}
@@ -32,17 +34,14 @@ License for binaries is GPLv2+ but source code is MIT + LGPLv2+
%build
-mkdir -p build
-pushd build
%cmake3 -GNinja \
-DBUILD_TESTS=OFF \
-DCMAKE_BUILD_TYPE=Release \
- -DBUILD_TOOLS=ON ..
-%ninja_build
-popd
+ -DBUILD_TOOLS=ON
+%cmake3_build
%install
-%ninja_install -C build
+%cmake3_install
# cleaning files managed in the chromaprint main package
rm -f %{buildroot}%{_includedir}/chromaprint.h