File python-pyopenal.spec of Package python-pyopenal

#
# spec file for package PyOpenAL
#
# Copyright (c) 2016 SUSE LINUX 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-pyopenal
Version:        0.1.6
Release:        0
Summary:        OpenAL Python bindings
License:        GPL-2.0
Group:          Development/Languages/Python
Url:            http://home.gna.org/oomadness/en/pyopenal/
Source:         http://download.gna.org/pyopenal/PyOpenAL-%{version}.tar.gz
BuildRequires:  freealut-devel
BuildRequires:  openal-devel
BuildRequires:  python-devel
BuildRequires:  fdupes
BuildRoot:      %{_tmppath}/%{name}-%{version}-build

%description
OpenAL port to Python.

%prep
%setup -q -n PyOpenAL-%{version}

%build
python setup.py build

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

%fdupes %{buildroot}%{python_sitearch}

%files
%defattr(-,root,root)
%doc README CHANGES AUTHORS
%{python_sitearch}/pyopenal
%{python_sitearch}/_openal.so
%{python_sitearch}/*.egg-info

%changelog