]>
Commit | Line | Data |
---|---|---|
c7dcdf50 AF |
1 | # TODO: |
2 | # - add initscript | |
c7dcdf50 | 3 | # - add dir to store playlists and songs DB |
c7dcdf50 AF |
4 | # - add logrotate |
5 | Summary: Music Player Daemon | |
31afabcf | 6 | Summary(hu.UTF-8): Music Player Daemon |
6ae29a87 | 7 | Summary(pl.UTF-8): Music Player Daemon - demon odtwarzający muzykę |
c7dcdf50 | 8 | Name: mpd |
bcafedc5 | 9 | Version: 0.13.2 |
31afabcf | 10 | Release: 1.1 |
dbce58e4 | 11 | License: GPL v2+ |
c7dcdf50 | 12 | Group: Applications/Multimedia |
38f95112 | 13 | Source0: http://musicpd.org/uploads/files/%{name}-%{version}.tar.bz2 |
bcafedc5 | 14 | # Source0-md5: b461896369949ff3cff955692ead9f8b |
31afabcf | 15 | Source1: %{name}.conf |
c7dcdf50 | 16 | URL: http://www.musicpd.org/ |
3523369e | 17 | BuildRequires: alsa-lib-devel >= 0.9.0 |
c7dcdf50 | 18 | BuildRequires: audiofile-devel >= 0.1.7 |
3523369e | 19 | BuildRequires: avahi-devel |
c7dcdf50 AF |
20 | BuildRequires: faad2-devel |
21 | BuildRequires: flac-devel >= 1.1.0 | |
3523369e | 22 | BuildRequires: jack-audio-connection-kit-devel >= 0.4 |
c7dcdf50 AF |
23 | BuildRequires: libao-devel >= 0.8.3 |
24 | BuildRequires: libid3tag-devel | |
25 | BuildRequires: libmad-devel | |
3523369e | 26 | BuildRequires: libmikmod-devel >= 3.1.7 |
8f2c0c52 | 27 | BuildRequires: libmpcdec-devel |
c7dcdf50 | 28 | BuildRequires: libogg-devel |
3523369e | 29 | BuildRequires: libsamplerate-devel >= 0.0.15 |
38f95112 | 30 | BuildRequires: libshout-devel |
c7dcdf50 | 31 | BuildRequires: libvorbis-devel |
3523369e | 32 | BuildRequires: pkgconfig >= 1:0.9.0 |
82d4bc97 | 33 | BuildRequires: pulseaudio-devel |
c7dcdf50 | 34 | BuildRequires: zlib-devel |
31afabcf ZU |
35 | Provides: group(mpd) |
36 | Provides: user(mpd) | |
c7dcdf50 AF |
37 | BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) |
38 | ||
39 | %description | |
87d7b893 JB |
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 | ||
31afabcf ZU |
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 | ||
f7293765 JR |
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. | |
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 | |
76 | rm -rf $RPM_BUILD_ROOT | |
c7dcdf50 AF |
77 | |
78 | %{__make} install \ | |
79 | DESTDIR=$RPM_BUILD_ROOT | |
31afabcf ZU |
80 | install -d $RPM_BUILD_ROOT%{_sysconfdir} |
81 | install %{SOURCE1} $RPM_BUILD_ROOT%{_sysconfdir} | |
c7dcdf50 AF |
82 | |
83 | %clean | |
84 | rm -rf $RPM_BUILD_ROOT | |
85 | ||
31afabcf ZU |
86 | %pre |
87 | %groupadd -g 204 mpd | |
88 | %useradd -u 204 -r -d /home/services/mpd -s /bin/false -c "Music Player Daemon (MPD) user" -g audio -G mpd | |
89 | ||
90 | %postun | |
91 | if [ "$1" = "0" ]; then | |
92 | %userremove mpd | |
93 | %groupremove mpd | |
94 | fi | |
95 | ||
c7dcdf50 AF |
96 | |
97 | %files | |
98 | %defattr(644,root,root,755) | |
80d0dd8f | 99 | %doc AUTHORS ChangeLog README TODO doc/mpdconf.example UPGRADING doc/COMMANDS |
c7dcdf50 AF |
100 | %attr(755,root,root) %{_bindir}/* |
101 | %{_mandir}/man1/mpd.1* | |
80d0dd8f | 102 | %{_mandir}/man5/mpd.conf.5* |
31afabcf | 103 | %{_sysconfdir}/mpd.conf |
c7dcdf50 AF |
104 | |
105 | #%{_datadir}/%{name} | |
106 | ||
87d7b893 | 107 | # initscript and its config |
c7dcdf50 AF |
108 | #%attr(754,root,root) /etc/rc.d/init.d/%{name} |
109 | #%config(noreplace) %verify(not md5 mtime size) /etc/sysconfig/%{name} |