File deadbeef-plugin-file-browser.spec of Package deadbeef-plugin-file-browser
#
# spec file for package deadbeef-plugin-file-browser
#
# Copyright (c) 2020 SUSE LLC
# Copyright (c) 2020 Hillwood Yang <hillwood@opensuse.org>
#
# All modifications and additions to the file contributed by third parties
# remain the property of their copyright owners, unless otherwise agreed
# upon. The license for this file, and modifications and additions to the
# file, is the same license as for the pristine package itself (unless the
# license for the pristine package is not an Open Source License, in which
# case the license is the MIT License). An "Open Source License" is a
# license that conforms to the Open Source Definition (Version 1.9)
# published by the Open Source Initiative.
# Please submit bugfixes or comments via https://bugs.opensuse.org/
#
%define _name deadbeef-fb
%define commit 355e6142606270e7ae0fd68d8fcdb3f1ada295ca
%define shortcommit 355e614
%define date 20180508
Name: deadbeef-plugin-file-browser
Version: 0.92+git%{date}.%{shortcommit}
Release: 0
Summary: File Browser plugin for the DeaDBeeF music player
License: GPL-2.0+
Group: Productivity/Multimedia/Sound/Players
URL: https://gitlab.com/zykure/deadbeef-fb
Source: https://gitlab.com/zykure/deadbeef-fb/-/archive/%{commit}/%{_name}-%{commit}.tar.gz
BuildRequires: autoconf >= 2.69
BuildRequires: automake
BuildRequires: deadbeef-devel
BuildRequires: libtool
BuildRequires: pkgconfig(gtk+-3.0)
Requires: deadbeef
Obsoletes: %{_name} <= %{version}
Provides: %{_name} = %{version}
Provides: deadbeef-file-browser-plugin = %{version}
Obsoletes: deadbeef-file-browser-plugin < %{version}
%description
This plugin aims to implement the MPRISv2 D-Bus interface for
DeaDBeeF for instance to integrate DeaDBeeF into Sound Menu.
%prep
%setup -q -n %{_name}-%{commit}
%build
autoreconf -fi
%configure --disable-static \
--enable-gtk3 \
--disable-gtk2
%make_build
%install
%make_install
rm -rf %{buildroot}%{_datadir}/doc
find %{buildroot} -type f -name "*.la" -delete -print
%files
%defattr(-,root,root)
%doc README NEWS INSTALL AUTHORS ChangeLog version
%license LICENSE
%{_libdir}/deadbeef/
%changelog