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