]> git.pld-linux.org Git - packages/mpd.git/blame - mpd.spec
- updated to 0.16.3
[packages/mpd.git] / mpd.spec
CommitLineData
02876c51 1# TODO:
c7dcdf50 2# - add logrotate
424f04d1
KK
3#
4# Conditional build:
5125f9d8 5%bcond_without mod # enable MOD support
d63dca03 6%bcond_without pulseaudio # disable PulseAudio support
9cf1eba3 7
c7dcdf50 8Summary: Music Player Daemon
31afabcf 9Summary(hu.UTF-8): Music Player Daemon
6ae29a87 10Summary(pl.UTF-8): Music Player Daemon - demon odtwarzający muzykę
c7dcdf50 11Name: mpd
61c1aca7 12Version: 0.16.3
13Release: 1
dbce58e4 14License: GPL v2+
c7dcdf50 15Group: Applications/Multimedia
25bb7e51 16Source0: http://downloads.sourceforge.net/musicpd/%{name}-%{version}.tar.bz2
61c1aca7 17# Source0-md5: 6e708c02b0e8c288aec855eecf441a5a
31afabcf 18Source1: %{name}.conf
fb6389fb 19Source2: %{name}.init
9cf1eba3 20Source3: %{name}.sysconfig
c7dcdf50 21URL: http://www.musicpd.org/
4351e719 22BuildRequires: OpenAL-devel
3523369e 23BuildRequires: alsa-lib-devel >= 0.9.0
c7dcdf50 24BuildRequires: audiofile-devel >= 0.1.7
5125f9d8
AF
25BuildRequires: avahi-glib-devel
26BuildRequires: bzip2-devel
424f04d1 27BuildRequires: curl-devel
5125f9d8 28BuildRequires: doxygen
158342a8 29BuildRequires: faad2-devel >= 2.6.1-5
424f04d1 30BuildRequires: ffmpeg-devel
c7dcdf50 31BuildRequires: flac-devel >= 1.1.0
5125f9d8 32BuildRequires: fluidsynth-devel
296a7717 33BuildRequires: game-music-emu-devel
4351e719 34BuildRequires: glib2-devel >= 2.12
3523369e 35BuildRequires: jack-audio-connection-kit-devel >= 0.4
424f04d1 36BuildRequires: lame-libs-devel
c7dcdf50 37BuildRequires: libao-devel >= 0.8.3
5125f9d8 38BuildRequires: libcdio-devel
33e45e33 39BuildRequires: libcue-devel
c7dcdf50
AF
40BuildRequires: libid3tag-devel
41BuildRequires: libmad-devel
424f04d1 42%{?with_mod:BuildRequires: libmikmod-devel >= 3.1.7}
415aa00e 43BuildRequires: libmms-devel
5125f9d8 44BuildRequires: libmodplug-devel
8f2c0c52 45BuildRequires: libmpcdec-devel
c7dcdf50 46BuildRequires: libogg-devel
3523369e 47BuildRequires: libsamplerate-devel >= 0.0.15
38f95112 48BuildRequires: libshout-devel
c7dcdf50 49BuildRequires: libvorbis-devel
3523369e 50BuildRequires: pkgconfig >= 1:0.9.0
d63dca03 51%{?with_pulseaudio:BuildRequires: pulseaudio-devel}
5125f9d8 52BuildRequires: sqlite3-devel
4351e719 53BuildRequires: twolame-devel
5125f9d8
AF
54BuildRequires: wavpack-devel
55BuildRequires: wildmidi-devel
56BuildRequires: xmlto
c7dcdf50 57BuildRequires: zlib-devel
5125f9d8 58BuildRequires: zziplib-devel
31afabcf
ZU
59Provides: group(mpd)
60Provides: user(mpd)
c7dcdf50
AF
61BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
62
63%description
87d7b893
JB
64Music Player Daemon (MPD) allows remote access for playing music (MP3,
65Ogg Vorbis, FLAC, AAC, Mod, and wave files) and managing playlists.
66MPD is designed for integrating a computer into a stereo system that
67provides control for music playback over a local network. It is also
68makes a great desktop music player, especially if you are a console
69junkie, like frontend options, or restart X often.
70
31afabcf
ZU
71%description -l hu.UTF-8
72Music Player Daemon (MPD)-vel lehetővé válik távoli zenelejátszás
73(MP3, Ogg Vorbis, FLAC, AAC, Mod és wav fájlok) és lejátszási listák
74menedzselése. Az MPD a számítógépben egy zenelejátszó, amelyet
75irányíthatsz helyi hálózaton keresztül. Egyben egy zseniális desktop
76zenelejátszó is, különösen a konzol-mániásoknak, vagy azoknak, akik
77sűrűn indítják újra az X-et.
78
f7293765
JR
79%description -l pl.UTF-8
80Music Player Daemon (MPD) pozwala na zdalny dostęp do odtwarzania
81muzyki (plików MP3, Ogg Vorbis, FLAC, AAC, Mod i wave) oraz
82zarządzania playlistami. MPD jest zaprojektowany do integrowania
83komputera w system stereo umożliwiający sterowanie odtwarzaniem muzyki
84w sieci lokalnej. Służy także za dobry odtwarzacz muzyki dla
85komputerów biurkowych, zwłaszcza dla miłośników konsoli, różnych opcji
86frontendów albo często restartujących X.
c7dcdf50 87
5412b34a
ER
88%package apidocs
89Summary: MPD API documentation
90Summary(pl.UTF-8): Dokumentacja API biblioteki API
91Group: Documentation
92
93%description apidocs
94API and internal documentation for MPD library.
95
96%description apidocs -l pl.UTF-8
97Dokumentacja API biblioteki MPD.
98
99%package doc
100Summary: Documentation for Music Player Daemon (MPD)
101Summary(fr.UTF-8): Documentation pour Music Player Daemon (MPD)
102Summary(it.UTF-8): Documentazione di Music Player Daemon (MPD)
103Summary(pl.UTF-8): Podręcznik dla Music Player Daemon (MPD)
104Group: Documentation
105
106%description doc
107Documentation for Music Player Daemon (MPD).
108
109%description doc -l fr.UTF-8
110Documentation pour Music Player Daemon (MPD).
111
112%description doc -l it.UTF-8
113Documentazione di Music Player Daemon (MPD).
114
115%description doc -l pl.UTF-8
116Dokumentacja do Music Player Daemon (MPD).
117
c7dcdf50 118%prep
99bf80d6 119%setup -q
c7dcdf50
AF
120
121%build
3523369e 122# ac_cv_* hacks to avoid unwanted linking
296a7717 123GME_CFLAGS="-I/usr/include/gme" GME_LIBS="-lgme" \
d9401207 124%configure \
3523369e
JB
125 ac_cv_lib_iconv_main=no \
126 ac_cv_lib_nsl_gethostbyname=no \
d63dca03 127 %{!?with_pulseaudio:--disable-pulse} \
5125f9d8
AF
128 %{?with_mod:--enable-mikmod} \
129 --disable-sidplay \
130 --enable-alsa \
131 --enable-ao \
4351e719 132 --enable-audiofile \
5125f9d8 133 --enable-bzip2 \
33e45e33 134 --enable-cue \
5125f9d8
AF
135 --enable-curl \
136 --enable-documentation \
137 --enable-ffmpeg \
138 --enable-fluidsynth \
296a7717 139 --enable-gme \
5125f9d8
AF
140 --enable-httpd-output \
141 --enable-iso9660 \
142 --enable-jack \
143 --enable-lame-encoder \
144 --enable-lastfm \
145 --enable-lsr \
146 --enable-mad \
147 --enable-mms \
148 --enable-modplug \
149 --enable-mvp \
4351e719
JP
150 --enable-openal \
151 --enable-pipe-output \
152 --enable-recorder-output \
5125f9d8
AF
153 --enable-shout \
154 --enable-sqlite \
4351e719 155 --enable-twolame-encoder \
5125f9d8 156 --enable-vorbis-encoder \
4351e719 157 --enable-wave-encoder \
5125f9d8
AF
158 --enable-wavpack \
159 --enable-wildmidi \
4351e719 160 --enable-zzip \
5125f9d8 161 --with-zeroconf=avahi \
194c7061 162 --without-tremor
c7dcdf50
AF
163%{__make}
164
165%install
166rm -rf $RPM_BUILD_ROOT
9cf1eba3 167install -d $RPM_BUILD_ROOT{%{_sysconfdir},/etc/{rc.d/init.d,sysconfig}} \
424f04d1 168 $RPM_BUILD_ROOT{/var/lib/mpd/playlists,/var/log/mpd,/var/run/mpd}
c7dcdf50
AF
169
170%{__make} install \
171 DESTDIR=$RPM_BUILD_ROOT
fb44ab11 172
9cf1eba3
ER
173cp -p %{SOURCE1} $RPM_BUILD_ROOT%{_sysconfdir}
174install -p %{SOURCE2} $RPM_BUILD_ROOT/etc/rc.d/init.d/mpd
175cp -p %{SOURCE3} $RPM_BUILD_ROOT/etc/sysconfig/mpd
c7dcdf50 176
424f04d1 177touch $RPM_BUILD_ROOT/var/lib/mpd/mpd.db
4351e719
JP
178touch $RPM_BUILD_ROOT/var/lib/mpd/mpdstate
179touch $RPM_BUILD_ROOT/var/lib/mpd/sticker.sql
424f04d1 180touch $RPM_BUILD_ROOT/var/log/mpd/mpd.log
424f04d1 181
1ac45cec 182%{__rm} -r $RPM_BUILD_ROOT%{_docdir}/mpd
5125f9d8 183
c7dcdf50
AF
184%clean
185rm -rf $RPM_BUILD_ROOT
186
31afabcf
ZU
187%pre
188%groupadd -g 204 mpd
88b08939 189%useradd -u 204 -r -d /home/services/mpd -s /bin/false -c "Music Player Daemon (MPD) user" -G audio -g mpd mpd
31afabcf 190
fb6389fb 191%post
4351e719 192for f in mpd.log; do
424f04d1
KK
193 if [ ! -f /var/log/%{name}/$f ]; then
194 touch /var/log/%{name}/$f
195 chown mpd:mpd /var/log/%{name}/$f
196 chmod 644 /var/log/%{name}/$f
197 fi
198done
fb6389fb
ZU
199/sbin/chkconfig --add mpd
200
201%preun
202if [ "$1" = "0" ]; then
203 %service mpd stop
99bf80d6 204 /sbin/chkconfig --del mpd
fb6389fb
ZU
205fi
206
31afabcf
ZU
207%postun
208if [ "$1" = "0" ]; then
209 %userremove mpd
210 %groupremove mpd
211fi
212
c7dcdf50
AF
213%files
214%defattr(644,root,root,755)
5412b34a 215%doc AUTHORS NEWS README doc/mpdconf.example UPGRADING
c7dcdf50 216%attr(755,root,root) %{_bindir}/*
fb44ab11
JB
217%config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/mpd.conf
218%attr(754,root,root) /etc/rc.d/init.d/mpd
9cf1eba3 219%config(noreplace) %verify(not md5 mtime size) /etc/sysconfig/mpd
424f04d1
KK
220%dir %attr(770,root,mpd) /var/lib/%{name}
221%dir %attr(770,root,mpd) /var/lib/%{name}/playlists
222%dir %attr(751,root,root) /var/log/%{name}
223%dir %attr(770,root,mpd) /var/run/%{name}
224%attr(644,mpd,mpd) %ghost /var/lib/%{name}/mpd.db
4351e719
JP
225%attr(644,mpd,mpd) %ghost /var/lib/%{name}/mpdstate
226%attr(644,mpd,mpd) %ghost /var/lib/%{name}/sticker.sql
424f04d1 227%attr(644,mpd,mpd) %ghost /var/log/%{name}/mpd.log
c7dcdf50 228%{_mandir}/man1/mpd.1*
80d0dd8f 229%{_mandir}/man5/mpd.conf.5*
5412b34a
ER
230
231%files doc
232%defattr(644,root,root,755)
233%doc doc/user/*
234
235%files apidocs
236%defattr(644,root,root,755)
237%doc doc/api doc/developer doc/protocol
This page took 0.692015 seconds and 4 git commands to generate.