From 12cf5bc81c19def17c6a8f0c13fd4d328079df95 Mon Sep 17 00:00:00 2001 From: Raboneko <119771935+raboneko@users.noreply.github.com> Date: Sat, 28 Feb 2026 13:05:48 -0800 Subject: [PATCH] add: spotify-launcher (#10129) (#10165) --- anda/apps/spotify-launcher/anda.hcl | 6 ++ .../spotify-launcher/spotify-launcher.spec | 77 +++++++++++++++++++ anda/apps/spotify-launcher/update.rhai | 1 + 3 files changed, 84 insertions(+) create mode 100644 anda/apps/spotify-launcher/anda.hcl create mode 100644 anda/apps/spotify-launcher/spotify-launcher.spec create mode 100644 anda/apps/spotify-launcher/update.rhai diff --git a/anda/apps/spotify-launcher/anda.hcl b/anda/apps/spotify-launcher/anda.hcl new file mode 100644 index 0000000000..1da498eab1 --- /dev/null +++ b/anda/apps/spotify-launcher/anda.hcl @@ -0,0 +1,6 @@ +project pkg { + arches = ["x86_64"] + rpm { + spec = "spotify-launcher.spec" + } +} diff --git a/anda/apps/spotify-launcher/spotify-launcher.spec b/anda/apps/spotify-launcher/spotify-launcher.spec new file mode 100644 index 0000000000..a9719b76f4 --- /dev/null +++ b/anda/apps/spotify-launcher/spotify-launcher.spec @@ -0,0 +1,77 @@ +%undefine __brp_add_determinism +# disable debuginfo subpackage +%global debug_package %{nil} +# Disable build-id symlinks to avoid conflicts +%global _build_id_links none +# don't strip bundled binaries because pycharm checks length (!!!) of binary fsnotif +# and if you strip debug stuff from it, it will complain +%global __strip /bin/true +# disable rpath checks +%define __brp_check_rpaths %{nil} +%define _missing_build_ids_terminate_build 0 + +Name: spotify-launcher +Version: 0.6.5 +Release: 1%?dist +Summary: Client for spotify's apt repository in Rust +License: Apache-2.0 AND MIT AND ((Apache-2.0 OR MIT) AND BSD-3-Clause) AND ((MIT OR Apache-2.0) AND Unicode-3.0) AND (Apache-2.0 OR ISC OR MIT) AND (Apache-2.0 WITH LLVM-exception OR Apache-2.0 OR MIT) AND BSD-3-Clause AND CDLA-Permissive-2.0 AND ISC AND (ISC AND (Apache-2.0 OR ISC)) AND (ISC AND (Apache-2.0 OR ISC) AND OpenSSL) AND (MIT OR Apache-2.0) AND (MIT OR Apache-2.0 OR LGPL-2.1-or-later) AND MPL-2.0 AND Unicode-3.0 AND (Unlicense OR MIT) AND Zlib +Packager: veuxit +ExclusiveArch: x86_64 +URL: https://github.com/kpcyrd/spotify-launcher + +Source0: https://github.com/kpcyrd/spotify-launcher/archive/refs/tags/v%{version}.tar.gz + +BuildRequires: cargo cargo-rpm-macros anda-srpm-macros pkgconfig(liblzma) desktop-file-utils +Requires: sequoia-sqv zenity alsa-lib gtk3 desktop-file-utils openssl nss at-spi2-atk libcurl libSM + + +%description +%{summary}. + +%prep +%autosetup -n %{name}-%{version} +%cargo_prep_online + +%build +%{cargo_build} --locked + +%install + +install -Dm755 target/release/spotify-launcher %{buildroot}%{_bindir}/spotify-launcher + +install -Dm644 data/pubkey_5384CE82BA52C83A.gpg %{buildroot}/%{_datadir}/spotify-launcher/keyring.pgp + +install -Dm644 contrib/spotify-launcher.desktop %{buildroot}%{_appsdir}/spotify-launcher.desktop + +install -Dm644 contrib/icons/spotify-linux-256.png "%{buildroot}/%{_datadir}/pixmaps/spotify-launcher.png" + +install -Dm644 contrib/spotify-launcher.conf %{buildroot}%{_sysconfdir}/spotify-launcher.conf + +for size in 22 24 32 48 64 128 256 512; do + install -Dm644 contrib/icons/spotify-linux-${size}.png %{buildroot}%{_hicolordir}/${size}x${size}/apps/spotify-launcher.png +done +%{cargo_license_online} > LICENSE.dependencies + +%check +%desktop_file_validate %{buildroot}%{_appsdir}/spotify-launcher.desktop + +%files +%{_appsdir}/%{name}.desktop +%{_sysconfdir}/spotify-launcher.conf +%{_datadir}/pixmaps/spotify-launcher.png +%{_hicolordir}/22x22/apps/spotify-launcher.png +%{_hicolordir}/24x24/apps/spotify-launcher.png +%{_hicolordir}/32x32/apps/spotify-launcher.png +%{_hicolordir}/48x48/apps/spotify-launcher.png +%{_hicolordir}/64x64/apps/spotify-launcher.png +%{_hicolordir}/128x128/apps/spotify-launcher.png +%{_hicolordir}/256x256/apps/spotify-launcher.png +%{_hicolordir}/512x512/apps/spotify-launcher.png +%{_bindir}/spotify-launcher +%{_datadir}/spotify-launcher/keyring.pgp +%license LICENSE-MIT LICENSE-APACHE LICENSE.dependencies +%doc README.md + +%changelog +* Fri Feb 27 2026 veux - 0.6.5 +- Initial package release diff --git a/anda/apps/spotify-launcher/update.rhai b/anda/apps/spotify-launcher/update.rhai new file mode 100644 index 0000000000..0d5499301d --- /dev/null +++ b/anda/apps/spotify-launcher/update.rhai @@ -0,0 +1 @@ +rpm.version(gh("kpcyrd/spotify-launcher")); \ No newline at end of file