2018-06-16 01:40:31 +02:00
|
|
|
Name: chromium-widevine
|
|
|
|
Version: @SRPMVERSION@
|
|
|
|
Release: @SRPMRELEASE@
|
|
|
|
Summary: Google Chrome's Widevine plugin for Chromium
|
|
|
|
Group: Applications/Web
|
|
|
|
Vendor: @vendor@
|
|
|
|
Distribution: @distribution@
|
|
|
|
Packager: Silvan Calarco <silvan.calarco@mambasoft.it>
|
|
|
|
URL: https://www.widevine.com/
|
|
|
|
Source: LICENSE
|
|
|
|
License: Non Distributable
|
|
|
|
# NOTE: requires the backward compatible version of the libstdc++ library
|
|
|
|
BuildRoot: %{_tmppath}/%{name}-%{version}-root
|
|
|
|
|
|
|
|
%description
|
|
|
|
Google Chrome's Widevine plugin for Chromium.
|
|
|
|
|
|
|
|
%prep
|
|
|
|
%setup -c -n %{name}-%{version} -T
|
|
|
|
|
|
|
|
[ -r /etc/sysconfig/@sysconfigfile@ ] || exit 1
|
|
|
|
declare -A SRPMVERSION SRPMRELEASE
|
|
|
|
. /etc/sysconfig/@sysconfigfile@
|
|
|
|
|
|
|
|
[ "${CHROMIUM_WIDEVINE_PCK}" ] || exit 1
|
|
|
|
[ "${CHROMIUM_WIDEVINE_URL}" ] || \
|
|
|
|
CHROMIUM_WIDEVINE_URL="https://dl.google.com/linux/direct/"
|
|
|
|
|
|
|
|
tmpdir=$(mktemp -q -d -t chromium-widevine.XXXXXXXX)
|
|
|
|
[ $? -eq 0 ] || exit 1
|
|
|
|
|
|
|
|
[ -f ${tmpdir}/${WIDEVINE_PCK} ] ||
|
|
|
|
wget -nv --timeout=10 --tries=2 \
|
|
|
|
${CHROMIUM_WIDEVINE_URL}${CHROMIUM_WIDEVINE_PCK} -O ${tmpdir}/${CHROMIUM_WIDEVINE_PCK}
|
|
|
|
[ -f ${tmpdir}/${CHROMIUM_WIDEVINE_PCK} ] || exit 1
|
|
|
|
|
2020-03-04 13:19:09 +01:00
|
|
|
ar x ${tmpdir}/${CHROMIUM_WIDEVINE_PCK}
|
|
|
|
bsdtar -x --strip-components 4 -f data.tar.xz opt/google/chrome/WidevineCdm
|
2018-06-16 01:40:31 +02:00
|
|
|
|
|
|
|
%build -q
|
|
|
|
|
|
|
|
%install
|
|
|
|
[ "%{buildroot}" != / ] && rm -rf %{buildroot}
|
2020-03-04 13:19:09 +01:00
|
|
|
install -d -m0755 %{buildroot}%{_libdir}/chromium/
|
|
|
|
cp -a WidevineCdm %{buildroot}%{_libdir}/chromium/
|
2022-06-24 22:45:13 +02:00
|
|
|
ln -s WidevineCdm/_platform_specific/linux_x64/libwidevinecdm.so %{buildroot}%{_libdir}/chromium/
|
2019-11-02 10:36:53 +01:00
|
|
|
|
2020-03-04 13:19:09 +01:00
|
|
|
#cp %{S:0} LICENSE
|
2018-06-16 01:40:31 +02:00
|
|
|
|
|
|
|
rm -fr ${tmpdir}
|
|
|
|
|
|
|
|
%clean
|
|
|
|
[ "%{buildroot}" != / ] && rm -rf %{buildroot}
|
|
|
|
rm -rf %{_builddir}/%{name}-*
|
|
|
|
:
|
|
|
|
|
|
|
|
%files
|
|
|
|
%defattr(-,root,root)
|
2020-02-17 13:38:33 +01:00
|
|
|
%dir %{_libdir}/chromium/WidevineCdm
|
|
|
|
%{_libdir}/chromium/WidevineCdm/manifest.json
|
2020-03-04 13:19:09 +01:00
|
|
|
%{_libdir}/chromium/WidevineCdm/LICENSE
|
2019-11-02 10:36:53 +01:00
|
|
|
%{_libdir}/chromium/WidevineCdm/_platform_specific/linux_x64/libwidevinecdm.so
|
2022-06-24 22:45:13 +02:00
|
|
|
%{_libdir}/chromium/libwidevinecdm.so
|
2020-03-04 13:19:09 +01:00
|
|
|
#%doc LICENSE
|
2018-06-16 01:40:31 +02:00
|
|
|
|
|
|
|
%changelog
|
2022-06-24 22:45:13 +02:00
|
|
|
* Fri Jun 24 2022 Silvan Calarco <silvan.calarco@mambasoft.it> @SRPMVERSION@-@SRPMRELEASE@
|
|
|
|
- provide symlink %{_libdir}/chromium/libwidevinecdm.so for QtWebengine based applications
|
|
|
|
|
2019-11-02 10:36:53 +01:00
|
|
|
* Sat Nov 02 2019 Silvan Calarco <silvan.calarco@mambasoft.it> @SRPMVERSION@-@SRPMRELEASE@
|
|
|
|
- make library available in the path searched by chromium 78+
|
|
|
|
|
2018-06-16 01:40:31 +02:00
|
|
|
* Sat Jun 16 2018 Silvan Calarco <silvan.calarco@mambasoft.it> @SRPMVERSION@-@SRPMRELEASE@
|
|
|
|
- first build for chromium-widevine
|