commit 1be3f5e0fd259b582e55ccdd598154453184dfbf
Author: Leigh Scott <leigh123linux(a)gmail.com>
Date: Mon Aug 17 16:30:43 2020 +0100
Improve compatibility with new CMake macro
kodi-platform.spec | 10 ++++++----
1 file changed, 6 insertions(+), 4 deletions(-)
---
diff --git a/kodi-platform.spec b/kodi-platform.spec
index 781c12a..bebadc8 100644
--- a/kodi-platform.spec
+++ b/kodi-platform.spec
@@ -6,6 +6,8 @@
%global shortcommit %(c=%{commit}; echo ${c:0:7})
%global commitdate 20180302
+%undefine __cmake_in_source_build
+
Name: kodi-platform
Version: 18.0
Release: 0.7.%{commitdate}git%{shortcommit}%{?dist}
@@ -17,7 +19,7 @@ Source0:
https://github.com/xbmc/%{name}/archive/%{shortcommit}/%{name}-%
# Fix .cmake files installation path
Patch0: %{name}-15.0-install.patch
-BuildRequires: cmake
+BuildRequires: cmake3
BuildRequires: gcc-c++
BuildRequires: kodi-devel >= %{version}
BuildRequires: platform-devel
@@ -46,12 +48,12 @@ developing applications that use %{name}.
%build
-%cmake .
-%make_build
+%cmake3
+%cmake3_build
%install
-%make_install
+%cmake3_install
%ldconfig_scriptlets