File pithos.spec of Package pithos
#
# spec file for package pithos
#
# Copyright (c) 2014 SUSE LINUX Products GmbH, Nuernberg, Germany.
# Copyright (c) 2012-2014 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: 1.0.0
Release: 0
Summary: Native Pandora Radio client for Linux
License: GPL-3.0
Group: Productivity/Multimedia/Other
Url: http://pithos.github.io/
Source0: https://github.com/pithos/pithos/archive/1.0.0.tar.gz
BuildRequires: fdupes
# Needed for automatic typelib() Requires.
BuildRequires: gobject-introspection
BuildRequires: hicolor-icon-theme
BuildRequires: intltool
BuildRequires: python3-devel
BuildRequires: python3-distutils-extra
BuildRequires: python3-setuptools
BuildRequires: update-desktop-files
Requires: dbus-1-python
Requires: gstreamer-plugins-bad
Requires: gstreamer-plugins-good
Requires: python3-gobject
Requires: python3-pylast
Requires: python3-setuptools
Requires: python3-xdg
BuildRoot: %{_tmppath}/%{name}-%{version}-build
BuildArch: noarch
%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 pithos-%{version}
%build
python3 setup.py build
%install
python3 setup.py install -O1 --skip-build --prefix=%{_prefix} --root=%{buildroot}
#Remove unnecessary icons
rm -rf %{buildroot}%{_datadir}/icons/ubuntu-mono*
%suse_update_desktop_file pithos
%fdupes -s %{buildroot}
%post
%desktop_database_post
%icon_theme_cache_post
%postun
%desktop_database_postun
%icon_theme_cache_postun
%files
%defattr(-,root,root)
%doc license README.md
%{_bindir}/pithos
%{python3_sitelib}/pithos
%{python3_sitelib}/pithos-%{version}-py%{py3_ver}.egg-info
%{_datadir}/applications/pithos.desktop
%{_datadir}/icons/hicolor/*/apps/pithos*
%changelog