From 04f467f21111f2fc731a7aad6aa9fa77ec16dd51 Mon Sep 17 00:00:00 2001 From: Raboneko <119771935+raboneko@users.noreply.github.com> Date: Wed, 16 Jul 2025 01:44:47 -0700 Subject: [PATCH] add: deadbeef-mpris2-plugin (#5654) (#5864) (cherry picked from commit dc316a34c14e10bcc93461c0e30c1e3140f041f2) Co-authored-by: madomado --- .../deadbeef-mpris2-plugin/anda.hcl | 8 +++ .../deadbeef-mpris2-plugin.spec | 51 +++++++++++++++++++ .../deadbeef-mpris2-plugin/update.rhai | 1 + 3 files changed, 60 insertions(+) create mode 100644 anda/multimedia/deadbeef-mpris2-plugin/anda.hcl create mode 100644 anda/multimedia/deadbeef-mpris2-plugin/deadbeef-mpris2-plugin.spec create mode 100644 anda/multimedia/deadbeef-mpris2-plugin/update.rhai diff --git a/anda/multimedia/deadbeef-mpris2-plugin/anda.hcl b/anda/multimedia/deadbeef-mpris2-plugin/anda.hcl new file mode 100644 index 0000000000..bf918c3026 --- /dev/null +++ b/anda/multimedia/deadbeef-mpris2-plugin/anda.hcl @@ -0,0 +1,8 @@ +project pkg { + rpm { + spec = "deadbeef-mpris2-plugin.spec" + } + labels { + subrepo = "extras" + } +} diff --git a/anda/multimedia/deadbeef-mpris2-plugin/deadbeef-mpris2-plugin.spec b/anda/multimedia/deadbeef-mpris2-plugin/deadbeef-mpris2-plugin.spec new file mode 100644 index 0000000000..d5ae65c335 --- /dev/null +++ b/anda/multimedia/deadbeef-mpris2-plugin/deadbeef-mpris2-plugin.spec @@ -0,0 +1,51 @@ +#? https://github.com/rpmfusion/deadbeef-mpris2-plugin/ + +Name: deadbeef-mpris2-plugin +Version: 1.16 +Release: 1%{?dist} +Summary: MPRISv2 plugin for the DeaDBeeF music player + +License: GPLv2+ +URL: https://github.com/DeaDBeeF-Player/%{name} +Source0: %{url}/archive/v%{version}/%{name}-%{version}.tar.gz + +# Build for armv7hl failed +# https://github.com/DeaDBeeF-Player/deadbeef/issues/2538 +ExcludeArch: armv7hl + +BuildRequires: gcc +BuildRequires: automake +BuildRequires: libtool +BuildRequires: glib2-devel +BuildRequires: deadbeef-devel + +Requires: deadbeef%{?_isa} + +%description +This plugin aims to implement the MPRISv2 for DeaDBeeF. + +The original MPRIS plugin for DeaDBeef does not work anymore and seems +to be orphaned. The original plugin supported MPRISv1 AND MPRISv2. This plugin +will only support version two. + +%prep +%autosetup +autoreconf -fiv + + +%build +%configure \ + --disable-silent-rules \ + --disable-static +%{make_build} + + +%install +%{make_install} +rm %{buildroot}%{_libdir}/deadbeef/mpris.*a + + +%files +%doc README +%license LICENSE +%{_libdir}/deadbeef/mpris.* diff --git a/anda/multimedia/deadbeef-mpris2-plugin/update.rhai b/anda/multimedia/deadbeef-mpris2-plugin/update.rhai new file mode 100644 index 0000000000..39ede3b80e --- /dev/null +++ b/anda/multimedia/deadbeef-mpris2-plugin/update.rhai @@ -0,0 +1 @@ +rpm.version(gh_tag("DeaDBeeF-Player/deadbeef-mpris2-plugin"));