]>
Commit | Line | Data |
---|---|---|
c7dcdf50 AF |
1 | # TODO: |
2 | # - add initscript | |
3 | # - create user for daemon (group audio) | |
4 | # - add dir to store playlists and songs DB | |
5 | # - create default config | |
6 | # - add logrotate | |
7 | Summary: Music Player Daemon | |
8 | Name: mpd | |
9 | Version: 0.11.5 | |
10 | Release: 0.1 | |
11 | Epoch: 0 | |
12 | License: GPL | |
13 | Group: Applications/Multimedia | |
14 | Source0: http://mercury.chem.pitt.edu/~shank/%{name}-%{version}.tar.gz | |
15 | # Source0-md5: 1a9a1a9d31f00a43838b3752024f7ebe | |
16 | URL: http://www.musicpd.org/ | |
17 | BuildRequires: alsa-lib-devel | |
18 | BuildRequires: audiofile-devel >= 0.1.7 | |
19 | BuildRequires: faad2-devel | |
20 | BuildRequires: flac-devel >= 1.1.0 | |
21 | BuildRequires: libao-devel >= 0.8.3 | |
22 | BuildRequires: libid3tag-devel | |
23 | BuildRequires: libmad-devel | |
24 | BuildRequires: libmikmod-devel | |
25 | BuildRequires: libogg-devel | |
26 | BuildRequires: libvorbis-devel | |
27 | BuildRequires: zlib-devel | |
28 | #BuildRequires: gcc-c++ | |
29 | BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) | |
30 | ||
31 | %description | |
32 | mpd | |
33 | ||
34 | %prep | |
35 | %setup -q | |
36 | ||
37 | %build | |
38 | %configure | |
39 | %{__make} | |
40 | ||
41 | %install | |
42 | rm -rf $RPM_BUILD_ROOT | |
43 | # create directories if necessary | |
44 | #install -d $RPM_BUILD_ROOT | |
45 | ||
46 | %{__make} install \ | |
47 | DESTDIR=$RPM_BUILD_ROOT | |
48 | ||
49 | %clean | |
50 | rm -rf $RPM_BUILD_ROOT | |
51 | ||
52 | ||
53 | %files | |
54 | %defattr(644,root,root,755) | |
55 | %doc AUTHORS ChangeLog README TODO UPGRADING doc/COMMANDS doc/mpdconf.example | |
56 | ||
57 | %attr(755,root,root) %{_bindir}/* | |
58 | %{_mandir}/man1/mpd.1* | |
59 | ||
60 | #%{_datadir}/%{name} | |
61 | ||
62 | # initscript and it's config | |
63 | #%attr(754,root,root) /etc/rc.d/init.d/%{name} | |
64 | #%config(noreplace) %verify(not md5 mtime size) /etc/sysconfig/%{name} |