commit eb6e36f0eded9f08f3e4c3cd584c8dba345981fd
Author: Leigh Scott <leigh123linux(a)gmail.com>
Date: Mon Aug 17 16:29:04 2020 +0100
Improve compatibility with new CMake macro
kodi-peripheral-joystick.spec | 10 ++++++----
1 file changed, 6 insertions(+), 4 deletions(-)
---
diff --git a/kodi-peripheral-joystick.spec b/kodi-peripheral-joystick.spec
index c9f46c9..9ec4912 100644
--- a/kodi-peripheral-joystick.spec
+++ b/kodi-peripheral-joystick.spec
@@ -2,6 +2,8 @@
%global kodi_codename Leia
%global kodi_version 18.0
+%undefine __cmake_in_source_build
+
Name: kodi-peripheral-joystick
Version: 1.4.8
Release: 2%{?dist}
@@ -11,7 +13,7 @@ License: GPLv2+
URL:
https://github.com/xbmc/%{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: pkgconfig(libudev)
@@ -28,12 +30,12 @@ Joystick Peripheral Addon for Kodi.
%build
-%cmake
-%make_build
+%cmake3
+%cmake3_build
%install
-%make_install
+%cmake3_install
%files