Blob Blame History Raw
#
# spec file for package deadbeef-plugin-mpris2
#
# Copyright (c) 2023 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-mpris2-plugin
Name:           deadbeef-plugin-mpris2
Version:        1.16
Release:        0
Summary:        MPRISv2 plugin for the DeaDBeeF music player
License:        GPL-3.0-or-later
Group:          Productivity/Multimedia/Sound/Players
URL:            https://github.com/DeaDBeeF-Player/deadbeef-mpris2-plugin
Source:         %{url}/archive/refs/tags/v%{version}.tar.gz#/%{_name}-%{version}.tar.gz
BuildRequires:  autoconf >= 2.69
BuildRequires:  automake
BuildRequires:  deadbeef-devel >= 0.6.2
BuildRequires:  libtool
BuildRequires:  pkg-config
BuildRequires:  pkgconfig(gio-2.0)
BuildRequires:  pkgconfig(glib-2.0)
BuildRequires:  pkgconfig(gthread-2.0)
Requires:       deadbeef >= 0.6.2
Obsoletes:      %{_name} < %{version}
Provides:       %{_name} = %{version}
Provides:       deadbeef-MPRIS-plugin = %{version}
Obsoletes:      deadbeef-MPRIS-plugin < %{version}
ExcludeArch:    %ix86

%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}-%{version}

%build
autoreconf -fi
%configure --disable-static
%make_build

%install
%make_install
find %{buildroot} -type f -name "*.la" -delete -print

%files
%doc README
%license LICENSE
%{_libdir}/deadbeef/

%changelog