commit 42048a0d08d218e5c2342c5622c361bbb9414655
Author: Michael Cronenworth <mike(a)cchtml.com>
Date: Tue Sep 3 09:51:23 2019 -0500
Fix Python 2 search and drop SDL/SDL2
kodi.spec | 9 +++++++--
1 file changed, 7 insertions(+), 2 deletions(-)
---
diff --git a/kodi.spec b/kodi.spec
index c69627e..1c8b2b0 100644
--- a/kodi.spec
+++ b/kodi.spec
@@ -87,10 +87,9 @@ Patch5: kodi-18-python3-0002.patch
# Upstream does not support ppc64
ExcludeArch: %{power64}
-BuildRequires: SDL2-devel
-BuildRequires: SDL_image-devel
BuildRequires: a52dec-devel
BuildRequires: afpfs-ng-devel
+BuildRequires: alsa-lib-devel
BuildRequires: avahi-devel
BuildRequires: bluez-libs-devel
BuildRequires: boost-devel
@@ -138,6 +137,7 @@ BuildRequires: lame-devel
BuildRequires: lcms2-devel
BuildRequires: libXinerama-devel
BuildRequires: libXmu-devel
+BuildRequires: libXrandr-devel
BuildRequires: libXtst-devel
BuildRequires: libass-devel >= 0.9.7
%if 0%{?_with_libbluray}
@@ -381,6 +381,11 @@ pathfix.py -pni "%{__python2} %{py2_shbang_opts}" \
tools/EventClients/Clients/KodiSend/kodi-send.py \
tools/EventClients/lib/python/xbmcclient.py
+%if 0%{?fedora} < 32
+# Fix python binary search
+sed -i 's/ pkg_check_modules(PC_PYTHON python>=2.7 QUIET)/
pkg_check_modules(PC_PYTHON python=2.7 QUIET)/' cmake/modules/FindPython.cmake
+%endif
+
%build
mkdir {fedora-gbm,fedora-wayland,fedora-x11}