chromium-widevine: add symlink in %{_libdir}/chromium for qt6webengine; fetch latest version from openmamba repository

This commit is contained in:
Silvan Calarco 2022-06-24 22:45:13 +02:00
parent 72a5b53f6b
commit fa0e46533e
2 changed files with 7 additions and 2 deletions

View File

@ -43,6 +43,7 @@ bsdtar -x --strip-components 4 -f data.tar.xz opt/google/chrome/WidevineCdm
[ "%{buildroot}" != / ] && rm -rf %{buildroot}
install -d -m0755 %{buildroot}%{_libdir}/chromium/
cp -a WidevineCdm %{buildroot}%{_libdir}/chromium/
ln -s WidevineCdm/_platform_specific/linux_x64/libwidevinecdm.so %{buildroot}%{_libdir}/chromium/
#cp %{S:0} LICENSE
@ -59,9 +60,13 @@ rm -rf %{_builddir}/%{name}-*
%{_libdir}/chromium/WidevineCdm/manifest.json
%{_libdir}/chromium/WidevineCdm/LICENSE
%{_libdir}/chromium/WidevineCdm/_platform_specific/linux_x64/libwidevinecdm.so
%{_libdir}/chromium/libwidevinecdm.so
#%doc LICENSE
%changelog
* Fri Jun 24 2022 Silvan Calarco <silvan.calarco@mambasoft.it> @SRPMVERSION@-@SRPMRELEASE@
- provide symlink %{_libdir}/chromium/libwidevinecdm.so for QtWebengine based applications
* Sat Nov 02 2019 Silvan Calarco <silvan.calarco@mambasoft.it> @SRPMVERSION@-@SRPMRELEASE@
- make library available in the path searched by chromium 78+

View File

@ -41,8 +41,8 @@ if [ ! "$SRPMCHECK" -o "$SRPMCHECK" = "chromium-pepper-flash" ]; then
fi
# chromium-widevine
if [ "`uname -m`" == "x86_64" ]; then
SRPMVERSION["chromium-widevine"]="`rpm -q chromium | sed "s|chromium-\([0-9.]*\).*|\1|"`"
SRPMVERSION["chromium-widevine"]="`curl --max-time 20 -sL https://cdn.openmamba.org/pub/openmamba/devel/SRPMS.base/ | grep \"chromium-.*mamba.src.rpm\" | sed 's|.*\"chromium-\([0-9.]*\)-.*|\1|'`"
else
SRPMVERSION["chromium-widevine"]="0"
fi
SRPMRELEASE["chromium-widevine"]=3mamba
SRPMRELEASE["chromium-widevine"]=4mamba