]>
Commit | Line | Data |
---|---|---|
cbfcee8f ER |
1 | %define scriptname xulremote |
2 | Summary: Control amaroK from any Firefox browser on your network | |
3 | Name: amarok-script-%{scriptname} | |
4 | Version: 1.0 | |
8bc7e730 | 5 | Release: 1 |
cbfcee8f ER |
6 | License: GPL |
7 | Group: X11/Applications/Multimedia | |
8 | Source0: http://dl.sourceforge.net/xul-amarok/xulremote-%{version}.amarokscript.tar.gz | |
9 | # Source0-md5: 6f0ceb519bf9e91ce6785610a75680a1 | |
11e96cbf | 10 | URL: http://kde-apps.org/content/show.php?content=23630 |
cbfcee8f ER |
11 | BuildRequires: sed >= 4.0 |
12 | Requires: amarok > 1.3 | |
13 | Requires: kdebindings-python-dcop | |
14 | Requires: python >= 2.3 | |
15 | Requires: python-PyQt | |
8bc7e730 | 16 | Suggests: mozilla-firefox >= 1.5 |
cbfcee8f ER |
17 | BuildArch: noarch |
18 | BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) | |
19 | ||
20 | %define _scriptdir %{_datadir}/apps/amarok/scripts | |
cbfcee8f ER |
21 | |
22 | %description | |
23 | An Firefox extension to use amaroK from your network. You can control | |
24 | the player, browse your collection and manage the playlist. | |
25 | ||
26 | AmaroK XUL Remote is an amaroK script that allows you to control | |
27 | amaroK from any Firefox browser on your network. | |
28 | ||
8bc7e730 ER |
29 | To install the Firefox extension, open in Firefox |
30 | <http://amarok_host:8888>, and install the extension. | |
31 | ||
cbfcee8f ER |
32 | %prep |
33 | %setup -q -n %{scriptname} | |
34 | %{__sed} -i -e 's,\r$,,' README | |
35 | ||
36 | %install | |
37 | rm -rf $RPM_BUILD_ROOT | |
38 | install -d $RPM_BUILD_ROOT{%{_scriptdir}/%{scriptname},%{_xuldir}} | |
8bc7e730 | 39 | cp -a . $RPM_BUILD_ROOT%{_scriptdir}/%{scriptname} |
cbfcee8f ER |
40 | |
41 | %clean | |
42 | rm -rf $RPM_BUILD_ROOT | |
43 | ||
44 | %files | |
45 | %defattr(644,root,root,755) | |
46 | %dir %{_scriptdir}/%{scriptname} | |
47 | # README must be here in %files, not in %doc | |
48 | %{_scriptdir}/%{scriptname}/README | |
49 | %{_scriptdir}/%{scriptname}/Changelog | |
8bc7e730 | 50 | |
cbfcee8f ER |
51 | %{_scriptdir}/%{scriptname}/*.spec |
52 | %{_scriptdir}/%{scriptname}/*.ui | |
8bc7e730 ER |
53 | %{_scriptdir}/%{scriptname}/*.xpi |
54 | %{_scriptdir}/%{scriptname}/Amarok.py | |
55 | %{_scriptdir}/%{scriptname}/AmarokHTTPServer.py | |
56 | %{_scriptdir}/%{scriptname}/XULremoteConfigDialog.py | |
57 | ||
58 | # Do not mark any other file executable than the main script as amarok thinks | |
59 | # it's a plugin frontend. | |
60 | %attr(755,root,root) %{_scriptdir}/%{scriptname}/XulRemote.py |