File python-shout.spec of Package python-shout

# spec file for package python-python-shout
# Copyright (c) 2013 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:           python-shout
Version:        0.2.1
Release:        0
License:        LGPL-2.0
Summary:        Bindings for libshout 2
Group:          Development/Languages/Python
Patch:		python-shout-fix-send.diff
BuildRequires:	libogg-devel
BuildRequires:	libshout-devel >= 2.2
BuildRequires:	libspeex-devel libspeex1
BuildRequires:	libtheora-devel
BuildRequires:	libvorbis-devel
BuildRequires:	pkgconfig
BuildRequires:	python-devel
BuildRoot:      %{_tmppath}/%{name}-%{version}-build
%if 0%{?suse_version} && 0%{?suse_version} <= 1110
%{!?python_sitearch: %global python_sitearch %(python -c "from distutils.sysconfig import get_python_lib; print get_python_lib(1)")}

This is shout-python, a set of bindings for libshout 2.

shout-python allows you to act as a source for icecast 1 and 2, and
shoutcast. This module includes inline documentation, or see
the included for a demonstration of its usage.

%setup -q -n python-shout-%{version}
%patch -p1

CFLAGS="%{optflags}" python build

python install --prefix=%{_prefix} --root=%{buildroot}