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