# Electron payload: stripping corrupts the embedded snapshot; rpm 6 also # fails on the empty debugsource list — see AGENTS.md %define debug_package %{nil} %global __strip /bin/true # Bundled Electron must not leak into rpm provides/requires %global __provides_exclude_from ^%{_libdir}/pear-desktop/.*$ %global __requires_exclude_from ^%{_libdir}/pear-desktop/.*$ ExclusiveArch: x86_64 aarch64 Name: pear-desktop Version: 3.12.0 Release: 1%{?dist} Summary: YouTube Music desktop app with plugins (Electron) License: MIT AND BSD-2-Clause AND BSD-3-Clause AND LGPL-2.1-or-later AND Apache-2.0 AND Zlib URL: https://github.com/pear-devs/pear-desktop Source0: https://github.com/pear-devs/pear-desktop/releases/download/v%{version}/youtube-music-%{version}.x86_64.rpm Source1: https://github.com/pear-devs/pear-desktop/releases/download/v%{version}/youtube-music-%{version}.aarch64.rpm Source2: https://raw.githubusercontent.com/pear-devs/pear-desktop/v%{version}/license BuildRequires: bsdtar BuildRequires: desktop-file-utils Requires: gtk3 Requires: nss Requires: libsecret Requires: alsa-lib Requires: libXScrnSaver %description YouTube Music Desktop App — a feature-rich Electron client for YouTube Music with plugins, from the pear-devs fork of th-ch/youtube-music. Bundles its own Electron runtime. %prep %setup -T -q -c %ifarch x86_64 bsdtar -xf %{SOURCE0} %else bsdtar -xf %{SOURCE1} %endif %build %install appdir=%{buildroot}%{_libdir}/pear-desktop install -d "$appdir" cp -a "opt/YouTube Music/." "$appdir"/ rm -f "$appdir"/resources/app-update.yml install -d %{buildroot}%{_bindir} cat > %{buildroot}%{_bindir}/pear-desktop < - 3.12.0-1 - Initial package