commit 835a1e6027d03d84087caa8d60fe366f7d260597
Author: Leigh Scott <leigh123linux(a)gmail.com>
Date: Mon Aug 17 16:26:48 2020 +0100
Improve compatibility with new CMake macro
kodi-inputstream-adaptive.spec | 10 ++++++----
1 file changed, 6 insertions(+), 4 deletions(-)
---
diff --git a/kodi-inputstream-adaptive.spec b/kodi-inputstream-adaptive.spec
index 4862c9b..d2aca41 100644
--- a/kodi-inputstream-adaptive.spec
+++ b/kodi-inputstream-adaptive.spec
@@ -2,6 +2,8 @@
%global kodi_version 18.0
%global kodi_branch Leia
+%undefine __cmake_in_source_build
+
Name: kodi-inputstream-adaptive
Version: 2.4.4
@@ -13,7 +15,7 @@ License: GPLv2+ and BSD
URL:
https://github.com/peak3d/%{aname}/
Source0:
%{url}/archive/%{version}-%{kodi_branch}/%{aname}-%{version}-%{kodi_branch}.tar.gz
-BuildRequires: cmake
+BuildRequires: cmake3
BuildRequires: gcc-c++
BuildRequires: kodi-devel >= %{kodi_version}
BuildRequires: expat-devel
@@ -37,12 +39,12 @@ chmod a-x README.md %{aname}/changelog.txt
%build
-%cmake .
-%make_build
+%cmake3
+%cmake3_build
%install
-%make_install
+%cmake3_install
# Fix permissions at installation
find $RPM_BUILD_ROOT%{_datadir}/kodi/addons/ -type f -exec chmod 0644 {} \;