1 |
%define subrel 2 |
2 |
|
3 |
%define iname songwrite |
4 |
|
5 |
Name: songwrite2 |
6 |
Version: 0.4.1 |
7 |
Release: %mkrel 2 |
8 |
Summary: Guitar tabulature editor with playing and printing |
9 |
License: GPLv2 |
10 |
Group: Sound |
11 |
URL: http://home.gna.org/oomadness/en/songwrite |
12 |
|
13 |
Source0: http://download.gna.org/songwrite/Songwrite2-%{version}.tar.gz |
14 |
|
15 |
%py_requires -d |
16 |
BuildRequires: imagemagick |
17 |
Requires: editobj2 |
18 |
Requires: hicolor-icon-theme |
19 |
requires: mimehandler(application/pdf) |
20 |
Suggests: TiMidity++ |
21 |
|
22 |
BuildArch: noarch |
23 |
Obsoletes: songwrite |
24 |
|
25 |
%description |
26 |
Songwrite2 is a tablature (guitar partition) editor. It's the successor of songwrite. |
27 |
Songwrite2 is coded in Python and uses Tk (Tkinter); it relies on Timidity to |
28 |
play midi and on GNU Lilypond for printing. |
29 |
|
30 |
%prep |
31 |
%setup -q -n Songwrite2-%version |
32 |
|
33 |
%build |
34 |
#only to fix rpmlint's warning |
35 |
|
36 |
%install |
37 |
rm -rf %{buildroot} |
38 |
python setup.py install --root=%{buildroot} |
39 |
|
40 |
#icons |
41 |
mkdir -p %{buildroot}%{_datadir}/icons/hicolor/{16x16,32x32,48x48,64x64}/apps |
42 |
convert -scale 16 data/%{name}_64x64.png %{buildroot}%{_datadir}/icons/hicolor/16x16/apps/%{iname}.png |
43 |
convert -scale 32 data/%{name}_64x64.png %{buildroot}%{_datadir}/icons/hicolor/32x32/apps/%{iname}.png |
44 |
convert -scale 48 data/%{name}_64x64.png %{buildroot}%{_datadir}/icons/hicolor/48x48/apps/%{iname}.png |
45 |
convert -scale 64 data/%{name}_64x64.png %{buildroot}%{_datadir}/icons/hicolor/64x64/apps/%{iname}.png |
46 |
|
47 |
#menu |
48 |
mkdir -p %{buildroot}%{_datadir}/applications |
49 |
cat > %{buildroot}%{_datadir}/applications/%{_real_vendor}-%{iname}.desktop << EOF |
50 |
[Desktop Entry] |
51 |
Name=Songwrite2 |
52 |
Comment=Guitar TAB editor |
53 |
Exec=%{_bindir}/%{name} |
54 |
Icon=%{iname} |
55 |
Terminal=false |
56 |
Type=Application |
57 |
Categories=AudioVideo;Audio; |
58 |
EOF |
59 |
|
60 |
%find_lang %name |
61 |
|
62 |
# remove unpackaged files |
63 |
rm -f %{buildroot}%{_datadir}/locale/*/*/*.po |
64 |
|
65 |
|
66 |
%files -f %name.lang |
67 |
%defattr(-,root,root) |
68 |
%doc README CHANGES AUTHORS |
69 |
%{_bindir}/%name |
70 |
%{_datadir}/%name |
71 |
%{_datadir}/applications/%{_real_vendor}-%{iname}.desktop |
72 |
%{_iconsdir}/hicolor/*/apps/%{iname}.png |
73 |
%{_datadir}/*.egg-info |
74 |
%{_mandir}/man1/songwrite2.1.xz |
75 |
|
76 |
|