commit 1fa32cdd53191415eaf936083382d3127fc22d0b
Author: Leigh Scott <leigh123linux(a)gmail.com>
Date: Mon Aug 17 16:42:17 2020 +0100
Improve compatibility with new CMake macro
kodi-pvr-hts.spec | 10 ++++++----
1 file changed, 6 insertions(+), 4 deletions(-)
---
diff --git a/kodi-pvr-hts.spec b/kodi-pvr-hts.spec
index 4b125cf..ca3ef0d 100644
--- a/kodi-pvr-hts.spec
+++ b/kodi-pvr-hts.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/)
@@ -16,7 +18,7 @@ License: GPLv2+ and LGPLv2+
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-platform-devel >= %{kodi_version}
BuildRequires: kodi-devel >= %{kodi_version}
@@ -34,12 +36,12 @@ ExcludeArch: %{power64} ppc64le
%build
-%cmake .
-%make_build
+%cmake3
+%cmake3_build
%install
-%make_install
+%cmake3_install
%files