64 lines
1.9 KiB
RPMSpec
64 lines
1.9 KiB
RPMSpec
#
|
|
# spec file for package mpclient
|
|
#
|
|
# Copyright (c) 2025 SUSE LLC
|
|
#
|
|
# 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 short_name mpc
|
|
Name: mpclient
|
|
Version: 0.35+git20241231.99b44b4
|
|
Release: 0
|
|
Summary: A minimalist command line interface to MPD
|
|
License: GPL-2.0-or-later
|
|
URL: https://musicpd.org
|
|
Source0: %{short_name}-%{version}.tar.gz
|
|
BuildRequires: meson
|
|
BuildRequires: ninja
|
|
BuildRequires: pkgconfig
|
|
BuildRequires: python3-Sphinx
|
|
BuildRequires: rsync
|
|
BuildRequires: pkgconfig(libmpdclient)
|
|
|
|
%description
|
|
A client for MPD, the Music Player Daemon. %{short_name} 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 %{short_name}-%{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/%{short_name}-completion.bash %{buildroot}%{_datadir}/bash-completion/completions/%{name}
|
|
rm -r %{buildroot}%{_datadir}/doc
|
|
|
|
%check
|
|
%meson_test
|
|
|
|
%files
|
|
%license COPYING
|
|
%doc NEWS README.rst
|
|
%{_datadir}/bash-completion/completions/%{name}
|
|
%{_bindir}/{%{short_name},mpd-*}
|
|
%{_mandir}/man1/%{short_name}.1%{?ext_man}
|
|
|
|
%changelog
|