# Generated by rust2rpm 26 %bcond_without check # prevent library files from being installed %global cargo_install_lib 0 # disable debug package generation %global debug_package %{nil} Name: spotify-adblock Version: 1.0.3 %global forgeurl https://github.com/abba23/%{name} %global commit 813d3451c53126bf1941baaf8dd37f1152c3f412 %global date 20250313 %forgemeta Release: 1%{?dist}.3sunshine Summary: Adblocker for Spotify License: GPL-3.0 URL: %forgeurl Source0: %forgesource Source1: spotify-adblock.desktop BuildRequires: cargo-rpm-macros >= 26 Requires: spotify-client ExclusiveArch: x86_64 %global _description %{expand: Spotify adblocker for Linux (macOS untested) that works by wrapping getaddrinfo and cef_urlrequest_create. It blocks requests to domains that are not on the allowlist, as well as URLs that are on the denylist.} %description %{_description} %prep %forgeautosetup -p1 %cargo_prep %generate_buildrequires %cargo_generate_buildrequires %build %cargo_build %{cargo_license_summary} %{cargo_license} > LICENSE.dependencies %install install -D --mode=644 --strip target/release/libspotifyadblock.so %{buildroot}%{_libdir}/%{name}.so install -D --mode=644 config.toml %{buildroot}%{_sysconfdir}/%{name}/config.toml install -D --mode=644 %SOURCE1 %{buildroot}%{_datadir}/applications/%{name}.desktop %if %{with check} %check %cargo_test %endif %files %license LICENSE %license LICENSE.dependencies %doc README.md %{_libdir}/%{name}.so %{_sysconfdir}/%{name}/config.toml %{_datadir}/applications/%{name}.desktop %changelog * Sat Mar 14 2026 Moritz Barsnick 1.0.3-1.20250313git813d345.3sunshine - update to latest git commit * Sun Nov 02 2025 Moritz Barsnick 1.0.3-1.20250210git8e0312d.2sunshine - fix icon reference in desktop file * Sat Nov 01 2025 Moritz Barsnick 1.0.3-1.20250210git8e0312d.1sunshine - update to latest git commit for last.fm - build only for x86_64, like the client * Fri Aug 15 2025 Moritz Barsnick 1.20240915git7391666 - initial build from Fedora Copr hazel-bunny/ports