File whaawmp.spec of Package whaawmp
#
# spec file for package whaawmp
#
# 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: whaawmp
Version: 0.2.12.1
Release: 13.<RELEASE3>
License: GPLv3+
Summary: Minimalistic media player
Url: http://home.gna.org/whaawmp
Group: Productivity/Multimedia/Video/Players
Source: http://download.gna.org/%{name}/%{version}/%{name}-%{version}.tar.bz2
Patch0: %{name}-desktop.patch
BuildRequires: intltool
BuildRequires: python
BuildRequires: update-desktop-files
BuildRequires: fdupes
Requires: gstreamer-0_10-plugins-good
Requires: python-gstreamer-0_10
Requires: python-gtk
Requires: python-xdg
BuildRoot: %{_tmppath}/%{name}-%{version}-build
%py_requires
%if 0%{?suse_version} > 1110
BuildArch: noarch
%else
%define python_sitelib %py_sitedir
%endif
%description
Whaaw Media Player is a minimalistic media player based on GTK an GStreamer.
%prep
%setup -q
%patch0
find src/ -name '*.py' | xargs sed -i '/^#! *\/usr\/bin\/env *python/d'
%build
python setup.py build
%install
python setup.py install --prefix=%{_prefix} --root=%{buildroot}
%suse_update_desktop_file %{name}
%fdupes %{buildroot}%{_datadir}
%find_lang %{name}
%clean
rm -rf %{buildroot}
%if 0%{?suse_version} >= 1140
%post
%desktop_database_post
%postun
%desktop_database_postun
%endif
%files -f %{name}.lang
%defattr(-,root,root)
%doc README COPYING
%{_bindir}/whaaw-thumbnailer
%{_bindir}/whaawmp
%{python_sitelib}/whaawmp
%{python_sitelib}/whaawmp-*.egg-info
%{_datadir}/applications/whaawmp.desktop
%{_datadir}/pixmaps/whaawmp.svg
%dir %{_datadir}/thumbnailers
%{_datadir}/thumbnailers/whaaw-thumbnailer.desktop
%{_datadir}/whaawmp
%changelog