1 %define scriptname xulremote
2 Summary: Control amaroK from any Firefox browser on your network
3 Summary(pl.UTF-8): Sterowanie amaroKiem z dowolnej przeglądarki Firefox w sieci
4 Name: amarok-script-%{scriptname}
8 Group: X11/Applications/Multimedia
9 Source0: http://dl.sourceforge.net/xul-amarok/xulremote-%{version}.amarokscript.tar.gz
10 # Source0-md5: 6f0ceb519bf9e91ce6785610a75680a1
11 URL: http://kde-apps.org/content/show.php?content=23630
12 BuildRequires: sed >= 4.0
13 Requires: amarok > 1.3
14 Requires: kdebindings-python-dcop
15 Requires: python >= 2.3
17 Suggests: mozilla-firefox >= 1.5
19 BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
21 %define _scriptdir %{_datadir}/apps/amarok/scripts
24 An Firefox extension to use amaroK from your network. You can control
25 the player, browse your collection and manage the playlist.
27 AmaroK XUL Remote is an amaroK script that allows you to control
28 amaroK from any Firefox browser on your network.
30 To install the Firefox extension, open in Firefox
31 <http://amarok_host:8888/>, and install the extension.
33 %description -l pl.UTF-8
34 Rozszerzenie Firefoksa do używania amaroKa z sieci. Pozwala sterować
35 odtwarzaczem, przeglądać kolekcję muzyki i zarządzać listą
38 AmaroK XUL Remote to skrypt amaroKa pozwalający na sterowanie
39 amaroKiem z dowolnej przeglądarki Firefox w sieci.
41 Aby zainstalować rozszerzenie Firefoksa, należy otworzyć w Firefoksie
42 adres <http://host_z_amarokiem:8888/> i zainstalować rozszerzenie.
45 %setup -q -n %{scriptname}
46 %{__sed} -i -e 's,\r$,,' README
49 rm -rf $RPM_BUILD_ROOT
50 install -d $RPM_BUILD_ROOT{%{_scriptdir}/%{scriptname},%{_xuldir}}
51 cp -a . $RPM_BUILD_ROOT%{_scriptdir}/%{scriptname}
54 rm -rf $RPM_BUILD_ROOT
57 %defattr(644,root,root,755)
58 %dir %{_scriptdir}/%{scriptname}
59 # README must be here in %files, not in %doc
60 %{_scriptdir}/%{scriptname}/README
61 %{_scriptdir}/%{scriptname}/Changelog
63 %{_scriptdir}/%{scriptname}/*.spec
64 %{_scriptdir}/%{scriptname}/*.ui
65 %{_scriptdir}/%{scriptname}/*.xpi
66 %{_scriptdir}/%{scriptname}/Amarok.py
67 %{_scriptdir}/%{scriptname}/AmarokHTTPServer.py
68 %{_scriptdir}/%{scriptname}/XULremoteConfigDialog.py
70 # Do not mark any other file executable than the main script as amarok thinks
71 # it's a plugin frontend.
72 %attr(755,root,root) %{_scriptdir}/%{scriptname}/XulRemote.py