File ncmpc.spec of Package ncmpc

# spec file for package ncmpc
# Copyright (c) 2018 Packman team:
# Copyright (c) 2012 Pascal Bleser <>
# 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

Name:           ncmpc
Version:        0.49
Release:        0
Summary:        Curses Client for the Music Player Daemon
License:        GPL-2.0-or-later
Group:          Productivity/Multimedia/Sound/Players
Patch3:         ncmpc-fix_meson_docdir.patch
%if %suse_version == 1500
BuildRequires:  gcc12-c++
BuildRequires:  gcc-c++
BuildRequires:  ncurses-devel
BuildRequires:  pkgconfig
BuildRequires:  pkgconfig(libmpdclient) >= 2.9
BuildRequires:  pkgconfig(libpcre2-8)
BuildRequires:  python3-Sphinx
BuildRequires:  meson >= 0.47
BuildRequires:  ninja

ncmpc is a curses client for the Music Player Daemon (MPD). ncmpc connects to
a MPD running on a machine on the local network, and controls this with an
interface inspired by cplay.

%autosetup -p1

test -x "$(type -p gcc)"    && CC="$_"
test -x "$(type -p g++)"    && CXX="$_"
test -x "$(type -p gcc-12)" && CC="$_"
test -x "$(type -p g++-12)" && CXX="$_"
export CC="$(readlink -f ${CC})"
export CXX="$(readlink -f ${CXX})"
%meson \
       -Dlirc=disabled \
       -Dhtml_manual=false \


%find_lang %{name}

%files lang -f %{name}.lang

%license COPYING
%doc doc/*.sample