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