File radiotray.spec of Package radiotray
#
# spec file for package radiotray
#
# Copyright (c) 2012 SUSE LINUX Products 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: radiotray
Version: 0.7.2
Release: 0
Summary: A streaming player for listening to online radios
License: GPL-1.0+
Group: Productivity/Multimedia/Sound/Players
Url: http://radiotray.sourceforge.net
Source0: http://downloads.sourceforge.net/project/radiotray/releases/%{name}-%{version}.tar.gz
BuildRequires: fdupes
BuildRequires: gettext
BuildRequires: python
BuildRequires: python-xdg
BuildRequires: update-desktop-files
Requires: python-gstreamer-0_10
Requires: python-gtk
Requires: python-lxml
Requires: python-notify
Requires: python-xdg
Recommends: %{name}-lang
BuildRoot: %{_tmppath}/%{name}-%{version}-build
BuildArch: noarch
%py_requires
%description
Radio Tray is an online radio streaming player that runs on a Linux system
tray. Its goal is to have the minimum interface possible, making it very
straightforward to use.
Radio Tray is not a full featured music player, there are plenty of
excellent music players already. However, there was a need for a simple
application with minimal interface just to listen to online radios.
And that's the sole purpose of Radio Tray.
%lang_package
%prep
%setup -q
sed -i 's:^#!/usr/bin/env :#!/usr/bin/:' src/radiotray.py
%build
CFLAGS="%{optflags}" python setup.py build
%install
python setup.py install -O1 --skip-build --root %{buildroot}
%suse_update_desktop_file radiotray
%find_lang %{name} %{?no_lang_C}
rm -r %{buildroot}%{_datadir}/doc/%{name}-%{version}
%fdupes %{buildroot}%{python_sitelib}
%clean
rm -rf %{buildroot}
%if 0%{?suse_version} > 1130
%post
%desktop_database_post
%endif
%if 0%{?suse_version} > 1130
%postun
%desktop_database_postun
%endif
%files
%defattr(-,root,root,-)
%doc AUTHORS CONTRIBUTORS COPYING NEWS README
%{_bindir}/%{name}
%{_datadir}/%{name}/
%{_datadir}/applications/%{name}.desktop
%{_datadir}/pixmaps/%{name}.png
%{python_sitelib}/%{name}/
%{python_sitelib}/%{name}*.egg-info
%files lang -f %{name}.lang
%changelog