commit 8ba35af2b462c1769ae97bd9931070f4cbe41974
Author: Leigh Scott <leigh123linux(a)gmail.com>
Date: Mon Aug 17 16:34:56 2020 +0100
Improve compatibility with new CMake macro
kodi-pvr-demo.spec | 10 ++++++----
1 file changed, 6 insertions(+), 4 deletions(-)
---
diff --git a/kodi-pvr-demo.spec b/kodi-pvr-demo.spec
index e5af7c3..4d7d193 100644
--- a/kodi-pvr-demo.spec
+++ b/kodi-pvr-demo.spec
@@ -5,6 +5,8 @@
%global kodi_addon pvr.demo
%global kodi_version 18.0
+%undefine __cmake_in_source_build
+
Name: kodi-%(tr "." "-" <<<%{kodi_addon})
# Use Epoch to manage upgrades from older upstream
# (
https://github.com/opdenkamp/xbmc-pvr-addons/)
@@ -17,7 +19,7 @@ License: GPLv2+
URL:
https://github.com/kodi-pvr/%{kodi_addon}/
Source0:
https://github.com/kodi-pvr/%{kodi_addon}/archive/%{shortcommit}/%{kodi_a...
-BuildRequires: cmake
+BuildRequires: cmake3
BuildRequires: gcc-c++
BuildRequires: kodi-devel >= %{kodi_version}
BuildRequires: kodi-platform-devel >= %{kodi_version}
@@ -34,12 +36,12 @@ ExcludeArch: %{power64} ppc64le
%build
-%cmake .
-%make_build
+%cmake3
+%cmake3_build
%install
-%make_install
+%cmake3_install
%files