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