File spotify-adblock.spec of Package spotify-adblock
#
# spec file for the obs build of spotify-adblock(-linux)
#
# Copyright (c) 2019-2020 github.com/abba23 (Developer) & 2020 github.com/sp1ritCS (OBS Package Maintainer)
#
# This program is free software: you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by
# the Free Software Foundation, either version 3 of the License, or
# (at your option) any later version.
#
# This program is distributed in the hope that it will be useful,
# but WITHOUT ANY WARRANTY; without even the implied warranty of
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
# GNU General Public License for more details.
#
# You should have received a copy of the GNU General Public License
# along with this program. If not, see <https://www.gnu.org/licenses/>.
Name: spotify-adblock
Version: 1.1.0
Release: 2
Group: Productivity/Multimedia/Sound/Players
License: GPL-3.0
Summary: Spotify adblocker for Linux
Url: https://github.com/abba23/spotify-adblock-linux
Source0: _service
Source1: spotify-adblock.desktop
Source2: cef.tar.bz2
Patch0: 0001-Suse-Fix.patch
Requires: spotify-client
BuildRequires: spotify
BuildRequires: hicolor-icon-theme
BuildRequires: make gcc tar bzip2
BuildRequires: pkgconfig(libcurl)
BuildRequires: update-desktop-files
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
%setup -q -n %_sourcedir/%name-linux-%version -T -D
patch < %{PATCH0}
ls -lah %_sourcedir
tar -xf %{SOURCE2} --wildcards '*/include' --strip-components=1
%build
make
%install
make DESTDIR=%{buildroot} LIBDIR=%{_libdir}/spotify TARGET=%{name} install
install -Dm644 %{SOURCE1} %{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
%changelog
* Sat Oct 3 23:37:00 CEST 2020 - sp1rit
- Added cef
- Now striping library
* Wed Jul 29 2020 sp1rit
- Initial Packaging