# Bundled JVM runtime + prebuilt native launcher shipped as-is by upstream # (desktop builds only exist via Conveyor AppImage): a -bin payload %global debug_package %{nil} %global __strip /bin/true # Bundled runtime must not leak into rpm provides/requires %global __provides_exclude_from ^%{_libdir}/%{name}/.*$ %global __requires_exclude_from ^%{_libdir}/%{name}/.*$ ExclusiveArch: x86_64 Name: simpmusic Version: 2.3.0 Release: 1%{?dist} Summary: Simple and FOSS YouTube Music client built with Compose Multiplatform License: GPL-3.0-only URL: https://github.com/maxrave-dev/SimpMusic Source0: %{url}/releases/download/v%{version}/SimpMusic-x86_64.AppImage Source1: simpmusic.desktop Source2: %{url}/raw/v%{version}/LICENSE BuildRequires: desktop-file-utils %description SimpMusic is a free and open source music player using YouTube Music as its backend: streaming, playlists, lyrics, local caching and synchronized playback, with a Compose Multiplatform UI. This package ships the upstream desktop build with its bundled JVM runtime. %prep %setup -T -q -c cp %{SOURCE2} LICENSE cp %{SOURCE0} app.AppImage chmod +x app.AppImage ./app.AppImage --appimage-extract >/dev/null # upstream AppRun writes to the user's home at startup; RPM installs the # desktop file and icon itself and ships a clean launcher instead rm squashfs-root/AppRun %build %install install -d -m 0755 %{buildroot}%{_libdir}/%{name} cp -a squashfs-root/. %{buildroot}%{_libdir}/%{name}/ install -Dpm 0755 /dev/null %{buildroot}%{_bindir}/%{name} cat > %{buildroot}%{_bindir}/%{name} <<'EOF' #!/bin/sh # glibc arena cap from upstream's AppRun: JVM holds many idle 64MB arenas otherwise export MALLOC_ARENA_MAX=2 exec %{_libdir}/%{name}/bin/%{name} "$@" EOF install -Dpm 0644 %{SOURCE1} %{buildroot}%{_datadir}/applications/%{name}.desktop install -Dpm 0644 squashfs-root/simpmusic.png %{buildroot}%{_datadir}/icons/hicolor/256x256/apps/%{name}.png desktop-file-validate %{buildroot}%{_datadir}/applications/%{name}.desktop %files %license LICENSE %{_bindir}/%{name} %{_libdir}/%{name}/ %{_datadir}/applications/%{name}.desktop %{_datadir}/icons/hicolor/256x256/apps/%{name}.png %changelog * Wed Oct 21 2026 Caio Bruno - 2.3.0-1 - Initial package