3 # - init script should be fixed
5 Summary: Edna - streaming server.
10 Group: Applications/Sound
11 Source0: http://edna.sourceforge.net/%{name}-%{version}.tar.gz
12 # Source0-md5: ec3d46b25fa582b78db7c32acf78da47
14 URL: http://edna.sourceforge.net/
16 BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
19 Edna allows you to access your MP3 collection from any networked computer.
20 This software streams your MP3s via HTTP to any MP3 player that supports
21 playing off a remote connection (e.g. Winamp, FreeAmp, Sonique, XMMS).
22 Edna supports ogg files either.
30 rm -rf $RPM_BUILD_ROOT
31 install -d $RPM_BUILD_ROOT
33 install -d $RPM_BUILD_ROOT/etc/rc.d/init.d
34 install -d $RPM_BUILD_ROOT/%{_sysconfdir}/edna
37 DESTDIR=$RPM_BUILD_ROOT
39 install %{SOURCE1} $RPM_BUILD_ROOT/etc/rc.d/init.d/edna
40 install edna.conf $RPM_BUILD_ROOT/%{_sysconfdir}/edna
41 ln -sf /usr/lib/edna/templates $RPM_BUILD_ROOT/%{_sysconfdir}/edna/templates
44 rm -rf $RPM_BUILD_ROOT
47 /sbin/chkconfig --add edna
48 if [ -f /var/lock/subsys/edna ]; then
49 /etc/rc.d/init.d/edna restart >&2
51 echo "Run '/etc/rc.d/init.d/edna start' to start edna daemon." >&2
55 if [ "$1" = "0" ] ; then
56 if [ -f /var/lock/subsys/edna ]; then
57 /etc/rc.d/init.d/edna stop >&2
59 /sbin/chkconfig --del edna >&2
63 %defattr(644,root,root,755)
65 %attr(755,root,root) %{_bindir}/edna
66 %attr(755,root,root) %{_libdir}/%{name}/*.py
67 %attr(754,root,root) /etc/rc.d/init.d/edna
68 %config(noreplace) %verify(not size mtime md5) %{_sysconfdir}/edna/edna.conf
69 %{_sysconfdir}/edna/templates
70 %{_libdir}/%{name}/templates/*