- new
[packages/amarok-script-xulremote.git] / amarok-script-xulremote.spec
1 %define         scriptname      xulremote
2 Summary:        Control amaroK from any Firefox browser on your network
3 Name:           amarok-script-%{scriptname}
4 Version:        1.0
5 Release:        0.1
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
10 URL:            http://linux.softpedia.com/get/Multimedia/Audio/amaroK-Scripts/amaroK-XUL-Remote-9555.shtml
11 BuildRequires:  sed >= 4.0
12 Requires:       amarok > 1.3
13 Requires:       kdebindings-python-dcop
14 Requires:       python >= 2.3
15 Requires:       python-PyQt
16 # Requires: Firefox deer park (tested 1.5 beta1)
17 BuildArch:      noarch
18 BuildRoot:      %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
19
20 %define         _scriptdir %{_datadir}/apps/amarok/scripts
21 #%define                _xuldir         %{_datadir}/xulrunner
22 %define         _xuldir         %{_scriptdir}/%{scriptname}/xul
23
24 %description
25 An Firefox extension to use amaroK from your network. You can control
26 the player, browse your collection and manage the playlist.
27
28 AmaroK XUL Remote is an amaroK script that allows you to control
29 amaroK from any Firefox browser on your network.
30
31 %prep
32 %setup -q -n %{scriptname}
33 %{__sed} -i -e 's,\r$,,' README
34
35 %install
36 rm -rf $RPM_BUILD_ROOT
37 install -d $RPM_BUILD_ROOT{%{_scriptdir}/%{scriptname},%{_xuldir}}
38 cp -a *.py *.ui XulRemote.spec $RPM_BUILD_ROOT%{_scriptdir}/%{scriptname}
39 cp -a README Changelog $RPM_BUILD_ROOT%{_scriptdir}/%{scriptname}
40 cp -a xul-amarok.xpi $RPM_BUILD_ROOT%{_xuldir}
41
42 %clean
43 rm -rf $RPM_BUILD_ROOT
44
45 %files
46 %defattr(644,root,root,755)
47 %dir %{_scriptdir}/%{scriptname}
48 # README must be here in %files, not in %doc
49 %{_scriptdir}/%{scriptname}/README
50 %{_scriptdir}/%{scriptname}/Changelog
51 %{_scriptdir}/%{scriptname}/*.spec
52 %{_scriptdir}/%{scriptname}/*.ui
53 %attr(755,root,root) %{_scriptdir}/%{scriptname}/*.py
54 #%attr(755,root,root) %{_scriptdir}/%{scriptname}/*.sh
55
56 %{_xuldir}
This page took 0.053944 seconds and 3 git commands to generate.