File python-portmidi.spec of Package python-portmidi

#
# spec file for package python-portmidi
#
# 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:           python-portmidi
Version:        0.0.7
Release:        0
License:        MIT
Summary:        Python Wrappings for PortMidi
Url:            https://bitbucket.org/aalex/pyportmidi
Group:          Development/Languages/Python
Source:         https://bitbucket.org/aalex/pyportmidi/downloads/python-portmidi-0.0.7.tar.gz
Patch0:         %{name}-noporttime.patch
BuildRequires:  alsa-devel
BuildRequires:  portmidi-devel
BuildRequires:  pyrex
BuildRequires:  python-devel
BuildRoot:      %{_tmppath}/%{name}-%{version}-build

%description
pyPortMidi: support streaming realtime audio from Python
using the cross-platform PortMidi C library

%prep
%setup -q
%patch0 -p 1

%build
CFLAGS="%{optflags}" python setup.py build

%install
python setup.py install --prefix=%{_prefix} --root=%{buildroot}

%files
%defattr(-,root,root,-)
%{python_sitearch}/*

%changelog
openSUSE Build Service is sponsored by