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 http://bugs.opensuse.org/
#
Name: sonata
Version: 1.6.2.1
Release: 0
Summary: An elegant GTK+ client for the Music Player Daemon (MPD)
License: GPL-3.0+
Group: Applications/Multimedia
Url: http://www.nongnu.org/sonata/
Source0: https://github.com/multani/sonata/archive/v%{version}/%{name}-%{version}.tar.gz
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
%description
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.
Features:
- 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
%prep
%setup -q
#workaround very odd cleaning at the end of setup.py
%patch0 -p1
%build
CFLAGS="%{optflags}" python setup.py build
%install
python setup.py install -O1 --skip-build --root %{buildroot} --prefix %{_prefix}
chmod 755 %{buildroot}%{python_sitearch}/%{name}/breadcrumbs.py
rm -rf %{buildroot}%{_datadir}/sonata
%find_lang %{name}
%suse_update_desktop_file %{name}
%fdupes %{buildroot}
%post
%icon_theme_cache_post
%desktop_database_post
%postun
%desktop_database_postun
%icon_theme_cache_postun
%files -f %{name}.lang
%defattr(-,root,root,-)
%doc CHANGELOG COPYING README TODO TRANSLATORS
%{python_sitearch}/*
%{_bindir}/%{name}
%{_datadir}/applications/*.desktop
%{_datadir}/pixmaps/%{name}*
%{_mandir}/man1/%{name}.1.gz
%changelog