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