chromium-widevine: install library in the path searched by chromium 78+

This commit is contained in:
Silvan Calarco 2019-11-02 10:36:53 +01:00
parent d4877620a8
commit dcd328ba42
3 changed files with 10 additions and 4 deletions

View File

@ -42,8 +42,10 @@ rpm2cpio ${tmpdir}/${CHROMIUM_WIDEVINE_PCK}|cpio -id
%install %install
[ "%{buildroot}" != / ] && rm -rf %{buildroot} [ "%{buildroot}" != / ] && rm -rf %{buildroot}
install -d -m0755 %{buildroot}%{_libdir}/chromium install -d -m0755 %{buildroot}%{_libdir}/chromium/WidevineCdm/_platform_specific/linux_x64
install -D -m0755 opt/google/chrome/WidevineCdm/_platform_specific/linux_x64/libwidevinecdm.so %{buildroot}%{_libdir}/chromium/libwidevinecdm.so install -D -m0755 opt/google/chrome/WidevineCdm/_platform_specific/linux_x64/libwidevinecdm.so %{buildroot}%{_libdir}/chromium/WidevineCdm/_platform_specific/linux_x64/libwidevinecdm.so
ln -s WidevineCdm/_platform_specific/linux_x64/libwidevinecdm.so %{buildroot}%{_libdir}/chromium/libwidevinecdm.so
cp %{S:0} LICENSE cp %{S:0} LICENSE
rm -fr ${tmpdir} rm -fr ${tmpdir}
@ -56,8 +58,12 @@ rm -rf %{_builddir}/%{name}-*
%files %files
%defattr(-,root,root) %defattr(-,root,root)
%{_libdir}/chromium/libwidevinecdm.so %{_libdir}/chromium/libwidevinecdm.so
%{_libdir}/chromium/WidevineCdm/_platform_specific/linux_x64/libwidevinecdm.so
%doc LICENSE %doc LICENSE
%changelog %changelog
* Sat Nov 02 2019 Silvan Calarco <silvan.calarco@mambasoft.it> @SRPMVERSION@-@SRPMRELEASE@
- make library available in the path searched by chromium 78+
* Sat Jun 16 2018 Silvan Calarco <silvan.calarco@mambasoft.it> @SRPMVERSION@-@SRPMRELEASE@ * Sat Jun 16 2018 Silvan Calarco <silvan.calarco@mambasoft.it> @SRPMVERSION@-@SRPMRELEASE@
- first build for chromium-widevine - first build for chromium-widevine

View File

@ -45,4 +45,4 @@ if [ "`uname -m`" == "x86_64" ]; then
else else
SRPMVERSION["chromium-widevine"]="0" SRPMVERSION["chromium-widevine"]="0"
fi fi
SRPMRELEASE["chromium-widevine"]=1mamba SRPMRELEASE["chromium-widevine"]=2mamba

View File

@ -1 +1 @@
VERSION = 4.95.1 VERSION = 4.95.2