5 %bcond_without mod # enable MOD support
6 %bcond_without pulseaudio # disable PulseAudio support
7 %bcond_without audiofile # Audiofile support (WAV and others)
9 Summary: Music Player Daemon
10 Summary(hu.UTF-8): Music Player Daemon
11 Summary(pl.UTF-8): Music Player Daemon - demon odtwarzający muzykę
16 Group: Applications/Multimedia
17 Source0: http://downloads.sourceforge.net/musicpd/%{name}-%{version}.tar.bz2
18 # Source0-md5: 5489dd327fba12c67f01558d2cfa6d57
21 Source3: %{name}.sysconfig
22 Source4: %{name}.tmpfiles
23 URL: http://www.musicpd.org/
24 BuildRequires: OpenAL-devel
25 BuildRequires: alsa-lib-devel >= 0.9.0
26 %{?with_audiofile:BuildRequires: audiofile-devel >= 0.1.7}
27 BuildRequires: avahi-glib-devel
28 BuildRequires: bzip2-devel
29 BuildRequires: curl-devel
30 BuildRequires: doxygen
31 BuildRequires: faad2-devel >= 2.6.1-5
32 BuildRequires: ffmpeg-devel
33 BuildRequires: flac-devel >= 1.1.0
34 BuildRequires: fluidsynth-devel
35 BuildRequires: game-music-emu-devel
36 BuildRequires: glib2-devel >= 2.12
37 BuildRequires: jack-audio-connection-kit-devel >= 0.4
38 BuildRequires: lame-libs-devel
39 BuildRequires: libao-devel >= 0.8.3
40 BuildRequires: libcdio-devel
41 BuildRequires: libcue-devel
42 BuildRequires: libid3tag-devel
43 BuildRequires: libmad-devel
44 %{?with_mod:BuildRequires: libmikmod-devel >= 3.1.7}
45 BuildRequires: libmms-devel
46 BuildRequires: libmodplug-devel
47 BuildRequires: libmpcdec-devel
48 BuildRequires: libogg-devel
49 BuildRequires: libsamplerate-devel >= 0.0.15
50 BuildRequires: libshout-devel
51 BuildRequires: libvorbis-devel
52 BuildRequires: pkgconfig >= 1:0.9.0
53 %{?with_pulseaudio:BuildRequires: pulseaudio-devel}
54 BuildRequires: rpmbuild(macros) >= 1.629-2
55 BuildRequires: sqlite3-devel
56 BuildRequires: twolame-devel
57 BuildRequires: wavpack-devel
58 BuildRequires: wildmidi-devel
60 BuildRequires: zlib-devel
61 BuildRequires: zziplib-devel
62 Requires: systemd-units >= 37-0.10
65 BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
68 Music Player Daemon (MPD) allows remote access for playing music (MP3,
69 Ogg Vorbis, FLAC, AAC, Mod, and wave files) and managing playlists.
70 MPD is designed for integrating a computer into a stereo system that
71 provides control for music playback over a local network. It is also
72 makes a great desktop music player, especially if you are a console
73 junkie, like frontend options, or restart X often.
75 %description -l hu.UTF-8
76 Music Player Daemon (MPD)-vel lehetővé válik távoli zenelejátszás
77 (MP3, Ogg Vorbis, FLAC, AAC, Mod és wav fájlok) és lejátszási listák
78 menedzselése. Az MPD a számítógépben egy zenelejátszó, amelyet
79 irányíthatsz helyi hálózaton keresztül. Egyben egy zseniális desktop
80 zenelejátszó is, különösen a konzol-mániásoknak, vagy azoknak, akik
81 sűrűn indítják újra az X-et.
83 %description -l pl.UTF-8
84 Music Player Daemon (MPD) pozwala na zdalny dostęp do odtwarzania
85 muzyki (plików MP3, Ogg Vorbis, FLAC, AAC, Mod i wave) oraz
86 zarządzania playlistami. MPD jest zaprojektowany do integrowania
87 komputera w system stereo umożliwiający sterowanie odtwarzaniem muzyki
88 w sieci lokalnej. Służy także za dobry odtwarzacz muzyki dla
89 komputerów biurkowych, zwłaszcza dla miłośników konsoli, różnych opcji
90 frontendów albo często restartujących X.
93 Summary: MPD API documentation
94 Summary(pl.UTF-8): Dokumentacja API biblioteki API
98 API and internal documentation for MPD library.
100 %description apidocs -l pl.UTF-8
101 Dokumentacja API biblioteki MPD.
104 Summary: Documentation for Music Player Daemon (MPD)
105 Summary(fr.UTF-8): Documentation pour Music Player Daemon (MPD)
106 Summary(it.UTF-8): Documentazione di Music Player Daemon (MPD)
107 Summary(pl.UTF-8): Podręcznik dla Music Player Daemon (MPD)
111 Documentation for Music Player Daemon (MPD).
113 %description doc -l fr.UTF-8
114 Documentation pour Music Player Daemon (MPD).
116 %description doc -l it.UTF-8
117 Documentazione di Music Player Daemon (MPD).
119 %description doc -l pl.UTF-8
120 Dokumentacja do Music Player Daemon (MPD).
126 # ac_cv_* hacks to avoid unwanted linking
127 GME_CFLAGS="-I/usr/include/gme" GME_LIBS="-lgme" \
129 ac_cv_lib_iconv_main=no \
130 ac_cv_lib_nsl_gethostbyname=no \
131 %{!?with_pulseaudio:--disable-pulse} \
132 %{?with_mod:--enable-mikmod} \
136 %{?with_audiofile:--enable-audiofile} \
140 --enable-documentation \
142 --enable-fluidsynth \
144 --enable-httpd-output \
147 --enable-lame-encoder \
155 --enable-pipe-output \
156 --enable-recorder-output \
159 --enable-twolame-encoder \
160 --enable-vorbis-encoder \
161 --enable-wave-encoder \
165 --with-zeroconf=avahi \
167 --with-systemdsystemunitdir=%{systemdunitdir}
171 rm -rf $RPM_BUILD_ROOT
172 install -d $RPM_BUILD_ROOT{%{_sysconfdir},/etc/{rc.d/init.d,sysconfig}} \
173 $RPM_BUILD_ROOT{/var/lib/mpd/playlists,/var/log/mpd,/var/run/mpd} \
174 $RPM_BUILD_ROOT/usr/lib/tmpfiles.d
177 DESTDIR=$RPM_BUILD_ROOT
179 cp -p %{SOURCE1} $RPM_BUILD_ROOT%{_sysconfdir}
180 install -p %{SOURCE2} $RPM_BUILD_ROOT/etc/rc.d/init.d/mpd
181 cp -p %{SOURCE3} $RPM_BUILD_ROOT/etc/sysconfig/mpd
182 install %{SOURCE4} $RPM_BUILD_ROOT/usr/lib/tmpfiles.d/%{name}.conf
184 touch $RPM_BUILD_ROOT/var/lib/mpd/mpd.db
185 touch $RPM_BUILD_ROOT/var/lib/mpd/mpdstate
186 touch $RPM_BUILD_ROOT/var/lib/mpd/sticker.sql
187 touch $RPM_BUILD_ROOT/var/log/mpd/mpd.log
189 %{__rm} -r $RPM_BUILD_ROOT%{_docdir}/mpd
192 rm -rf $RPM_BUILD_ROOT
196 %useradd -u 204 -r -d /home/services/mpd -s /bin/false -c "Music Player Daemon (MPD) user" -G audio -g mpd mpd
200 if [ ! -f /var/log/%{name}/$f ]; then
201 touch /var/log/%{name}/$f
202 chown mpd:mpd /var/log/%{name}/$f
203 chmod 644 /var/log/%{name}/$f
206 /sbin/chkconfig --add mpd
207 %systemd_post %{name}.service
210 if [ "$1" = "0" ]; then
212 /sbin/chkconfig --del mpd
214 %systemd_preun %{name}.service
217 if [ "$1" = "0" ]; then
223 %triggerpostun -- %{name} < 0.16.6-1
224 %systemd_trigger %{name}.service
227 %defattr(644,root,root,755)
228 %doc AUTHORS NEWS README doc/mpdconf.example UPGRADING
229 %attr(755,root,root) %{_bindir}/*
230 %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/mpd.conf
231 %attr(754,root,root) /etc/rc.d/init.d/mpd
232 %config(noreplace) %verify(not md5 mtime size) /etc/sysconfig/mpd
233 /usr/lib/tmpfiles.d/%{name}.conf
234 %{systemdunitdir}/mpd.service
235 %dir %attr(770,root,mpd) /var/lib/%{name}
236 %dir %attr(770,root,mpd) /var/lib/%{name}/playlists
237 %dir %attr(751,root,root) /var/log/%{name}
238 %dir %attr(770,root,mpd) /var/run/%{name}
239 %attr(644,mpd,mpd) %ghost /var/lib/%{name}/mpd.db
240 %attr(644,mpd,mpd) %ghost /var/lib/%{name}/mpdstate
241 %attr(644,mpd,mpd) %ghost /var/lib/%{name}/sticker.sql
242 %attr(644,mpd,mpd) %ghost /var/log/%{name}/mpd.log
243 %{_mandir}/man1/mpd.1*
244 %{_mandir}/man5/mpd.conf.5*
247 %defattr(644,root,root,755)
251 %defattr(644,root,root,755)
252 %doc doc/api doc/developer doc/protocol