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

Name:           whaawmp
Release:        13.<RELEASE3>
License:        GPLv3+
Summary:        Minimalistic media player
Group:          Productivity/Multimedia/Video/Players
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
%if 0%{?suse_version} > 1110
BuildArch:      noarch
%define python_sitelib %py_sitedir

Whaaw Media Player is a minimalistic media player based on GTK an GStreamer.

%setup -q
find src/ -name '*.py' | xargs sed -i '/^#! *\/usr\/bin\/env *python/d'

python build

python install --prefix=%{_prefix} --root=%{buildroot}
%suse_update_desktop_file %{name}
%fdupes %{buildroot}%{_datadir}
%find_lang %{name}

rm -rf %{buildroot}

%if 0%{?suse_version} >= 1140



%files -f %{name}.lang
%dir %{_datadir}/thumbnailers

openSUSE Build Service is sponsored by