Projects
Multimedia
ncmpc
ncmpc.spec
Sign Up
Log In
Username
Password
Overview
Repositories
Revisions
Requests
Users
Attributes
Meta
File ncmpc.spec of Package ncmpc (Revision 8)
Currently displaying revision
8
,
Show latest
# vim: set sw=4 ts=4 et: # 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.30 Release: 1 Summary: Curses Client for the Music Player Daemon License: GPL-2.0+ Group: Productivity/Multimedia/Sound/Players Source: http://www.musicpd.org/download/ncmpc/0/ncmpc-%{version}.tar.xz Patch1: ncmpc-fix_meson_gcc_config.patch Patch2: ncmpc-c++11.patch Patch3: ncmpc-fix_meson_docdir.patch URL: http://mpd.wikia.com/wiki/Client:Ncmpc BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-buildroot BuildRequires: gcc7-c++ BuildRequires: ncurses-devel BuildRequires: pkg-config BuildRequires: pkgconfig(glib-2.0) >= 2.30 BuildRequires: pkgconfig(libmpdclient) >= 2.9 BuildRequires: python-Sphinx BuildRequires: meson 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 %setup -q %patch1 %patch2 %patch3 export PKG_CONFIG_PATH="$PWD/pc:$PKG_CONFIG_PATH" mkdir pc cat<<EOF > pc/ncursesw.pc prefix=/usr libdir=%{_libdir} Version: `rpm -q --qf='%{VERSION}' ncurses-devel` Name: ncursesw Description: ncursesw Libs: -L\${libdir} -lncursesw EOF CXX=g++-7 \ meson configure \ -Dcurses=ncursesw \ -Dmouse=true \ -Dcolors=ncursesw \ -Dmultibyte=true \ -Dlocale=true \ -Dnls=true \ -Dlirc=false \ -Dtcp=true \ -Ddocumentation=false CXX=g++-7 \ meson \ --prefix '%{_prefix}' \ --buildtype debug \ . \ output %build CXX=g++-7 \ ninja -C output %{?_smp_mflags} -v %install DESTDIR='%{buildroot}' ninja -C output install -v %__rm -rf '%{buildroot}%{_datadir}/doc' %find_lang %{name} # install config.sample and keys.sample in /etc/ncmpc %__install -D -m 644 doc/keys.sample $RPM_BUILD_ROOT/%{_sysconfdir}/%{name}/keys %__install -D -m 644 doc/config.sample $RPM_BUILD_ROOT/%{_sysconfdir}/%{name}/config %clean %{?buildroot:%__rm -rf "%{buildroot}"} %files lang -f %{name}.lang %defattr(-,root,root) %files %defattr(-,root,root) %doc AUTHORS COPYING NEWS README.rst %doc doc/*.sample doc/ncmpc.lirc %{_bindir}/ncmpc %dir %{_sysconfdir}/%{name} %config %{_sysconfdir}/%{name}/keys %config %{_sysconfdir}/%{name}/config %doc %{_mandir}/man1/ncmpc.1* %changelog
Locations
Projects
Search
Status Monitor
Help
Open Build Service
OBS Manuals
API Documentation
OBS Portal
Reporting a Bug
Contact
Mailing List
Forums
Chat (IRC)
Twitter
Open Build Service (OBS)
is an
openSUSE project
.