Sisyphus repository
Last update: 1 october 2023 | SRPMs: 18631 | Visits: 37041328
en ru br
ALT Linux repos
S:0.45-alt2
5.0: 0.11.1-alt6
4.1: 0.11.1-alt5
4.0: 0.11.1-alt5

Group :: Sound
RPM: ncmpc

 Main   Changelog   Spec   Patches   Sources   Download   Gear   Bugs and FR  Repocop 

%define _unpackaged_files_terminate_build 1

%def_enable doc

%define subst_enable_meson_feature() %{expand:%%{?_enable_%{1}:-D%{2}=enabled}} %{expand:%%{?_disable_%{1}:-D%{2}=disabled}}
%define subst_enable_meson_bool() %{expand:%%{?_enable_%{1}:-D%{2}=true}} %{expand:%%{?_disable_%{1}:-D%{2}=false}}

Name: ncmpc
Version: 0.45
Release: alt2
Summary: curses client for mpd
License: GPL-2.0+
Group: Sound
Url: https://www.musicpd.org/

# https://github.com/MusicPlayerDaemon/ncmpc.git

Source: %name-%version.tar
Source1: %name.desktop

Patch1: ncmpc-alt-disable-upload-target.patch

BuildRequires(pre): meson
BuildRequires: gcc-c++
BuildRequires: glib2-devel libncursesw-devel libtinfo-devel pkg-config
BuildRequires: liblirc-devel
BuildRequires: libmpdclient-devel
BuildRequires: desktop-file-utils
BuildRequires: boost-complete
BuildRequires: libpcre-devel
%if_enabled doc
BuildRequires: doxygen
BuildRequires: python3-module-sphinx python3-module-sphinx-sphinx-build-symlink
%endif

%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. If ncmpc is used
with lirc and irpty it can be used to manage playlists and control MPD
with a remote control.

%prep
%setup
%patch1 -p1
%ifarch %e2k
sed -i 's/#if defined(__linux__)$/& \&\& !defined(__e2k__)/' src/net/IPv6Address.hxx
%endif

%build
%meson \
-Dlirc=enabled \
-Dlyrics_screen=true \
-Dnls=enabled \
-Dlocale=enabled \
-Dlyrics_plugin_dir=%_datadir/%name/lyrics \
%{subst_enable_meson_feature doc documentation} \
%{subst_enable_meson_bool doc manual} \
%{subst_enable_meson_bool doc html_manual} \
%nil

%meson_build

%install
%meson_install

install -m 644 -D %SOURCE1 %buildroot%_desktopdir/%name.desktop
desktop-file-install --dir %buildroot%_desktopdir \
--add-category=AudioVideo \
--add-category=Player \
%buildroot%_desktopdir/%name.desktop

rm -f %buildroot%_defaultdocdir/%name/html/.buildinfo

%find_lang %name

%check
%meson_test

%files -f %name.lang
%_bindir/*
%if_enabled doc
%_man1dir/*
%endif
%_desktopdir/%name.desktop
%_defaultdocdir/%name
%_datadir/%name

%changelog

Full changelog you can see here

 
design & coding: Vladimir Lettiev aka crux © 2004-2005, Andrew Avramenko aka liks © 2007-2008
current maintainer: Michael Shigorin