File chromium-plugin-widevinecdm.spec of Package chromium-plugin-widevinecdm

# spec file for package chromium-plugin-widevinecdm
# Copyright (c) 2016 Packman Team <>
# All modifications and additions to the file contributed by third parties
# remain the property of their copyright owners, unless otherwise agreed
# upon. The license for this file, and modifications and additions to the
# file, is the same license as for the pristine package itself (unless the
# license for the pristine package is not an Open Source License, in which
# case the license is the MIT License). An "Open Source License" is a
# license that conforms to the Open Source Definition (Version 1.9)
# published by the Open Source Initiative.

# Please submit bugfixes or comments via

# To find out the real version of Widevine CDM, do something like this.
# d="$(mktemp -d)" && rpm2cpio *.rpm|cpio -idmD"$d" && strings "$d"/opt/google/chrome/|grep -A3 widevine_cdm_version && rm -r "$d"
%define _chrome_version 78.0.3904.87
Name:           chromium-plugin-widevinecdm
Version:        4.10.1582.1
Release:        0
Summary:        Chromium Widevine CDM plugin
License:        NonFree
BuildRequires:  cpio
BuildRequires:  rpm
Requires:       chromium-browser
# chromium-widevinecdm-plugin was last used in openSUSE Leap 42.1.
Provides:       chromium-widevinecdm-plugin = 22.%{version}
Obsoletes:      chromium-widevinecdm-plugin < 22.%{version}
ExclusiveArch:  x86_64

Official Widevine CDM plugin for Google's FOSS browser Chromium.

%setup -q -c -T
rpm2cpio %{SOURCE0} | cpio -idmv

# Nothing to build.

mkdir -p %{buildroot}%{_libdir}/chromium/
cp -r opt/google/chrome/WidevineCdm %{buildroot}%{_libdir}/chromium/

%license opt/google/chrome/WidevineCdm/LICENSE
%dir %{_libdir}/chromium
%dir %{_libdir}/chromium/WidevineCdm
%dir %{_libdir}/chromium/WidevineCdm/_platform_specific
%dir %{_libdir}/chromium/WidevineCdm/_platform_specific/linux_x64