commit 37832c9aa35c3fa849dd8a90a3d0259e0f176823
Author: Leigh Scott <leigh123linux(a)gmail.com>
Date: Mon Aug 17 19:34:51 2020 +0100
Improve compatibility with new CMake macro
freshplayerplugin.spec | 12 +++++-------
1 file changed, 5 insertions(+), 7 deletions(-)
---
diff --git a/freshplayerplugin.spec b/freshplayerplugin.spec
index b4fd00f..994113d 100644
--- a/freshplayerplugin.spec
+++ b/freshplayerplugin.spec
@@ -1,3 +1,5 @@
+%undefine __cmake_in_source_build
+
Name: freshplayerplugin
Version: 0.3.11
Release: 5%{?dist}
@@ -77,15 +79,11 @@ sed -i
's|include_directories("${CMAKE_BINARY_DIR}")|include_directories("${CMAK
%build
-mkdir build
-cd build
-%cmake3 -DCMAKE_BUILD_TYPE=RelWithDebInfo -DCMAKE_SKIP_RPATH=true ..
-%make_build
+%cmake3 -DCMAKE_BUILD_TYPE=RelWithDebInfo -DCMAKE_SKIP_RPATH=true
+%cmake3_build
%install
-pushd build
-%make_install
-popd
+%cmake3_install
install -Dm 0644 data/freshwrapper.conf.example %{buildroot}/etc/freshwrapper.conf
%files