]>
Commit | Line | Data |
---|---|---|
cf0818d6 ER |
1 | %define scriptname TEMPLATE |
2 | Summary: TEMPALTE amaroK Script | |
3 | Name: amarok-script-TEMPLATE | |
4 | Version: TEMPLATE | |
5 | Release: 0.1 | |
6 | Epoch: 0 | |
7 | License: GPL | |
8 | Group: X11/Applications/Multimedia | |
9 | Source0: http://download.kde.org/khotnewstuff/amarokscripts/downloads/XXX-%{scriptname}.amarokscript.tar.bz2 | |
10 | # Source0-md5: - | |
11 | URL: http://www.kde-apps.org/content/show.php?content=XXXX | |
12 | #BuildRequires: sed >= 4.0 | |
13 | # Please look README what package requires, including versions | |
14 | Requires: amarok | |
15 | #Requires: python >= 2.3 | |
16 | #Requires: python-PyQt | |
17 | BuildArch: noarch | |
18 | BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) | |
19 | ||
20 | %define _scriptdir %{_datadir}/apps/amarok/scripts | |
21 | ||
22 | %description | |
23 | ||
24 | %prep | |
25 | %setup -q -n %{scriptname} | |
26 | #sed -i -e '1s,#!/usr/bin/env python,#!%{_bindir}/python,' *.py | |
27 | ||
28 | %install | |
29 | rm -rf $RPM_BUILD_ROOT | |
30 | install -d $RPM_BUILD_ROOT%{_scriptdir}/%{scriptname} | |
31 | cp -a . $RPM_BUILD_ROOT%{_scriptdir}/%{scriptname} | |
32 | ||
33 | %clean | |
34 | rm -rf $RPM_BUILD_ROOT | |
35 | ||
36 | %files | |
37 | %defattr(644,root,root,755) | |
38 | %dir %{_scriptdir}/%{scriptname} | |
39 | # README must be here in %files, not in %doc | |
40 | %{_scriptdir}/%{scriptname}/README | |
41 | %attr(755,root,root) %{_scriptdir}/%{scriptname}/*.py | |
42 | #%attr(755,root,root) %{_scriptdir}/%{scriptname}/*.sh |