]> git.pld-linux.org Git - packages/mpd.git/blame - mpd.spec
- 0.15.5
[packages/mpd.git] / mpd.spec
CommitLineData
c7dcdf50 1# TODO:
c7dcdf50 2# - add logrotate
424f04d1
KK
3#
4# Conditional build:
5%bcond_with mod # enable MOD support
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
424f04d1 24BuildRequires: curl-devel
7f01b4ec
ZU
25# imho doesn't need ">= 2.6.1" to faad2-devel
26BuildRequires: faad2-devel
424f04d1 27BuildRequires: ffmpeg-devel
c7dcdf50 28BuildRequires: flac-devel >= 1.1.0
424f04d1 29BuildRequires: glib2-devel
3523369e 30BuildRequires: jack-audio-connection-kit-devel >= 0.4
424f04d1 31BuildRequires: lame-libs-devel
c7dcdf50
AF
32BuildRequires: libao-devel >= 0.8.3
33BuildRequires: libid3tag-devel
34BuildRequires: libmad-devel
424f04d1 35%{?with_mod:BuildRequires: libmikmod-devel >= 3.1.7}
8f2c0c52 36BuildRequires: libmpcdec-devel
c7dcdf50 37BuildRequires: libogg-devel
3523369e 38BuildRequires: libsamplerate-devel >= 0.0.15
38f95112 39BuildRequires: libshout-devel
c7dcdf50 40BuildRequires: libvorbis-devel
3523369e 41BuildRequires: pkgconfig >= 1:0.9.0
424f04d1 42%{?with_pulse:BuildRequires: pulseaudio-devel}
c7dcdf50 43BuildRequires: zlib-devel
31afabcf
ZU
44Provides: group(mpd)
45Provides: user(mpd)
c7dcdf50
AF
46BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
47
48%description
87d7b893
JB
49Music Player Daemon (MPD) allows remote access for playing music (MP3,
50Ogg Vorbis, FLAC, AAC, Mod, and wave files) and managing playlists.
51MPD is designed for integrating a computer into a stereo system that
52provides control for music playback over a local network. It is also
53makes a great desktop music player, especially if you are a console
54junkie, like frontend options, or restart X often.
55
31afabcf
ZU
56%description -l hu.UTF-8
57Music Player Daemon (MPD)-vel lehetővé válik távoli zenelejátszás
58(MP3, Ogg Vorbis, FLAC, AAC, Mod és wav fájlok) és lejátszási listák
59menedzselése. Az MPD a számítógépben egy zenelejátszó, amelyet
60irányíthatsz helyi hálózaton keresztül. Egyben egy zseniális desktop
61zenelejátszó is, különösen a konzol-mániásoknak, vagy azoknak, akik
62sűrűn indítják újra az X-et.
63
f7293765
JR
64%description -l pl.UTF-8
65Music Player Daemon (MPD) pozwala na zdalny dostęp do odtwarzania
66muzyki (plików MP3, Ogg Vorbis, FLAC, AAC, Mod i wave) oraz
67zarządzania playlistami. MPD jest zaprojektowany do integrowania
68komputera w system stereo umożliwiający sterowanie odtwarzaniem muzyki
69w sieci lokalnej. Służy także za dobry odtwarzacz muzyki dla
70komputerów biurkowych, zwłaszcza dla miłośników konsoli, różnych opcji
71frontendów albo często restartujących X.
c7dcdf50
AF
72
73%prep
99bf80d6 74%setup -q
c7dcdf50
AF
75
76%build
3523369e 77# ac_cv_* hacks to avoid unwanted linking
d9401207 78%configure \
3523369e
JB
79 ac_cv_lib_iconv_main=no \
80 ac_cv_lib_nsl_gethostbyname=no \
424f04d1
KK
81 %{!?with_pulse:--disable-pulse} \
82 %{?with_mod:--enable-mod} \
d9401207 83 --enable-ao
c7dcdf50
AF
84%{__make}
85
86%install
87rm -rf $RPM_BUILD_ROOT
424f04d1
KK
88install -d $RPM_BUILD_ROOT{%{_sysconfdir},/etc/rc.d/init.d} \
89 $RPM_BUILD_ROOT{/var/lib/mpd/playlists,/var/log/mpd,/var/run/mpd}
c7dcdf50
AF
90
91%{__make} install \
92 DESTDIR=$RPM_BUILD_ROOT
fb44ab11 93
31afabcf 94install %{SOURCE1} $RPM_BUILD_ROOT%{_sysconfdir}
fb44ab11 95install %{SOURCE2} $RPM_BUILD_ROOT/etc/rc.d/init.d/mpd
c7dcdf50 96
424f04d1
KK
97touch $RPM_BUILD_ROOT/var/lib/mpd/mpd.db
98touch $RPM_BUILD_ROOT/var/log/mpd/mpd.error
99touch $RPM_BUILD_ROOT/var/log/mpd/mpd.log
100touch $RPM_BUILD_ROOT/var/run/mpd/mpdstate
101
c7dcdf50
AF
102%clean
103rm -rf $RPM_BUILD_ROOT
104
31afabcf
ZU
105%pre
106%groupadd -g 204 mpd
0600913f 107%useradd -u 204 -r -d /home/services/mpd -s /bin/false -c "Music Player Daemon (MPD) user" -g audio -G mpd mpd
31afabcf 108
fb6389fb 109%post
424f04d1
KK
110for f in mpd.log mpd.error; do
111 if [ ! -f /var/log/%{name}/$f ]; then
112 touch /var/log/%{name}/$f
113 chown mpd:mpd /var/log/%{name}/$f
114 chmod 644 /var/log/%{name}/$f
115 fi
116done
fb6389fb
ZU
117/sbin/chkconfig --add mpd
118
119%preun
120if [ "$1" = "0" ]; then
121 %service mpd stop
99bf80d6 122 /sbin/chkconfig --del mpd
fb6389fb
ZU
123fi
124
31afabcf
ZU
125%postun
126if [ "$1" = "0" ]; then
127 %userremove mpd
128 %groupremove mpd
129fi
130
c7dcdf50
AF
131%files
132%defattr(644,root,root,755)
18702262 133%doc AUTHORS NEWS README doc/mpdconf.example UPGRADING doc/protocol.xml
c7dcdf50 134%attr(755,root,root) %{_bindir}/*
fb44ab11
JB
135%config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/mpd.conf
136%attr(754,root,root) /etc/rc.d/init.d/mpd
424f04d1
KK
137%dir %attr(770,root,mpd) /var/lib/%{name}
138%dir %attr(770,root,mpd) /var/lib/%{name}/playlists
139%dir %attr(751,root,root) /var/log/%{name}
140%dir %attr(770,root,mpd) /var/run/%{name}
141%attr(644,mpd,mpd) %ghost /var/lib/%{name}/mpd.db
142%attr(644,mpd,mpd) %ghost /var/log/%{name}/mpd.error
143%attr(644,mpd,mpd) %ghost /var/log/%{name}/mpd.log
144%attr(644,mpd,mpd) %ghost /var/run/%{name}/mpdstate
c7dcdf50 145%{_mandir}/man1/mpd.1*
80d0dd8f 146%{_mandir}/man5/mpd.conf.5*
This page took 0.080759 seconds and 4 git commands to generate.