]>
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 | |
08562c8e | 6 | Summary(pl.UTF-8): Zestaw skryptów do tekstów utworów dla amaroKa |
0d35f347 | 7 | Name: amarok-script-wiki_lyrics |
0f10ed88 | 8 | Version: 0.12.2 |
0d35f347 | 9 | Release: 0.1 |
0f10ed88 | 10 | License: GPL v2 |
0d35f347 | 11 | Group: X11/Applications/Multimedia |
0f10ed88 ER |
12 | Source0: http://www.kde-apps.org/CONTENT/content-files/35151-wiki_lyrics-%{version}.amarokscript.tar.bz2 |
13 | # Source0-md5: c011f68ead2c6b608256174ec7c5b085 | |
14 | URL: http://www.lyriki.com/Help:Wiki-Lyrics_Script | |
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) | |
0f10ed88 ER |
34 | - Baidu MP3 (mp3.baidu.com) |
35 | - Giitaayan (www.giitaayan.com) | |
0d35f347 ER |
36 | - Jamendo (www.jamendo.com) |
37 | - Leos Lyrics (www.leoslyrics.com) | |
38 | - Lyrc (lyrc.com.ar) | |
0f10ed88 ER |
39 | - Lyrics Download (www.lyricsdownload.com) |
40 | - Lyrics Mania (www.lyricsmania.com) | |
0d35f347 | 41 | - Not Popular (www.notpopular.com) |
0f10ed88 | 42 | - Seek Lyrics (www.seeklyrics.com) |
0d35f347 ER |
43 | - Sing365 (www.sing365.com) |
44 | - Terra Letras (letras.terra.com.br) | |
45 | ||
8a22d870 JR |
46 | %description -l pl.UTF-8 |
47 | Zestaw współpracujących z różnymi serwisami skryptów do pobierania | |
48 | tekstów utworów i opcjonalnie umieszczania treści na Lyriki.com lub | |
49 | LyricWiki.org (wiki dla tekstów utworów). Wszystkie te skrypty mogą | |
50 | odpytywać inne jeśli nie znajdą tekstu piosenki. | |
1f65bda4 | 51 | |
8a22d870 | 52 | Obsługiwane serwisy: |
1f65bda4 JB |
53 | - Lyriki (www.lyriki.com) |
54 | - LyricWiki (www.lyricwiki.org) | |
55 | - AZ Lyrics (www.azlyrics.com) | |
0f10ed88 ER |
56 | - Baidu MP3 (mp3.baidu.com) |
57 | - Giitaayan (www.giitaayan.com) | |
1f65bda4 JB |
58 | - Jamendo (www.jamendo.com) |
59 | - Leos Lyrics (www.leoslyrics.com) | |
60 | - Lyrc (lyrc.com.ar) | |
0f10ed88 ER |
61 | - Lyrics Download (www.lyricsdownload.com) |
62 | - Lyrics Mania (www.lyricsmania.com) | |
1f65bda4 | 63 | - Not Popular (www.notpopular.com) |
0f10ed88 | 64 | - Seek Lyrics (www.seeklyrics.com) |
1f65bda4 JB |
65 | - Sing365 (www.sing365.com) |
66 | - Terra Letras (letras.terra.com.br) | |
67 | ||
0d35f347 ER |
68 | %prep |
69 | %setup -q -n %{scriptname} | |
0f10ed88 ER |
70 | rm *.kdev* |
71 | rm -rf win tests | |
72 | rm {docs,amarok}/COPYING # GPL v2 | |
73 | rm i18n/README # note about when editing files | |
0d35f347 ER |
74 | |
75 | %{__sed} -i -e '1s,#!/usr/bin/env ruby,#!%{_bindir}/ruby,' *.rb | |
76 | ||
0d35f347 ER |
77 | %install |
78 | rm -rf $RPM_BUILD_ROOT | |
79 | install -d $RPM_BUILD_ROOT%{_scriptdir}/%{scriptname} | |
0f10ed88 ER |
80 | cp -a . $RPM_BUILD_ROOT%{_scriptdir}/%{scriptname} |
81 | rm -rf $RPM_BUILD_ROOT%{_scriptdir}/%{scriptname}/docs | |
0d35f347 ER |
82 | |
83 | %clean | |
84 | rm -rf $RPM_BUILD_ROOT | |
85 | ||
86 | %files | |
87 | %defattr(644,root,root,755) | |
0f10ed88 | 88 | %doc docs/ChangeLog docs/TODO docs/HOWTO.txt docs/README |
0d35f347 | 89 | %dir %{_scriptdir}/%{scriptname} |
0f10ed88 | 90 | |
0d35f347 | 91 | %attr(755,root,root) %{_scriptdir}/%{scriptname}/*.rb |
0f10ed88 ER |
92 | |
93 | %dir %{_scriptdir}/%{scriptname}/cli | |
94 | %attr(755,root,root) %{_scriptdir}/%{scriptname}/cli/*.rb | |
95 | ||
96 | %dir %{_scriptdir}/%{scriptname}/gui | |
97 | %attr(755,root,root) %{_scriptdir}/%{scriptname}/gui/*.rb | |
98 | ||
99 | %dir %{_scriptdir}/%{scriptname}/i18n | |
100 | %attr(755,root,root) %{_scriptdir}/%{scriptname}/i18n/*.rb | |
101 | ||
102 | %dir %{_scriptdir}/%{scriptname}/itrans | |
103 | ||
104 | %dir %{_scriptdir}/%{scriptname}/utils | |
105 | %attr(755,root,root) %{_scriptdir}/%{scriptname}/utils/*.rb | |
106 | ||
107 | %dir %{_scriptdir}/%{scriptname}/itrans | |
108 | %attr(755,root,root) %{_scriptdir}/%{scriptname}/itrans/* | |
109 | ||
110 | %dir %{_scriptdir}/%{scriptname}/amarok | |
111 | # README must be here in %files, not in %doc | |
112 | %{_scriptdir}/%{scriptname}/amarok/README | |
113 | %attr(755,root,root) %{_scriptdir}/%{scriptname}/amarok/*.rb | |
114 | %{_scriptdir}/%{scriptname}/amarok/*.spec |