File spotify-adblock.spec of Package spotify-adblock
Name: spotify-adblock
Version: 1.0.3
Release: 0
Group: Productivity/Multimedia/Sound/Players
License: GPL-3.0
Summary: Spotify adblocker for Linux
Url: https://github.com/abba23/spotify-adblock-linux
Source0: %{name}-%{version}.tar.xz
Source1: vendor.tar.zst
Source2: spotify-adblock.desktop
BuildRequires: cargo-packaging
BuildRequires: hicolor-icon-theme
BuildRequires: update-desktop-files
Requires: spotify-client
Requires: hicolor-icon-theme
%description
Spotify adblocker for Linux that works by wrapping getaddrinfo and libcurl's curl_easy_setopt and blocking all domains that aren't whitelisted, as well as blacklisted URLs.
%prep
%autosetup -p1 -a1
sed -i 's|$(DESTDIR)$(PREFIX)/lib/$(NAME).so|$(DESTDIR)$(PREFIX)/$(NAME).so|g' Makefile
%build
make
%install
make DESTDIR=%{buildroot} PREFIX=%{_libdir}/spotify install
ls %{buildroot}/%{_libdir}/spotify
install -Dm644 %{SOURCE2} %{buildroot}%{_datadir}/applications/%{name}.desktop
%if 0%{?suse_version}
%suse_update_desktop_file %{name}
%endif
%files
%doc README.md
%license LICENSE
%dir %{_libdir}/spotify
%{_libdir}/spotify/%{name}.so
%{_datadir}/applications/%{name}.desktop
%dir /etc/%{name}
%config /etc/%{name}/config.toml
%changelog
* Fri Jan 14 13:00:00 CEST 2022 - maxiotis
- Moved to the new implementation based on rust
* Sat Oct 3 23:37:00 CEST 2020 - sp1rit
- Added cef
- Now striping library
* Wed Jul 29 2020 sp1rit
- Initial Packaging