commit bbbe42a6f00271d9f2aa2622dc9b53b0df5a0a77
Author: Jan Palus <[email protected]>
Date:   Tue Jan 17 01:02:25 2023 +0100

    avoid using network for building internal bento4

 bento4-hash.patch                    | 18 ++++++++++++++++++
 kodi-addon-inputstream-adaptive.spec |  9 +++++++++
 2 files changed, 27 insertions(+)
---
diff --git a/kodi-addon-inputstream-adaptive.spec 
b/kodi-addon-inputstream-adaptive.spec
index 47cf15a..9436ee4 100644
--- a/kodi-addon-inputstream-adaptive.spec
+++ b/kodi-addon-inputstream-adaptive.spec
@@ -6,6 +6,8 @@
 %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
@@ -14,6 +16,9 @@ License:      GPL v2+
 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
@@ -30,6 +35,10 @@ Kodi InputStream addon for several manifest types
 
 %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 \
diff --git a/bento4-hash.patch b/bento4-hash.patch
new file mode 100644
index 0000000..f4d721f
--- /dev/null
+++ b/bento4-hash.patch
@@ -0,0 +1,18 @@
+--- 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}
================================================================

---- gitweb:

http://git.pld-linux.org/gitweb.cgi/packages/kodi-addon-inputstream-adaptive.git/commitdiff/bbbe42a6f00271d9f2aa2622dc9b53b0df5a0a77

_______________________________________________
pld-cvs-commit mailing list
[email protected]
http://lists.pld-linux.org/mailman/listinfo/pld-cvs-commit

Reply via email to