]> git.pld-linux.org Git - packages/mpd.git/blame - mpd.spec
- updated to 0.14.2
[packages/mpd.git] / mpd.spec
CommitLineData
c7dcdf50 1# TODO:
c7dcdf50 2# - add dir to store playlists and songs DB
c7dcdf50
AF
3# - add logrotate
4Summary: Music Player Daemon
31afabcf 5Summary(hu.UTF-8): Music Player Daemon
6ae29a87 6Summary(pl.UTF-8): Music Player Daemon - demon odtwarzający muzykę
c7dcdf50 7Name: mpd
dae3a015 8Version: 0.14.2
25794ce6 9Release: 1
dbce58e4 10License: GPL v2+
c7dcdf50 11Group: Applications/Multimedia
7f01b4ec 12Source0: http://dl.sourceforge.net/musicpd/%{name}-%{version}.tar.bz2
dae3a015 13# Source0-md5: 66817a4b4c05454e6488f6b821f2a6a3
31afabcf 14Source1: %{name}.conf
fb6389fb 15Source2: %{name}.init
c7dcdf50 16URL: http://www.musicpd.org/
3523369e 17BuildRequires: alsa-lib-devel >= 0.9.0
c7dcdf50 18BuildRequires: audiofile-devel >= 0.1.7
3523369e 19BuildRequires: avahi-devel
7f01b4ec
ZU
20# imho doesn't need ">= 2.6.1" to faad2-devel
21BuildRequires: faad2-devel
c7dcdf50 22BuildRequires: flac-devel >= 1.1.0
3523369e 23BuildRequires: jack-audio-connection-kit-devel >= 0.4
c7dcdf50
AF
24BuildRequires: libao-devel >= 0.8.3
25BuildRequires: libid3tag-devel
26BuildRequires: libmad-devel
3523369e 27BuildRequires: libmikmod-devel >= 3.1.7
8f2c0c52 28BuildRequires: libmpcdec-devel
c7dcdf50 29BuildRequires: libogg-devel
3523369e 30BuildRequires: libsamplerate-devel >= 0.0.15
38f95112 31BuildRequires: libshout-devel
c7dcdf50 32BuildRequires: libvorbis-devel
3523369e 33BuildRequires: pkgconfig >= 1:0.9.0
82d4bc97 34BuildRequires: pulseaudio-devel
c7dcdf50 35BuildRequires: zlib-devel
31afabcf
ZU
36Provides: group(mpd)
37Provides: user(mpd)
c7dcdf50
AF
38BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
39
40%description
87d7b893
JB
41Music Player Daemon (MPD) allows remote access for playing music (MP3,
42Ogg Vorbis, FLAC, AAC, Mod, and wave files) and managing playlists.
43MPD is designed for integrating a computer into a stereo system that
44provides control for music playback over a local network. It is also
45makes a great desktop music player, especially if you are a console
46junkie, like frontend options, or restart X often.
47
31afabcf
ZU
48%description -l hu.UTF-8
49Music Player Daemon (MPD)-vel lehetővé válik távoli zenelejátszás
50(MP3, Ogg Vorbis, FLAC, AAC, Mod és wav fájlok) és lejátszási listák
51menedzselése. Az MPD a számítógépben egy zenelejátszó, amelyet
52irányíthatsz helyi hálózaton keresztül. Egyben egy zseniális desktop
53zenelejátszó is, különösen a konzol-mániásoknak, vagy azoknak, akik
54sűrűn indítják újra az X-et.
55
f7293765
JR
56%description -l pl.UTF-8
57Music Player Daemon (MPD) pozwala na zdalny dostęp do odtwarzania
58muzyki (plików MP3, Ogg Vorbis, FLAC, AAC, Mod i wave) oraz
59zarządzania playlistami. MPD jest zaprojektowany do integrowania
60komputera w system stereo umożliwiający sterowanie odtwarzaniem muzyki
61w sieci lokalnej. Służy także za dobry odtwarzacz muzyki dla
62komputerów biurkowych, zwłaszcza dla miłośników konsoli, różnych opcji
63frontendów albo często restartujących X.
c7dcdf50
AF
64
65%prep
7f01b4ec 66%setup -q
c7dcdf50
AF
67
68%build
3523369e 69# ac_cv_* hacks to avoid unwanted linking
d9401207 70%configure \
3523369e
JB
71 ac_cv_lib_iconv_main=no \
72 ac_cv_lib_nsl_gethostbyname=no \
d9401207 73 --enable-ao
c7dcdf50
AF
74%{__make}
75
76%install
77rm -rf $RPM_BUILD_ROOT
c7dcdf50
AF
78
79%{__make} install \
80 DESTDIR=$RPM_BUILD_ROOT
fb44ab11
JB
81
82install -d $RPM_BUILD_ROOT{%{_sysconfdir},/etc/rc.d/init.d}
31afabcf 83install %{SOURCE1} $RPM_BUILD_ROOT%{_sysconfdir}
fb44ab11 84install %{SOURCE2} $RPM_BUILD_ROOT/etc/rc.d/init.d/mpd
c7dcdf50
AF
85
86%clean
87rm -rf $RPM_BUILD_ROOT
88
31afabcf
ZU
89%pre
90%groupadd -g 204 mpd
0600913f 91%useradd -u 204 -r -d /home/services/mpd -s /bin/false -c "Music Player Daemon (MPD) user" -g audio -G mpd mpd
31afabcf 92
fb6389fb
ZU
93%post
94/sbin/chkconfig --add mpd
95
96%preun
97if [ "$1" = "0" ]; then
98 %service mpd stop
99 /sbin/chkconfig --del httpd
100fi
101
31afabcf
ZU
102%postun
103if [ "$1" = "0" ]; then
104 %userremove mpd
105 %groupremove mpd
106fi
107
c7dcdf50
AF
108
109%files
110%defattr(644,root,root,755)
7f01b4ec 111%doc AUTHORS NEWS README TODO doc/mpdconf.example UPGRADING doc/protocol.xml
c7dcdf50 112%attr(755,root,root) %{_bindir}/*
fb44ab11
JB
113%config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/mpd.conf
114%attr(754,root,root) /etc/rc.d/init.d/mpd
c7dcdf50 115%{_mandir}/man1/mpd.1*
80d0dd8f 116%{_mandir}/man5/mpd.conf.5*
This page took 0.049952 seconds and 4 git commands to generate.