]>
Commit | Line | Data |
---|---|---|
8e76d903 | 1 | # |
221752a7 | 2 | # TODO: |
8e76d903 | 3 | # - init script should be fixed |
221752a7 | 4 | # - run as uid>0 ! |
8e76d903 | 5 | # |
a92c5a9c | 6 | Summary: Edna - streaming server |
19d4c89e | 7 | Summary(pl.UTF-8): Edna - serwer strumieni |
8e76d903 | 8 | Name: edna |
9 | Version: 0.5 | |
10 | Release: 1 | |
11 | License: GPL | |
12 | Group: Applications/Sound | |
13 | Source0: http://edna.sourceforge.net/%{name}-%{version}.tar.gz | |
14 | # Source0-md5: ec3d46b25fa582b78db7c32acf78da47 | |
15 | Source1: %{name}.init | |
16 | URL: http://edna.sourceforge.net/ | |
221752a7 | 17 | BuildRequires: rpm-pythonprov |
18 | Requires: rc-scripts | |
e7b9c27c | 19 | Requires(post,preun): /sbin/chkconfig |
8e76d903 | 20 | Requires: python |
221752a7 | 21 | Requires: python-modules |
22 | BuildArch: noarch | |
8e76d903 | 23 | BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) |
24 | ||
25 | %description | |
a92c5a9c JB |
26 | Edna allows you to access your MP3 collection from any networked |
27 | computer. This software streams your MP3s via HTTP to any MP3 player | |
28 | that supports playing off a remote connection (e.g. Winamp, FreeAmp, | |
29 | Sonique, XMMS). Edna supports Ogg files either. | |
30 | ||
c82bf59c JR |
31 | %description -l pl.UTF-8 |
32 | Edna umożliwia dostęp do kolekcji MP3 z dowolnego komputera mającego | |
33 | dostęp do sieci. Ten program wysyła strumień MP3 po HTTP do dowolnego | |
34 | odtwarzacza MP3 obsługującego odtwarzanie przez połączenie sieciowe | |
35 | (jak Winamp, FreeAmp, Sonique, XMMS). Edna obsługuje także pliki Ogg. | |
8e76d903 | 36 | |
37 | %prep | |
38 | %setup -q | |
39 | ||
8e76d903 | 40 | %install |
41 | rm -rf $RPM_BUILD_ROOT | |
8e76d903 | 42 | install -d $RPM_BUILD_ROOT/etc/rc.d/init.d |
a92c5a9c | 43 | install -d $RPM_BUILD_ROOT%{_sysconfdir}/edna |
8e76d903 | 44 | |
45 | %{__make} install \ | |
221752a7 | 46 | DESTDIR=$RPM_BUILD_ROOT \ |
47 | LIBDIR=$RPM_BUILD_ROOT%{_datadir}/edna | |
8e76d903 | 48 | |
49 | install %{SOURCE1} $RPM_BUILD_ROOT/etc/rc.d/init.d/edna | |
a92c5a9c | 50 | install edna.conf $RPM_BUILD_ROOT%{_sysconfdir}/edna |
221752a7 | 51 | ln -sf %{_datadir}/edna/templates $RPM_BUILD_ROOT%{_sysconfdir}/edna/templates |
8e76d903 | 52 | |
53 | %clean | |
54 | rm -rf $RPM_BUILD_ROOT | |
55 | ||
56 | %post | |
57 | /sbin/chkconfig --add edna | |
58 | if [ -f /var/lock/subsys/edna ]; then | |
59 | /etc/rc.d/init.d/edna restart >&2 | |
60 | else | |
61 | echo "Run '/etc/rc.d/init.d/edna start' to start edna daemon." >&2 | |
62 | fi | |
63 | ||
64 | %preun | |
65 | if [ "$1" = "0" ] ; then | |
66 | if [ -f /var/lock/subsys/edna ]; then | |
67 | /etc/rc.d/init.d/edna stop >&2 | |
68 | fi | |
69 | /sbin/chkconfig --del edna >&2 | |
70 | fi | |
71 | ||
72 | %files | |
73 | %defattr(644,root,root,755) | |
74 | %doc ChangeLog README | |
75 | %attr(755,root,root) %{_bindir}/edna | |
8e76d903 | 76 | %attr(754,root,root) /etc/rc.d/init.d/edna |
a92c5a9c | 77 | %dir %{_sysconfdir}/edna |
221752a7 | 78 | %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/edna/edna.conf |
8e76d903 | 79 | %{_sysconfdir}/edna/templates |
221752a7 | 80 | %{_datadir}/%{name} |