File mpclient.spec of Package mpclient

#
# spec file for package mpclient
#
# Copyright (c) 2017 SUSE LINUX GmbH, Nuernberg, Germany.
# 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:           mpclient
Version:        0.28
Release:        0
License:        GPL-2.0
Summary:        A minimalist command line interface to MPD
Url:            http://www.musicpd.org/
Group:          Productivity/Multimedia/Sound/Utilities
Source:         http://www.musicpd.org/download/mpc/0/mpc-%{version}.tar.xz
BuildRequires:  pkg-config
BuildRequires:  pkgconfig(libmpdclient) >= 2.9
BuildRoot:      %{_tmppath}/%{name}-%{version}-build

%description
A client for MPD, the Music Player Daemon. mpc 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 mpc-%{version}

%build
%configure 
make %{?_smp_mflags}

%install
%makeinstall
install -m 0755 doc/mpd-pls-handler.sh %{buildroot}%{_bindir}/mpd-pls-handler
install -m 0755 doc/mpd-m3u-handler.sh %{buildroot}%{_bindir}/mpd-m3u-handler
install -m 0755 doc/mppledit %{buildroot}%{_bindir}/mppledit

mkdir -p %{buildroot}%{_sysconfdir}/bash_completion.d/
install -m 0644 doc/mpc-completion.bash %{buildroot}%{_sysconfdir}/bash_completion.d/mpc-completion.sh
rm -rf %{buildroot}%{_datadir}/doc

%files
%doc COPYING NEWS README
%{_bindir}/*
%config %{_sysconfdir}/bash_completion.d
%{_mandir}/man1/*

%changelog

openSUSE Build Service is sponsored by