]>
Commit | Line | Data |
---|---|---|
7088fd5b ER |
1 | %define scriptname copycover |
2 | Summary: CopyCover amaroK Script | |
e6c5c4f6 | 3 | Summary(pl.UTF-8): Skrypt CopyCover dla amaroKa |
7088fd5b ER |
4 | Name: amarok-script-copycover |
5 | Version: 1.6 | |
6 | Release: 0.1 | |
7 | Epoch: 0 | |
8 | License: GPL | |
9 | Group: X11/Applications/Multimedia | |
10 | Source0: http://download.kde.org/khotnewstuff/amarokscripts/downloads/22517-%{scriptname}.amarokscript.tar.bz2 | |
11 | # Source0-md5: 58ef540f1ffee891ff4119c51b6cf7c6 | |
12 | URL: http://www.kde-apps.org/content/show.php?content=22517 | |
13 | BuildRequires: sed >= 4.0 | |
14 | Requires: amarok >= 1.2.3 | |
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 | Copy the cover of current playing track to the song's dir. Does not | |
24 | overwrite existing images in this folder. The filenames can be | |
25 | configured with the "Configure" dialog. By default, it's the album's | |
26 | name, with spaces replaced by underscores. | |
27 | ||
c581f97d JR |
28 | %description -l pl.UTF-8 |
29 | Skrypt kopiujący okładkę aktualnie odtwarzanej ścieżki do katalogu z | |
30 | utworem. Nie nadpisuje istniejących obrazków w folderze. Nazwy plików | |
31 | mogą być konfigurowane w oknie dialogowym "Configure". Domyślnie jest | |
32 | to nazwa albumu ze spacjami zamienionymi na podkreślenia. | |
8ba502e0 | 33 | |
7088fd5b ER |
34 | %prep |
35 | %setup -q -n %{scriptname} | |
36 | sed -i -e '1s,#!/usr/bin/env python,#!%{_bindir}/python,' *.py | |
37 | ||
38 | %install | |
39 | rm -rf $RPM_BUILD_ROOT | |
40 | install -d $RPM_BUILD_ROOT%{_scriptdir}/%{scriptname} | |
41 | cp -a . $RPM_BUILD_ROOT%{_scriptdir}/%{scriptname} | |
42 | ||
43 | %clean | |
44 | rm -rf $RPM_BUILD_ROOT | |
45 | ||
46 | %files | |
47 | %defattr(644,root,root,755) | |
48 | %dir %{_scriptdir}/%{scriptname} | |
49 | %{_scriptdir}/%{scriptname}/README | |
50 | %attr(755,root,root) %{_scriptdir}/%{scriptname}/*.py | |
51 | %attr(755,root,root) %{_scriptdir}/%{scriptname}/*.sh |