commit 593e4ff498ea60529cab928942d96406cf8892c7
Author: Leigh Scott <leigh123linux(a)gmail.com>
Date: Mon Aug 17 16:37:24 2020 +0100
Improve compatibility with new CMake macro
kodi-pvr-dvblink.spec | 10 ++++++----
1 file changed, 6 insertions(+), 4 deletions(-)
---
diff --git a/kodi-pvr-dvblink.spec b/kodi-pvr-dvblink.spec
index 04d8d72..b216e15 100644
--- a/kodi-pvr-dvblink.spec
+++ b/kodi-pvr-dvblink.spec
@@ -2,6 +2,8 @@
%global kodi_version 18.0
%global kodi_codename Leia
+%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/)
@@ -15,7 +17,7 @@ License: GPLv2+ and MIT
URL:
https://github.com/kodi-pvr/%{kodi_addon}/
Source0:
%{url}/archive/%{version}-%{kodi_codename}/%{kodi_addon}-%{version}.tar.gz
-BuildRequires: cmake
+BuildRequires: cmake3
BuildRequires: gcc-c++
BuildRequires: kodi-devel >= %{kodi_version}
BuildRequires: kodi-platform-devel >= %{kodi_version}
@@ -35,12 +37,12 @@ ExcludeArch: %{power64} ppc64le
%build
-%cmake .
-%make_build
+%cmake3
+%cmake3_build
%install
-%make_install
+%cmake3_install
%files