summaryrefslogtreecommitdiff
path: root/sonata.spec
blob: 0ad4c069439a0822faf861da9bf69f3e4f58af67 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
Summary:	GTK+ music client for MPD
Summary(pl.UTF-8):	Oparty na GTK+ klient muzyki dla MPD
Name:		sonata
Version:	1.6.2.1
Release:	1
License:	GPL v3+
Group:		X11/Applications/Sound
Source0:	http://download.berlios.de/sonata/%{name}-%{version}.tar.bz2
# Source0-md5:	a7f8fc66b3757ddceebb5fc4ef3f9d97
Patch0:		%{name}-el.patch
URL:		http://sonata.berlios.de/
BuildRequires:	gettext-tools
BuildRequires:	pkgconfig
BuildRequires:	python-devel >= 1:2.5
BuildRequires:	python-pygobject-devel
BuildRequires:	python-pygtk-devel >= 2:2.6.0
BuildRequires:	rpm-pythonprov
BuildRequires:	rpmbuild(macros) >= 1.219
Requires:	python-mpd
Requires:	python-modules
Requires:	python-pygtk-gtk >= 2:2.6.0
Requires:	python-pygtk-pango
Requires:	python-pygobject
Suggests:	python-dbus
Suggests:	python-gnome
Suggests:	python-gnome-ui
Suggests:	python-ZSI
Suggests:	python-tagpy
BuildRoot:	%{tmpdir}/%{name}-%{version}-root-%(id -u -n)

%description
Sonata is an elegant GTK+ music client for the Music Player Daemon
(MPD).

%description -l pl.UTF-8
Sonata to elegancki, oparty na GTK+ klient muzyki dla demona MPD
(Music Player Daemon).

%prep
%setup -q
%patch0 -p1 -b .wiget
%{__mv} po/el_GR.po po/el.po

%build
%{__python} setup.py build

%install
rm -rf $RPM_BUILD_ROOT

%{__python} setup.py install \
	--root=$RPM_BUILD_ROOT \
	--optimize=2

%py_postclean

%find_lang %{name}

%clean
rm -rf $RPM_BUILD_ROOT

%files -f %{name}.lang
%defattr(644,root,root,755)
%doc README TODO CHANGELOG TRANSLATORS
%attr(755,root,root) %{_bindir}/sonata
%{py_sitedir}/Sonata-%{version}-py*.egg-info
%attr(755,root,root) %{py_sitedir}/mmkeys.so
%{_mandir}/man1/sonata.1*
%dir %{py_sitedir}/sonata
%dir %{py_sitedir}/sonata/plugins
%{py_sitedir}/sonata/__init__.py[co]
%{py_sitedir}/sonata/about.py[co]
%{py_sitedir}/sonata/artwork.py[co]
%{py_sitedir}/sonata/audioscrobbler.py[co]
%{py_sitedir}/sonata/breadcrumbs.py[co]
%{py_sitedir}/sonata/cli.py[co]
%{py_sitedir}/sonata/config.py[co]
%{py_sitedir}/sonata/consts.py[co]
%{py_sitedir}/sonata/current.py[co]
%{py_sitedir}/sonata/dbus_plugin.py[co]
%{py_sitedir}/sonata/img.py[co]
%{py_sitedir}/sonata/info.py[co]
%{py_sitedir}/sonata/library.py[co]
%{py_sitedir}/sonata/main.py[co]
%{py_sitedir}/sonata/misc.py[co]
%{py_sitedir}/sonata/mpdhelper.py[co]
%{py_sitedir}/sonata/playlists.py[co]
%{py_sitedir}/sonata/pluginsystem.py[co]
%{py_sitedir}/sonata/preferences.py[co]
%{py_sitedir}/sonata/scrobbler.py[co]
%{py_sitedir}/sonata/streams.py[co]
%{py_sitedir}/sonata/svnversion.py[co]
%{py_sitedir}/sonata/tagedit.py[co]
%{py_sitedir}/sonata/tray.py[co]
%{py_sitedir}/sonata/ui.py[co]
%{py_sitedir}/sonata/version.py[co]
%{py_sitedir}/sonata/plugins/__init__.py[co]
%{py_sitedir}/sonata/plugins/localmpd.py[co]
%{py_sitedir}/sonata/plugins/test.py[co]
%{_desktopdir}/sonata.desktop
%{_pixmapsdir}/sonata-album.png
%{_pixmapsdir}/sonata-artist.png
%{_pixmapsdir}/sonata-case.png
%{_pixmapsdir}/sonata-stock_volume-max.png
%{_pixmapsdir}/sonata-stock_volume-med.png
%{_pixmapsdir}/sonata-stock_volume-min.png
%{_pixmapsdir}/sonata-stock_volume-mute.png
%{_pixmapsdir}/sonata.png
%{_pixmapsdir}/sonata_disconnect.png
%{_pixmapsdir}/sonata_large.png
%{_pixmapsdir}/sonata_pause.png
%{_pixmapsdir}/sonata_play.png
%{_pixmapsdir}/sonatacd.png
%{_pixmapsdir}/sonatacd_large.png