- update to 0.35:
* fix null pointer dereference on bad status format
* add "%kbitrate%", "%audioformat%", "%samplerate%", "%bits%"
and "%channels%" options to the "status" command
* the "%state%" option of the "status" command now returns
"stopped" when the MPD server is stopped
* add commands "lsdirs", "addplaylist", "delplaylist",
"moveplaylist", "renplaylist", "clearplaylist"
* add "playlist" option "--with-prio"
* bash completion: pass "--" to mpc to allow parameters with
dash
* bash completion: fix filenames with paranetheses
* bash completion: override $MPC_FORMAT
OBS-URL: https://build.opensuse.org/request/show/1135527
OBS-URL: https://build.opensuse.org/package/show/multimedia:apps/mpclient?expand=0&rev=10
64 lines
1.9 KiB
RPMSpec
64 lines
1.9 KiB
RPMSpec
#
|
|
# spec file for package mpclient
|
|
#
|
|
# Copyright (c) 2023 SUSE LLC
|
|
# Copyright (c) 2012 Pascal Bleser <pascal.bleser@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/
|
|
#
|
|
|
|
|
|
Name: mpclient
|
|
Version: 0.35
|
|
Release: 0
|
|
Summary: A minimalist command line interface to MPD
|
|
License: GPL-2.0-or-later
|
|
URL: https://musicpd.org
|
|
Source0: https://musicpd.org/download/mpc/0/mpc-%{version}.tar.xz
|
|
BuildRequires: meson >= 0.47.2
|
|
BuildRequires: ninja
|
|
BuildRequires: pkgconfig
|
|
BuildRequires: python3-Sphinx
|
|
BuildRequires: rsync
|
|
BuildRequires: pkgconfig(libmpdclient) >= 2.16
|
|
|
|
%description
|
|
A client for MPD, the Music Player Daemon. mpc connects to a MPD
|
|
running on a machine via a network. Accepts input on standard input,
|
|
so can be easily used in scripts.
|
|
|
|
%prep
|
|
%setup -q -n mpc-%{version}
|
|
|
|
%build
|
|
%meson
|
|
%meson_build
|
|
|
|
%install
|
|
%meson_install
|
|
install -pm0755 contrib/mpd-pls-handler.sh %{buildroot}%{_bindir}/mpd-pls-handler
|
|
install -pm0755 contrib/mpd-m3u-handler.sh %{buildroot}%{_bindir}/mpd-m3u-handler
|
|
install -Dpm0644 contrib/mpc-completion.bash %{buildroot}%{_datadir}/bash-completion/completions/%{name}
|
|
rm -r %{buildroot}%{_datadir}/doc
|
|
|
|
%check
|
|
%meson_test
|
|
|
|
%files
|
|
%license COPYING
|
|
%doc NEWS README.rst
|
|
%config %{_datadir}/bash-completion/completions/%{name}
|
|
%{_bindir}/{mpc,mpd-*}
|
|
%{_mandir}/man1/mpc.1%{?ext_man}
|
|
|
|
%changelog
|