File pithos.spec of Package pithos
#
# spec file for package pithos
#
# Copyright (c) 2012 SUSE LINUX Products GmbH, Nuernberg, Germany.
# Copyright (c) 2012 Malcolm J Lewis <malcolmlewis@opensuse.org>
#
# 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: pithos
Version: 0.3.17
Release: 0
Summary: Native Pandora Radio client for Linux
License: GPL-3.0
Group: Productivity/Multimedia/Other
Url: http://kevinmehall.net/p/pithos/
Source0: http://kevinmehall.net/p/pithos/release/%{name}_%{version}.tgz
BuildRequires: fdupes
BuildRequires: hicolor-icon-theme
BuildRequires: intltool
BuildRequires: python-devel
BuildRequires: python-distutils-extra >= 2.10
BuildRequires: python-setuptools
BuildRequires: update-desktop-files
Requires: dbus-1-python
Requires: gstreamer-0_10-plugins-bad
Requires: gstreamer-0_10-plugins-good
Requires: python-gstreamer-0_10
%if 0%{?suse_version} > 1130
Requires: python-gobject2
%else
Requires: python-gobject
%endif
Requires: python-gtk
Requires: python-notify
Requires: python-xdg
BuildRoot: %{_tmppath}/%{name}-%{version}-build
%if 0%{?suse_version}
%py_requires
%if 0%{?suse_version} > 1110
BuildArch: noarch
%endif
%endif
%{!?python_sitelib: %global python_sitelib %(%{__python} -c "from distutils.sysconfig import get_python_lib; print get_python_lib()")}
%description
Pithos is a native Pandora Radio client for Linux. It's much more
lightweight than the Pandora.com web client, and integrates with desktop
features such as media keys, notifications, and the sound menu.
%prep
%setup -q -n %{name}_%{version}
%build
%install
python setup.py install --prefix=%{_prefix} --root=%{buildroot}
# We package this as %%doc
rm %{buildroot}%{_datadir}/doc/%{name}/README.md
%suse_update_desktop_file %{name}
%fdupes %{buildroot}
%if 0%{?suse_version} > 1130
%post
%desktop_database_post
%icon_theme_cache_post
%postun
%desktop_database_postun
%icon_theme_cache_postun
%endif
%files
%defattr(-,root,root)
%doc CHANGELOG README.md
%{_bindir}/%{name}
%{python_sitelib}/%{name}
%{python_sitelib}/%{name}-0.3-py%{py_ver}.egg-info
%{_datadir}/%{name}/
%{_datadir}/applications/%{name}.desktop
%{_datadir}/icons/hicolor/scalable/apps/%{name}*.svg
%changelog