Thanks

__________________
Edit:
mpd 0.17.4 spec RC- trial version
%define name mpd
%define version 0.17.4
%define release %mkrel 1
Summary: MPD, the Music Player Daemon
Summary(de): MPD (Music Player Daemon) Musikabspieldienst
Name: %{name}
Version: %{version}
Release: pclos1
License: GPLv2+
Group: Sound
URL: http://www.musicpd.org/
Source: http://downloads.sourceforge.net/musicpd/%{name}-%{version}.tar.xz
Source1: %{name}.conf
Source2: %{name}.init
Source3: %{name}.logrotate
# Patch: mpd-wavpack.patch
Source4: README.mpd
Requires(pre): rpm-helper
Requires(post): rpm-helper
Requires(preun): rpm-helper
Requires(postun): rpm-helper
BuildRequires: %{_lib}alsa2-devel
BuildRequires: gcc-c++ >= 4.7.2
BuildRequires: %{_lib}glib1.2-devel >= 1.2.10
BuildRequires: %{_lib}ao-devel >= 1.0.0
# fifo plugin -not found
# MVP not found for linux software
# http://www.hauppauge.com/pages/products/data_wmvp.html
BuildRequires: %{_lib}alsa-oss0
BuildRequires: aoss
BuildRequires: %{_lib}pulseaudio0
BuildRequires: %{_lib}pulseglib20
BuildRequires: %{_lib}pulseaudio-devel >= 3.0
BuildRequires: %{_lib}jack-devel >= 1.9.7
BuildRequires: %{_lib}shout-devel >= 2.2.2
BuildRequires: %{_lib}openal1 >= 1.12.854
BuildRequires: %{_lib}ffado >= 2.0rc1
BuildRequires: %{_lib}mad-devel >= 0.15.1
BuildRequires: %{_lib}mpg123_0 >= 1.15.3
BuildRequires: %{_lib}ogg-devel >= 1.3.0
# FLAC
BuildRequires: %{_lib}flac8-devel >= 1.2.1
BuildRequires: %{_lib}flac++6-devel >= 1.2.1
# - - - - -
BuildRequires: %{_lib}audiofile0-devel >= 0.2.7
# http://www.68k.org/~michael/audiofile/ version 0.3.6
# - - - - -
BuildRequires: %{_lib}faad2-devel >= 2.7
BuildRequires: %{_lib}mpcdec-devel >= 1.2.6
BuildRequires: %{_lib}mikmod-devel >= 3.2.0
# - - - - -
# http://ffmpeg.mplayerhq.hu/ or http://libav.org/
BuildRequires: %{_lib}libav53 >= 0.8.5
# - - - - -
BuildRequires: %{_lib}avutil50 >= 0.7.13
BuildRequires: %{_lib}avutil-extra51 >= 0.8.5
BuildRequires: %{_lib}avformats52 >= 0.7.13
BuildRequires: %{_lib}avformats-extra53 >= 0.8.5
# exist FFmpeg 1.2 --> http://ffmpeg.mplayerhq.hu/index.html
BuildRequires: %{_lib}ffmpeg-devel >= 0.7.13
BuildRequires: %{_lib}ffmpeg-static-devel >= 0.7.13
BuildRequires: %{_lib}sidplay2-devel >= 2.1.1
BuildRequires: %{_lib}fluidsynth1-devel >= 1.1.5
BuildRequires: %{_lib}sndfile1 >= 1.0.25
BuildRequires: %{_lib}wavpack1 >= 4.60.1
#BuildRequires: %{_lib}wavpack-devel
# - - - - -
# despotify - [url]https://github.com/SimonKagstrom/despotify[/url]
# For Spotify playback.
# - - - - -
# Avahi
BuildRequires: %{_lib}avahi-ui-devel >= 0.6.30
BuildRequires: %{_lib}avahi-qt4-devel >= 0.6.30
BuildRequires: %{_lib}avahi-qt3-devel >= 0.6.30
BuildRequires: %{_lib}avahi-gobject-devel >= 0.6.30
BuildRequires: %{_lib}avahi-glib-devel >= 0.6.30
BuildRequires: %{_lib}avahi-core-devel >= 0.6.30
BuildRequires: %{_lib}avahi-compat-libdns_sd-devel >= 0.6.30
BuildRequires: %{_lib}avahi-compat-howl-devel >= 0.6.30
BuildRequires: %{_lib}avahi-common-devel >= 0.6.30
BuildRequires: %{_lib}avahi-client-devel >= 0.6.30
# - - - - -
BuildRequires: %{_lib}samplerate0-devel >= 0.1.4
# libsamplerate 0.1.8 - http://www.mega-nerd.com/SRC/
BuildRequires: %{_lib}curl-devel >= 7.30.0
BuildRequires: %{_lib}mms-devel >= 0.6.2
BuildRequires: %{_lib}sqlite3-static-devel >= 3.7.13
BuildRequires: %{_lib}sqlite3-devel >= 3.7.13
# exist 3.7.16.2 http://www.sqlite.org/download.html
BuildRequires: %{_lib}cdio-devel >= 0.82
BuildRequires: %{_lib}cdio-static-devel >= 0.82
# exist 0.90 http://www.gnu.org/software/libcdio/
# - - - - -
# libsystemd-daemon - http://freedesktop.org/wiki/Software/systemd/
# For systemd activation. exist systemd-204.tar.xz , systemd-ui-2.tar.xz
BuildRequires: libdaemon-devel >= 0.14
# - - - - -
BuildRequires: pkgconfig >= 0.27.1
# - - - - - - - - - -
# from http://mpd.wikia.com/wiki/Dependencies
BuildRequires: %{_lib}lame0-devel >= 3.99
BuildRequires: %{_lib}twolame-devel >= 0.3.13
# {_lib}twolame-devel is optional --> %{_lib}lame0-devel
# - - - - -
# BuildRequires: lib Musepack http://www.musepack.net/
# - - - - -
BuildRequires: %{_lib}id3tag0-devel >= 0.15.1
BuildRequires: %{_lib}vorbis0-devel >= 1.3.2
# -->>not found in the Manual<<--
#BuildRequires: %{_lib}atomic_ops-devel
#BuildRequires: wildmidi-devel
#BuildRequires: xmlto
# - - - - -
BuildRoot: %{_tmppath}/%{name}-%{version}-buildroot
Obsoletes: %name < %version
%description
Music Player Daemon (MPD) allows remote access for playing music (MP3, Ogg
Vorbis, FLAC, Mod, and wave files) and managing playlists. MPD is designed
for integrating a computer into a stereo system that provides control for music
playback over a local network. It is also makes a great desktop music player,
especially if your a console junkie, like frontend options, or restart X often.
%description -l de
Der Music Player Daemon (kurz MPD) ist ein Unix-Systemdienst, der das
Abspielen von Musik auf einem Computer ermöglicht.Der MPD spielt die
Audioformate Ogg Vorbis, FLAC, OggFLAC, MP2, MP3, MP4/AAC, MOD, Musepack
und wave ab. Zudem können FLAC-, OggFLAC-, MP3- und OggVorbis-HTTP-Streams
abgespielt werden. Die Schnittstelle kann auch ohne manuelle Konfiguration
mit der Zeroconf-Technik angesteuert werden. Des Weiteren wird Replay Gain,
Gapless Playback, Crossfading und das Einlesen von Metadaten aus ID3-Tags,
Vorbis comments oder der MP4-Metadatenstruktur unterstützt. Weitere
Informationen siehe <http://de.wikipedia.org/wiki/Music_Player_Daemon>
%description -l fr
Music Player Daemon (MPD) permet l'accès distant pour jouer la musique
%description -l es
Music Player Daemon (MPD) permite el acceso remoto para reproducir música
%description -l pl
Music Player Daemon (MPD) pozwala na zdalny dostęp do odtwarzania muzyki
%description -l sr
Музички плејер Даемон (МФД) омогућава даљински приступ за пуштање музике
%description -l nl
Music Player Daemon (MPD) remote toegang biedt voor het afspelen van muziek
%prep
%setup -q
# %patch -p1
%build
autoreconf
%configure2_5x --enable-ao \
--enable-ffmpeg \
--enable-fluidsynth \
--enable-lastfm \
--enable-mikmod \
--enable-mvp \
--enable-wildmidi \
--enable-debug \
--enable-mms
%make
%install
rm -rf %{buildroot}
%makeinstall_std
mkdir -p %{buildroot}%{_localstatedir}/mpd
touch %{buildroot}%{_localstatedir}/mpd/mpd.db
touch %{buildroot}%{_localstatedir}/mpd/mpdstate
mkdir -p %{buildroot}/var/log/mpd
touch %{buildroot}/var/log/mpd/mpd.log
touch %{buildroot}/var/log/mpd/mpd.error
mkdir -p %{buildroot}/var/run/mpd
mkdir -p %{buildroot}%{_localstatedir}/mpd/playlists
mkdir -p %{buildroot}%{_localstatedir}/mpd/music
# create this folder for the database, without we will get an error message
mkdir -p %{buildroot}/var/lib/mpd
install -D %{SOURCE1} %{buildroot}/etc/mpd.conf
install -D %{SOURCE2} %{buildroot}%{_initrddir}/%{name}
install -D -m 644 %{SOURCE3} %{buildroot}%{_sysconfdir}/logrotate.d/%{name}
install %{SOURCE4} doc/README.mpd
rm -rf %{buildroot}%{_docdir}/mpd
%clean
rm -rf %{buildroot}
%pre
%_pre_useradd %name %{_localstatedir}/%{name} /bin/false
usermod -g audio %{name}
%post
if [ $1 -eq 1 ]
then
%create_ghostfile %{_localstatedir}/mpd/mpd.db mpd audio 644
%create_ghostfile %{_localstatedir}/mpd/mpdstate mpd audio 644
%create_ghostfile /var/log/mpd/mpd.log mpd audio 644
%create_ghostfile /var/log/mpd/mpd.error mpd audio 644
service %{name} createdb
fi
%_post_service %{name}
%preun
%_preun_service %{name}
%postun
%_postun_userdel %{name}
%files
%defattr(-,root,root)
%doc README UPGRADING AUTHORS NEWS doc/mpdconf.example doc/*.mpd
%{_bindir}/%{name}
%{_mandir}/man1/*
%{_mandir}/man5/*
%config(noreplace) %{_sysconfdir}/logrotate.d/%{name}
%attr(-,mpd,root) %config(noreplace) %{_sysconfdir}/%{name}.conf
%config(noreplace) %{_initrddir}/%{name}
%defattr(644,mpd,audio)
%attr(755,mpd,audio) %dir %{_localstatedir}/mpd
%attr(755,mpd,audio) %dir %{_localstatedir}/mpd/music
%attr(755,mpd,audio) %dir %{_localstatedir}/mpd/playlists
%ghost %{_localstatedir}/mpd/mpd.db
%ghost %{_localstatedir}/mpd/mpdstate
%attr(755,mpd,audio) %dir /var/log/mpd
%attr(755,mpd,audio) %dir /var/run/mpd
%attr(755,mpd,audio) %dir /var/lib/mpd
%ghost /var/log/mpd/mpd.log
%ghost /var/log/mpd/mpd.error
%changelog
* Fri May 25 2013 tele <tele at pclinuxosusers dot com> 0.17.4-1pclos2013
- 0.17.4 , edited BuildRequires
* Fri Jan 25 2013 ghostbunny <hmhaase at pclinuxosusers dot de> 0.17.3-1pclos2013
- 0.17.3
- added autoreconf to prevent overlinking
* Fri Sep 21 2012 Neal <nealbrks0 at gmail dot com> 0.17.1-1pclos2012
- process
* Fri Sep 10 2012 ghostbunny <hmhaase at pclinuxosusers dot de> 0.17.1-1pclos2012
- 0.17.1
* Tue Jul 10 2012 Neal <nealbrks0 at gmail dot com> 0.17-1pclos2012
- process
* Tue Jul 10 2012 ghostbunny <hmhaase at pclinuxosusers dot de> 0.17-1pclos2012
- 0.17
* Tue Jun 05 2012 Neal <nealbrks0 at gmail dot com> 0.16.8-2pclos2012
- process
* Tue Jun 05 2012 ghostbunny <hmhaase at pclinuxosusers dot de> 0.16.8-2pclos2012
- added mms streaming protocol support
* Tue May 15 2012 Neal <nealbrks0 at gmail dot com> 0.16.8-1pclos2012
- process
* Tue May 15 2012 ghostbunny <hmhaase at pclinuxosusers dot de> 0.16.8-1pclos2012
- 0.16.8
- added german summary
- added %{_lib} macros
- fixed patch related to name change of the file which needs the patch
- removed createdb from mpd.init this function ins't supported anymore -> db is created automaticly
- commented audio_output and error_file
* Wed Oct 13 2010 Texstar <texstar at gmail.com> 0.15.13-1pclos2010
- 0.15.13
* Fri Jul 23 2010 Texstar <texstar at gmail.com> 0.15.12-1pclos2010
- 0.15.12
* Sun Mar 28 2010 Texstar <texstar at gmail.com> 0.15.8-2pclos2010
- rebuild against updated libao
* Mon Feb 08 2010 slick50 <lxgator@gmail.com> 0.15.8-1pclos2010
- 0.15.8
* Sat Oct 02 2009 slick50 <lxgator@gmail.com> 0.15.3-1pclos2010
- 0.15.3
https://www.dropbox.com/sh/8kq9gxdu5krmipb/kCnuopaf6u/rep/pclinux2013Who uses this program?
-Wow to use it ?
Edit:
Ok, working,
in /etc/mpd.conf I edited because I was problem permissions with log and optonal paths.
######################## REQUIRED PATHS ########################
music_directory "/home/user_name/music"
playlist_directory "/home/user_name/playlists"
db_file "/home/user_name/mpd/mpd.db"
log_file "/home/user_name/mpd/mpd.log"
#error_file "/home/user_name/mpd/mpd.error"
################################################################
######################## OPTIONAL PATHS ########################
#
# If you wish to use mpd --kill to stop MPD, then you must
# specify a file here in which to store MPD's process ID.
#
pid_file "/home/user_name/mpd/mpd.pid"
#
# If specified, MPD will save its current state (playlist,
# current song, playing/paused, etc.) at exit. This will be
# used to restore the session the next time it is run.
#
state_file "/home/user_name/mpd/mpdstate"
#
################################################################useful commands:
# /etc/init.d/mpd start
# /etc/init.d/mpd restart
# /etc/init.d/mpd stop
# /etc/init.d/mpd status
# mpd --no-daemon --stdout --verbose
# mpd --kill
"#" ->This means that the commands are executed as root.
Server mpd tested with Sonata and in terminal with
$ ncmpcpp