1 %define scriptname copycover
2 Summary: CopyCover amaroK Script
3 Summary(pl.UTF-8): Skrypt CopyCover dla amaroKa
4 Name: amarok-script-copycover
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
18 BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
20 %define _scriptdir %{_datadir}/apps/amarok/scripts
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.
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.
35 %setup -q -n %{scriptname}
36 sed -i -e '1s,#!/usr/bin/env python,#!%{_bindir}/python,' *.py
39 rm -rf $RPM_BUILD_ROOT
40 install -d $RPM_BUILD_ROOT%{_scriptdir}/%{scriptname}
41 cp -a . $RPM_BUILD_ROOT%{_scriptdir}/%{scriptname}
44 rm -rf $RPM_BUILD_ROOT
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