## START: Set by rpmautospec ## (rpmautospec version 0.6.0) ## RPMAUTOSPEC: autorelease, autochangelog %define autorelease(e:s:pb:n) %{?-p:0.}%{lua: release_number = 1; base_release_number = tonumber(rpm.expand("%{?-b*}%{!?-b:1}")); print(release_number + base_release_number - 1); }%{?-e:.%{-e*}}%{?-s:.%{-s*}}%{!?-n:%{?dist}} ## END: Set by rpmautospec %global date 20240812 %global commit eab8c668ad3f9db27a444ee1f94b82d8f3ab5336 %global shortcommit %(c=%{commit}; echo ${c:0:7}) %global debug_package %{nil} Name: widevine-installer Version: 0^%{date}git%{shortcommit} Release: %autorelease Summary: Widevine CDM installer for aarch64 systems License: MIT URL: https://github.com/AsahiLinux/widevine-installer Source: %{url}/archive/%{commit}/%{name}-%{commit}.tar.gz BuildRequires: bash BuildRequires: coreutils BuildRequires: systemd-rpm-macros BuildRequires: sed Requires: bash Requires: coreutils Requires: curl Requires: glibc >= 2.36 Requires: python3 Requires: setup Requires: squashfs-tools Requires: systemd Enhances: chromium Enhances: firefox Enhances: qt5-webengine Enhances: qt6-webengine ExclusiveArch: aarch64 %description This tool will download and install Widevine systemwide for aarch64 systems. It performs the necessary configuration changes to make Widevine available for both Firefox and Chromium-based browsers. %prep %autosetup -p1 -n %{name}-%{commit} # Configs are already installed by the package sed -i 's/COPY_CONFIGS=1/COPY_CONFIGS=0/' widevine-installer %build # Nothing to build %install DESTDIR="%{buildroot}" ./widevine-installer --distinstall %files %license LICENSE %doc README.md %{_bindir}/%{name} %{_libexecdir}/%{name}/ %dir %{_libdir}/chromium-browser %{_libdir}/chromium-browser/WidevineCdm %dir %{_libdir}/firefox %dir %{_libdir}/firefox/defaults %dir %{_libdir}/firefox/defaults/pref %{_libdir}/firefox/defaults/pref/gmpwidevine.js %{_environmentdir}/50-gmpwidevine.conf %dir %{_sharedstatedir}/widevine %dir %ghost %{_sharedstatedir}/widevine/gmp-widevinecdm %dir %ghost %{_sharedstatedir}/widevine/gmp-widevinecdm/system-installed %ghost %{_sharedstatedir}/widevine/gmp-widevinecdm/system-installed/libwidevinecdm.so %ghost %{_sharedstatedir}/widevine/gmp-widevinecdm/system-installed/manifest.json %ghost %{_sharedstatedir}/widevine/libwidevinecdm.so %ghost %{_sharedstatedir}/widevine/LICENSE %ghost %{_sharedstatedir}/widevine/manifest.json %{_sharedstatedir}/widevine/README %dir %ghost %{_sharedstatedir}/widevine/WidevineCdm %ghost %{_sharedstatedir}/widevine/WidevineCdm/manifest.json %dir %ghost %{_sharedstatedir}/widevine/WidevineCdm/_platform_specific %dir %ghost %{_sharedstatedir}/widevine/WidevineCdm/_platform_specific/linux_arm64 %ghost %{_sharedstatedir}/widevine/WidevineCdm/_platform_specific/linux_arm64/libwidevinecdm.so %dir %ghost %{_sharedstatedir}/widevine/WidevineCdm/_platform_specific/linux_x64 %ghost %{_sharedstatedir}/widevine/WidevineCdm/_platform_specific/linux_x64/libwidevinecdm.so %config(noreplace) %{_sysconfdir}/profile.d/gmpwidevine.sh %changelog ## START: Generated by rpmautospec * Sun Aug 11 2024 Hector Martin - 0^20240812giteab8c66-1 - Bump to latest commit again; Hopefully fixes: RHBZ#2250529 * Sun Aug 11 2024 Hector Martin - 0^20240811git1923815-1 - Bump to latest commit; Fixes: RHBZ#2250529 * Sat Jul 20 2024 Fedora Release Engineering - 0^20231031git8fa12dd-5 - Rebuilt for https://fedoraproject.org/wiki/Fedora_41_Mass_Rebuild * Sat Jan 27 2024 Fedora Release Engineering - 0^20231031git8fa12dd-4 - Rebuilt for https://fedoraproject.org/wiki/Fedora_40_Mass_Rebuild * Sat Dec 16 2023 Hector Martin - 0^20231031git8fa12dd-3 - Revert "Use environment.d instead of the bash profile; Fixes: RHBZ#2250529" * Tue Nov 28 2023 Davide Cavalca - 0^20231031git8fa12dd-2 - Use environment.d instead of the bash profile; Fixes: RHBZ#2250529 * Sun Nov 12 2023 Davide Cavalca - 0^20231031git8fa12dd-1 - Initial import; Fixes: RHBZ#2247277 ## END: Generated by rpmautospec