File decibel-audio-player.spec of Package decibel-audio-player
#
# spec file for package decibel-audio-player
#
# Copyright (c) 2011 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: decibel-audio-player
Version: 1.08
Release: 1
License: GPLv2+
Summary: Decibel Audio Player Is an Easy to Use Audio Player
Url: http://decibel.silent-blade.org/
Group: Productivity/Multimedia/Sound/Players
Source0: http://decibel.silent-blade.org/uploads/Main/%{name}-%{version}.tar.gz
# PATCH-FIX-UPSTREAM decibel-audio-player-revert-DESTDIR.patch lp#856315 vuntz@opensuse.org -- Revert wrong build fix from upstream
Patch0: decibel-audio-player-revert-DESTDIR.patch
BuildRequires: python
BuildRequires: update-desktop-files
Requires: dbus-1-python
%if 0%{?suse_version} <= 1130
Requires: gnome-python-desktop
%else
Requires: python-gnomekeyring
%endif
Requires: python-gstreamer-0_10
Requires: python-gtk
Requires: python-mutagen
Recommends: %{name}-lang
# For the optional zeitgeist module
Suggests: zeitgeist
BuildRoot: %{_tmppath}/%{name}-%{version}-build
BuildArch: noarch
%py_requires
%description
Decibel Audio Player is a GTK+ open-source (GPL license) audio player
designed for GNU/Linux, which aims at being very straightforward to use
by mean of a very clean and user friendly interface. It is especially
targeted at Gnome and will follow as closely as possible the Gnome HIG.
%lang_package
%prep
%setup -q
%patch0 -p0 -R
%build
%install
export CFLAGS="%{optflags}"
DESTDIR=%{buildroot} prefix=/usr make install
%suse_update_desktop_file -N "Decibel" -G "Audio Player" %name AudioVideo Player
%find_lang %{name} %{?no_lang_C}
%if 0%{?suse_version} > 1130
%post
%desktop_database_post
%endif
%if 0%{?suse_version} > 1130
%postun
%desktop_database_postun
%endif
%files
%defattr(-,root,root,-)
%{_bindir}/*
%{_datadir}/%{name}/
%attr(755,root,root) %{_datadir}/%{name}/src/*.py
%{_mandir}/man?/*.*
%{_datadir}/applications/*.desktop
%{_datadir}/pixmaps/*.png
%files lang -f %{name}.lang
%changelog