commit 0ecfd4ee6e6307576bae105f639158aa61916ab5
Author: Leigh Scott <leigh123linux(a)gmail.com>
Date: Fri Jan 27 21:47:58 2023 +0000
Rebuilt for kodi-20
kodi-platform-15.0-install.patch | 6 +++---
kodi-platform-18.0-gcc13.patch | 26 ++++++++++++++++++++++++++
kodi-platform.spec | 23 +++++++++++++----------
3 files changed, 42 insertions(+), 13 deletions(-)
---
diff --git a/kodi-platform-15.0-install.patch b/kodi-platform-15.0-install.patch
index 160c714..f4ac680 100644
--- a/kodi-platform-15.0-install.patch
+++ b/kodi-platform-15.0-install.patch
@@ -1,6 +1,6 @@
-diff -up ./CMakeLists.txt.orig ./CMakeLists.txt
---- ./CMakeLists.txt.orig 2015-05-04 12:32:24.000000000 +0200
-+++ ./CMakeLists.txt 2015-07-19 05:39:38.910280201 +0200
+diff -up a/CMakeLists.txt.orig b/CMakeLists.txt
+--- a/CMakeLists.txt.orig 2015-05-04 12:32:24.000000000 +0200
++++ b/CMakeLists.txt 2015-07-19 05:39:38.910280201 +0200
@@ -64,7 +64,7 @@ ENDIF(NOT WIN32)
configure_file (kodiplatform-config.cmake.in
kodiplatform-config.cmake @ONLY)
diff --git a/kodi-platform-18.0-gcc13.patch b/kodi-platform-18.0-gcc13.patch
new file mode 100644
index 0000000..c036d7d
--- /dev/null
+++ b/kodi-platform-18.0-gcc13.patch
@@ -0,0 +1,26 @@
+From 541985fd646c84edf0067aac03c09c8412bd6fad Mon Sep 17 00:00:00 2001
+From: Olaf Hering <olaf(a)aepfle.de>
+Date: Mon, 29 Apr 2019 14:08:08 +0200
+Subject: [PATCH] define fixed width integer types
+
+XMLUtils uses uint32_t in public header files, but makes no attempt to define that data
type.
+
+Fix this by including <cstdint>.
+
+Signed-off-by: Olaf Hering <olaf(a)aepfle.de>
+---
+ src/util/XMLUtils.h | 1 +
+ 1 file changed, 1 insertion(+)
+
+diff --git a/src/util/XMLUtils.h b/src/util/XMLUtils.h
+index 1480280..ed87581 100644
+--- a/src/util/XMLUtils.h
++++ b/src/util/XMLUtils.h
+@@ -21,6 +21,7 @@
+ *
+ */
+
++#include <cstdint>
+ #include <string>
+ #include <vector>
+ #include "tinyxml.h"
diff --git a/kodi-platform.spec b/kodi-platform.spec
index fa31c32..c3619d9 100644
--- a/kodi-platform.spec
+++ b/kodi-platform.spec
@@ -6,20 +6,20 @@
%global shortcommit %(c=%{commit}; echo ${c:0:7})
%global commitdate 20180302
-%undefine __cmake_in_source_build
-
Name: kodi-platform
Version: 18.0
-Release: 0.12.%{commitdate}git%{shortcommit}%{?dist}
+Release: 0.13.%{commitdate}git%{shortcommit}%{?dist}
Summary: Kodi platform support library
License: GPLv2+
-URL:
https://github.com/xbmc/kodi-platform/
-Source0:
https://github.com/xbmc/%{name}/archive/%{shortcommit}/%{name}-%{shortcom...
+URL:
https://github.com/xbmc/kodi-platform
+Source0: %url/archive/%{shortcommit}/%{name}-%{shortcommit}.tar.gz
# Fix .cmake files installation path
Patch0: %{name}-15.0-install.patch
+# Fix gcc-13 build
+Patch1:
%url/commit/541985fd646c84edf0067aac03c09c8412bd6fad.patch#/%{name}-18.0-gcc13.patch
-BuildRequires: cmake3
+BuildRequires: cmake
BuildRequires: gcc-c++
BuildRequires: kodi-devel >= %{version}
BuildRequires: platform-devel
@@ -44,16 +44,16 @@ developing applications that use %{name}.
%prep
-%autosetup -n %{name}-%{commit}
+%autosetup -p1 -n %{name}-%{commit}
%build
-%cmake3
-%cmake3_build
+%cmake
+%cmake_build
%install
-%cmake3_install
+%cmake_install
%ldconfig_scriptlets
@@ -71,6 +71,9 @@ developing applications that use %{name}.
%changelog
+* Fri Jan 27 2023 Leigh Scott <leigh123linux(a)gmail.com> -
18.0-0.13.20180302gite8574b8
+- Rebuilt for kodi-20
+
* Sun Aug 07 2022 RPM Fusion Release Engineering <sergiomb(a)rpmfusion.org> -
18.0-0.12.20180302gite8574b8
- Rebuilt for
https://fedoraproject.org/wiki/Fedora_37_Mass_Rebuild and ffmpeg
5.1