--- /dev/null
+--- inputstream.adaptive-20.3.2-Nexus/FindBento4.cmake.orig 2023-01-11 22:37:47.000000000 +0100
++++ inputstream.adaptive-20.3.2-Nexus/FindBento4.cmake 2023-01-17 00:58:34.052783728 +0100
+@@ -13,6 +13,7 @@
+ include(ExternalProject)
+ file(STRINGS ${CMAKE_SOURCE_DIR}/depends/common/bento4/bento4.txt bentourl REGEX "^bento4[\t ]*.+$")
+ string(REGEX REPLACE "^bento4[\t ]*(.+)[\t ]*$" "\\1" url "${bentourl}")
++ file(STRINGS ${CMAKE_SOURCE_DIR}/depends/common/bento4/bento4.sha256 BENTO4_HASH)
+
+ # allow user to override the download URL with a local tarball
+ # needed for offline build envs
+@@ -39,6 +40,7 @@
+ set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -fPIC")
+ externalproject_add(bento4
+ URL ${BENTO4_URL}
++ URL_HASH SHA256=${BENTO4_HASH}
+ DOWNLOAD_DIR ${CMAKE_BINARY_DIR}/download
+ PREFIX ${CMAKE_BINARY_DIR}/bento4
+ PATCH_COMMAND ${PATCH_COMMAND}
%define codename Nexus
%define addon inputstream.adaptive
+%define bento4_ver 1.6.0-639-5-Nexus
+
Summary: Kodi InputStream addon for several manifest types
Name: kodi-addon-inputstream-adaptive
Version: %{kodi_ver}.3.2
Group: Applications/Multimedia
Source0: https://github.com/xbmc/inputstream.adaptive/archive/%{version}-%{codename}/%{version}-%{codename}.tar.gz
# Source0-md5: aa5a2232ad124d725f66963dbfb0b8cc
+Source1: https://github.com/xbmc/Bento4/archive/%{bento4_ver}/Bento4-%{bento4_ver}.tar.gz
+# Source1-md5: 4e7e9c3384c5bd1ccadb24dbf2a6e936
+Patch0: bento4-hash.patch
URL: https://github.com/xbmc/inputstream.adaptive
BuildRequires: cmake >= 3.10
BuildRequires: expat-devel
%prep
%setup -q -n %{addon}-%{version}-%{codename}
+%patch0 -p1
+
+install -d build/download
+cp -p %{SOURCE1} build/download/%{bento4_ver}.tar.gz
%build
%cmake -B build \