# TODO:
# - init script should be fixed
#
-Summary: Edna - streaming server.
+Summary: Edna - streaming server
+Summary(pl): Edna - serwer strumieni
Name: edna
Version: 0.5
Release: 1
BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
%description
-Edna allows you to access your MP3 collection from any networked computer.
-This software streams your MP3s via HTTP to any MP3 player that supports
-playing off a remote connection (e.g. Winamp, FreeAmp, Sonique, XMMS).
-Edna supports ogg files either.
+Edna allows you to access your MP3 collection from any networked
+computer. This software streams your MP3s via HTTP to any MP3 player
+that supports playing off a remote connection (e.g. Winamp, FreeAmp,
+Sonique, XMMS). Edna supports Ogg files either.
+
+%description -l pl
+Edna umo¿liwia dostêp do kolekcji MP3 z dowolnego komputera maj±cego
+dostêp do sieci. Ten program wysy³a strumieñ MP3 po HTTP do dowolnego
+odtwarzacza MP3 obs³uguj±cego odtwarzanie przez po³±czenie sieciowe
+(jak Winamp, FreeAmp, Sonique, XMMS). Edna obs³uguje tak¿e pliki Ogg.
%prep
%setup -q
-%build
-
%install
rm -rf $RPM_BUILD_ROOT
-install -d $RPM_BUILD_ROOT
-
install -d $RPM_BUILD_ROOT/etc/rc.d/init.d
-install -d $RPM_BUILD_ROOT/%{_sysconfdir}/edna
+install -d $RPM_BUILD_ROOT%{_sysconfdir}/edna
%{__make} install \
DESTDIR=$RPM_BUILD_ROOT
install %{SOURCE1} $RPM_BUILD_ROOT/etc/rc.d/init.d/edna
-install edna.conf $RPM_BUILD_ROOT/%{_sysconfdir}/edna
-ln -sf /usr/lib/edna/templates $RPM_BUILD_ROOT/%{_sysconfdir}/edna/templates
+install edna.conf $RPM_BUILD_ROOT%{_sysconfdir}/edna
+ln -sf /usr/lib/edna/templates $RPM_BUILD_ROOT%{_sysconfdir}/edna/templates
%clean
rm -rf $RPM_BUILD_ROOT
%defattr(644,root,root,755)
%doc ChangeLog README
%attr(755,root,root) %{_bindir}/edna
-%attr(755,root,root) %{_libdir}/%{name}/*.py
%attr(754,root,root) /etc/rc.d/init.d/edna
+%dir %{_sysconfdir}/edna
%config(noreplace) %verify(not size mtime md5) %{_sysconfdir}/edna/edna.conf
%{_sysconfdir}/edna/templates
-%{_libdir}/%{name}/templates/*
+%dir %{_libdir}/%{name}
+%attr(755,root,root) %{_libdir}/%{name}/*.py
+%{_libdir}/%{name}/templates