]>
Commit | Line | Data |
---|---|---|
0d35f347 ER |
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 | |
8a22d870 | 6 | Summary(pl.UTF-8): Zestaw skryptów do tekstów utworów dla amaroKa |
0d35f347 ER |
7 | Name: amarok-script-wiki_lyrics |
8 | Version: 0.9.1 | |
9 | Release: 0.1 | |
10 | License: GPL | |
11 | Group: X11/Applications/Multimedia | |
12 | Source0: http://kde-apps.org/content/files/35151-%{scriptname}-%{version}.amarokscript.tar.bz2 | |
13 | # Source0-md5: 36ab13187af3c171b359d0e5756ff611 | |
ef734215 | 14 | URL: http://www.lyriki.com/ |
0d35f347 ER |
15 | BuildRequires: sed >= 4.0 |
16 | Requires: amarok >= 1.4 | |
17 | Requires: ruby-modules >= 1.8 | |
18 | Requires: ruby-tk | |
19 | BuildArch: noarch | |
20 | BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) | |
21 | ||
22 | %define _scriptdir %{_datadir}/apps/amarok/scripts | |
23 | ||
24 | %description | |
25 | A collection of lyrics scripts to interface with various sites and, | |
26 | optionally, submit content to Lyriki.com or LyricWiki.org (wikis for | |
27 | lyrics). All of these scripts can query the other ones when they can't | |
28 | provide the lyrics for a song. | |
29 | ||
30 | Supported sites: | |
31 | - Lyriki (www.lyriki.com) | |
32 | - LyricWiki (www.lyricwiki.org) | |
33 | - AZ Lyrics (www.azlyrics.com) | |
34 | - Jamendo (www.jamendo.com) | |
35 | - Leos Lyrics (www.leoslyrics.com) | |
36 | - Lyrc (lyrc.com.ar) | |
37 | - Not Popular (www.notpopular.com) | |
38 | - Sing365 (www.sing365.com) | |
39 | - Terra Letras (letras.terra.com.br) | |
40 | ||
8a22d870 JR |
41 | %description -l pl.UTF-8 |
42 | Zestaw współpracujących z różnymi serwisami skryptów do pobierania | |
43 | tekstów utworów i opcjonalnie umieszczania treści na Lyriki.com lub | |
44 | LyricWiki.org (wiki dla tekstów utworów). Wszystkie te skrypty mogą | |
45 | odpytywać inne jeśli nie znajdą tekstu piosenki. | |
1f65bda4 | 46 | |
8a22d870 | 47 | Obsługiwane serwisy: |
1f65bda4 JB |
48 | - Lyriki (www.lyriki.com) |
49 | - LyricWiki (www.lyricwiki.org) | |
50 | - AZ Lyrics (www.azlyrics.com) | |
51 | - Jamendo (www.jamendo.com) | |
52 | - Leos Lyrics (www.leoslyrics.com) | |
53 | - Lyrc (lyrc.com.ar) | |
54 | - Not Popular (www.notpopular.com) | |
55 | - Sing365 (www.sing365.com) | |
56 | - Terra Letras (letras.terra.com.br) | |
57 | ||
0d35f347 ER |
58 | %prep |
59 | %setup -q -n %{scriptname} | |
60 | rm -f *.bat | |
61 | rm -f *.kdev* | |
62 | ||
63 | %{__sed} -i -e '1s,#!/usr/bin/env ruby,#!%{_bindir}/ruby,' *.rb | |
64 | ||
65 | mkdir pkg | |
66 | mv README *.spec *.rb pkg | |
67 | ||
68 | %install | |
69 | rm -rf $RPM_BUILD_ROOT | |
70 | install -d $RPM_BUILD_ROOT%{_scriptdir}/%{scriptname} | |
71 | cp -a pkg/* $RPM_BUILD_ROOT%{_scriptdir}/%{scriptname} | |
72 | ||
73 | %clean | |
74 | rm -rf $RPM_BUILD_ROOT | |
75 | ||
76 | %files | |
77 | %defattr(644,root,root,755) | |
78 | %doc ChangeLog TODO | |
79 | %dir %{_scriptdir}/%{scriptname} | |
80 | # README must be here in %files, not in %doc | |
81 | %{_scriptdir}/%{scriptname}/README | |
82 | %attr(755,root,root) %{_scriptdir}/%{scriptname}/*.rb | |
83 | %{_scriptdir}/%{scriptname}/*.spec |