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