]>
Commit | Line | Data |
---|---|---|
1 | # NOTE | |
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 | |
7 | Version: 0.9.1 | |
8 | Release: 0.1 | |
9 | License: GPL | |
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://www.lyriki.com/ | |
14 | BuildRequires: sed >= 4.0 | |
15 | Requires: amarok >= 1.4 | |
16 | Requires: ruby-modules >= 1.8 | |
17 | Requires: ruby-tk | |
18 | BuildArch: noarch | |
19 | BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) | |
20 | ||
21 | %define _scriptdir %{_datadir}/apps/amarok/scripts | |
22 | ||
23 | %description | |
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. | |
28 | ||
29 | Supported sites: | |
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) | |
35 | - Lyrc (lyrc.com.ar) | |
36 | - Not Popular (www.notpopular.com) | |
37 | - Sing365 (www.sing365.com) | |
38 | - Terra Letras (letras.terra.com.br) | |
39 | ||
40 | %prep | |
41 | %setup -q -n %{scriptname} | |
42 | rm -f *.bat | |
43 | rm -f *.kdev* | |
44 | ||
45 | %{__sed} -i -e '1s,#!/usr/bin/env ruby,#!%{_bindir}/ruby,' *.rb | |
46 | ||
47 | mkdir pkg | |
48 | mv README *.spec *.rb pkg | |
49 | ||
50 | %install | |
51 | rm -rf $RPM_BUILD_ROOT | |
52 | install -d $RPM_BUILD_ROOT%{_scriptdir}/%{scriptname} | |
53 | cp -a pkg/* $RPM_BUILD_ROOT%{_scriptdir}/%{scriptname} | |
54 | ||
55 | %clean | |
56 | rm -rf $RPM_BUILD_ROOT | |
57 | ||
58 | %files | |
59 | %defattr(644,root,root,755) | |
60 | %doc ChangeLog TODO | |
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 |