commit 33a5a4b38971b575dc1ff2e5d9dbc76b5a201273
Author: Leigh Scott <leigh123linux(a)gmail.com>
Date: Mon Aug 17 16:52:59 2020 +0100
Improve compatibility with new CMake macro
kodi-pvr-pctv.spec | 11 +++++------
1 file changed, 5 insertions(+), 6 deletions(-)
---
diff --git a/kodi-pvr-pctv.spec b/kodi-pvr-pctv.spec
index 04451b5..9985182 100644
--- a/kodi-pvr-pctv.spec
+++ b/kodi-pvr-pctv.spec
@@ -1,10 +1,9 @@
-# Use old cmake macro
-%global __cmake_in_source_build 1
-
%global kodi_addon pvr.pctv
%global kodi_version 18.0
%global kodi_codename Matrix
+%undefine __cmake_in_source_build
+
Name: kodi-%(tr "." "-" <<<%{kodi_addon})
Version: 5.0.0
Release: 1%{?dist}
@@ -34,12 +33,12 @@ ExcludeArch: %{power64} ppc64le
%build
#
https://gitlab.kitware.com/cmake/cmake/issues/17555#note_355574
export PKG_CONFIG_ALLOW_SYSTEM_CFLAGS=1
-%cmake3 .
-%make_build
+%cmake3
+%cmake3_build
%install
-%make_install
+%cmake3_install
%files