File ncmpc.spec of Package ncmpc
#
# spec file for package ncmpc
#
# Copyright (c) 2018 Packman team: http://packman.links2linux.org/
# 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 http://bugs.opensuse.org/
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
URL: https://www.musicpd.org/clients/ncmpc/
Source: https://www.musicpd.org/download/ncmpc/0/ncmpc-%{version}.tar.xz
Patch3: ncmpc-fix_meson_docdir.patch
%if %suse_version == 1500
BuildRequires: gcc12-c++
%else
BuildRequires: gcc-c++
%endif
BuildRequires: ncurses-devel
BuildRequires: pkgconfig
BuildRequires: pkgconfig(libmpdclient) >= 2.9
BuildRequires: pkgconfig(libpcre2-8)
BuildRequires: python3-Sphinx
BuildRequires: meson >= 0.47
BuildRequires: ninja
%description
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.
%lang_package
%prep
%autosetup -p1
%build
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 \
%nil
%meson_build
%install
%meson_install
%find_lang %{name}
%files lang -f %{name}.lang
%files
%license COPYING
%doc AUTHORS NEWS
%doc doc/*.sample
%{_bindir}/ncmpc
%{_mandir}/man*/*
%changelog