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 Summary(pl.UTF-8): Zestaw skryptów do tekstów utworów dla amaroKa
7 Name: amarok-script-wiki_lyrics
11 Group: X11/Applications/Multimedia
12 Source0: http://www.kde-apps.org/CONTENT/content-files/35151-wiki_lyrics-%{version}.amarokscript.tar.bz2
13 # Source0-md5: b03c6dabdf87c1e2b0e4ae7e21144743
14 URL: http://www.lyriki.com/Help:Wiki-Lyrics_Script
15 BuildRequires: sed >= 4.0
16 Requires: amarok >= 1.4
17 Requires: ruby-modules >= 1.8
20 BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
22 %define _scriptdir %{_datadir}/apps/amarok/scripts
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.
31 - Lyriki (www.lyriki.com)
32 - LyricWiki (www.lyricwiki.org)
33 - AZ Lyrics (www.azlyrics.com)
34 - Baidu MP3 (mp3.baidu.com)
35 - Dark Lyrics (www.darklyrics.com)
36 - Giitaayan (www.giitaayan.com)
37 - Jamendo (www.jamendo.com)
38 - Leos Lyrics (www.leoslyrics.com)
40 - Lyrics Download (www.lyricsdownload.com)
41 - Lyrics Mania (www.lyricsmania.com)
42 - Not Popular (www.notpopular.com)
43 - Seek Lyrics (www.seeklyrics.com)
44 - Sing365 (www.sing365.com)
45 - Terra Letras (letras.terra.com.br)
47 %description -l pl.UTF-8
48 Zestaw współpracujących z różnymi serwisami skryptów do pobierania
49 tekstów utworów i opcjonalnie umieszczania treści na Lyriki.com lub
50 LyricWiki.org (wiki dla tekstów utworów). Wszystkie te skrypty mogą
51 odpytywać inne jeśli nie znajdą tekstu piosenki.
54 - Lyriki (www.lyriki.com)
55 - LyricWiki (www.lyricwiki.org)
56 - AZ Lyrics (www.azlyrics.com)
57 - Baidu MP3 (mp3.baidu.com)
58 - Dark Lyrics (www.darklyrics.com)
59 - Giitaayan (www.giitaayan.com)
60 - Jamendo (www.jamendo.com)
61 - Leos Lyrics (www.leoslyrics.com)
63 - Lyrics Download (www.lyricsdownload.com)
64 - Lyrics Mania (www.lyricsmania.com)
65 - Not Popular (www.notpopular.com)
66 - Seek Lyrics (www.seeklyrics.com)
67 - Sing365 (www.sing365.com)
68 - Terra Letras (letras.terra.com.br)
71 %setup -q -n %{scriptname}
74 rm {docs,amarok}/COPYING # GPL v2
75 rm i18n/README # note about when editing files
77 %{__sed} -i -e '1s,#!/usr/bin/env ruby,#!%{_bindir}/ruby,' *.rb amarok/*.rb cli/*.rb
80 rm -rf $RPM_BUILD_ROOT
81 install -d $RPM_BUILD_ROOT%{_scriptdir}/%{scriptname}
82 cp -a . $RPM_BUILD_ROOT%{_scriptdir}/%{scriptname}
83 rm -rf $RPM_BUILD_ROOT%{_scriptdir}/%{scriptname}/docs
86 rm -rf $RPM_BUILD_ROOT
89 %defattr(644,root,root,755)
90 %doc docs/ChangeLog docs/TODO docs/HOWTO.txt docs/README
91 %dir %{_scriptdir}/%{scriptname}
93 %attr(755,root,root) %{_scriptdir}/%{scriptname}/*.rb
95 %dir %{_scriptdir}/%{scriptname}/cli
96 %attr(755,root,root) %{_scriptdir}/%{scriptname}/cli/*.rb
98 %dir %{_scriptdir}/%{scriptname}/gui
99 %attr(755,root,root) %{_scriptdir}/%{scriptname}/gui/*.rb
101 %dir %{_scriptdir}/%{scriptname}/i18n
102 %attr(755,root,root) %{_scriptdir}/%{scriptname}/i18n/*.rb
104 %dir %{_scriptdir}/%{scriptname}/itrans
106 %dir %{_scriptdir}/%{scriptname}/utils
107 %attr(755,root,root) %{_scriptdir}/%{scriptname}/utils/*.rb
109 %dir %{_scriptdir}/%{scriptname}/itrans
110 %attr(755,root,root) %{_scriptdir}/%{scriptname}/itrans/*
112 %dir %{_scriptdir}/%{scriptname}/amarok
113 # README must be here in %files, not in %doc
114 %{_scriptdir}/%{scriptname}/amarok/README
115 %attr(755,root,root) %{_scriptdir}/%{scriptname}/amarok/*.rb
116 %{_scriptdir}/%{scriptname}/amarok/*.spec