commit d6bc573c94843fc5f4135a6d139caa08c63cf4e7
Author: Leigh Scott <leigh123linux(a)gmail.com>
Date: Mon Aug 17 16:38:57 2020 +0100
Improve compatibility with new CMake macro
kodi-pvr-dvbviewer.spec | 10 ++++++----
1 file changed, 6 insertions(+), 4 deletions(-)
---
diff --git a/kodi-pvr-dvbviewer.spec b/kodi-pvr-dvbviewer.spec
index 1e13f83..dd57067 100644
--- a/kodi-pvr-dvbviewer.spec
+++ b/kodi-pvr-dvbviewer.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/)
@@ -14,7 +16,7 @@ License: GPLv2+
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}
@@ -32,12 +34,12 @@ ExcludeArch: %{power64} ppc64le
%build
-%cmake .
-%make_build
+%cmake3
+%cmake3_build
%install
-%make_install
+%cmake3_install
%files