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