File sonata.spec of Package sonata

# spec file for package sonata
# Copyright (c) 2015 SUSE LINUX GmbH, Nuernberg, Germany.
# All modifications and additions to the file contributed by third parties
# remain the property of their copyright owners, unless otherwise agreed
# upon. The license for this file, and modifications and additions to the
# file, is the same license as for the pristine package itself (unless the
# license for the pristine package is not an Open Source License, in which
# case the license is the MIT License). An "Open Source License" is a
# license that conforms to the Open Source Definition (Version 1.9)
# published by the Open Source Initiative.

# Please submit bugfixes or comments via

Name:           sonata
Release:        0
Summary:        An elegant GTK+ client for the Music Player Daemon (MPD)
License:        GPL-3.0+
Group:          Applications/Multimedia
Patch0:         sonata-1.6.2-nocleaning.patch
BuildRequires:  fdupes
BuildRequires:  gettext
BuildRequires:  gtk2-devel
BuildRequires:  python-devel
BuildRequires:  python-xml
BuildRequires:  python-gtk-devel
BuildRequires:  update-desktop-files
Requires:       dbus-1-python
Requires:       python-gtk
Requires:       python-mpd
Requires:       python-tagpy
Recommends:     python-gnome-extras
BuildRoot:      %{_tmppath}/%{name}-%{version}-build

Sonata is a lightweight GTK+ music client for the Music Player Daemon (MPD).
It aims to be efficient (no toolbar, main menu, or statusbar), user-friendly,
and clean.

 - Expanded and collapsed views
 - Automatic remote or local album art
 - Automatic fetching of lyrics
 - Playlist and stream support
 - Support for editing tags
 - System tray icon with tooltip
 - Optional popup notification
 - Library searching by artist, song, etc.
 - Keyboard friendly
 - Support for multimedia keys
 - Commandline control

%setup -q
#workaround very odd cleaning at the end of
%patch0 -p1

CFLAGS="%{optflags}" python build

python install -O1 --skip-build --root %{buildroot} --prefix %{_prefix}
chmod 755 %{buildroot}%{python_sitearch}/%{name}/
rm -rf %{buildroot}%{_datadir}/sonata
%find_lang %{name}
%suse_update_desktop_file %{name}
%fdupes %{buildroot}



%files -f %{name}.lang

openSUSE Build Service is sponsored by