2 # - could use QtRuby, Ruby/GTK or Ruby/Tk, but as only -tk was available on AC,
3 # used that dependency.
4 %define scriptname wiki_lyrics
5 Summary: A collection of lyrics scripts for amaroK
6 Name: amarok-script-wiki_lyrics
10 Group: X11/Applications/Multimedia
11 Source0: http://kde-apps.org/content/files/35151-%{scriptname}-%{version}.amarokscript.tar.bz2
12 # Source0-md5: 36ab13187af3c171b359d0e5756ff611
13 URL: http://kde-apps.org/content/show.php?content=35151
14 BuildRequires: sed >= 4.0
15 Requires: amarok >= 1.4
16 Requires: ruby-modules >= 1.8
19 BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
21 %define _scriptdir %{_datadir}/apps/amarok/scripts
24 A collection of lyrics scripts to interface with various sites and,
25 optionally, submit content to Lyriki.com or LyricWiki.org (wikis for
26 lyrics). All of these scripts can query the other ones when they can't
27 provide the lyrics for a song.
30 - Lyriki (www.lyriki.com)
31 - LyricWiki (www.lyricwiki.org)
32 - AZ Lyrics (www.azlyrics.com)
33 - Jamendo (www.jamendo.com)
34 - Leos Lyrics (www.leoslyrics.com)
36 - Not Popular (www.notpopular.com)
37 - Sing365 (www.sing365.com)
38 - Terra Letras (letras.terra.com.br)
41 %setup -q -n %{scriptname}
45 %{__sed} -i -e '1s,#!/usr/bin/env ruby,#!%{_bindir}/ruby,' *.rb
48 mv README *.spec *.rb pkg
51 rm -rf $RPM_BUILD_ROOT
52 install -d $RPM_BUILD_ROOT%{_scriptdir}/%{scriptname}
53 cp -a pkg/* $RPM_BUILD_ROOT%{_scriptdir}/%{scriptname}
56 rm -rf $RPM_BUILD_ROOT
59 %defattr(644,root,root,755)
61 %dir %{_scriptdir}/%{scriptname}
62 # README must be here in %files, not in %doc
63 %{_scriptdir}/%{scriptname}/README
64 %attr(755,root,root) %{_scriptdir}/%{scriptname}/*.rb
65 %{_scriptdir}/%{scriptname}/*.spec