File python-python-librtmp.spec of Package python-python-librtmp

#
# spec file for package python-python-librtmp
#
# 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-python-librtmp
Version:        0.3.0
Release:        0
Summary:        Python bindings for librtmp, built with cffi
License:        BSD-2-Clause
Group:          Development/Languages/Python
Url:            https://github.com/chrippa/python-librtmp
Source:         https://github.com/chrippa/python-librtmp/archive/v%{name}.tar.gz#/python-librtmp-%{version}.tar.gz
BuildRequires:  librtmp-devel
BuildRequires:  python-cffi >= 1.0.1
BuildRequires:  python-devel
BuildRequires:  python-setuptools
BuildRequires:  python-singledispatch
Requires:       python-cffi >= 1.0.1
Requires:       python-singledispatch
BuildRoot:      %{_tmppath}/%{name}-%{version}-build

%description
This package provides the RTMP client library. It uses the implementation
provided by librtmp via cffi.

%prep
%setup -q -n python-librtmp-%{version}

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

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

%check
python setup.py test

%files
%defattr(-,root,root,-)
%doc LICENSE README.rst AUTHORS.rst
%{python_sitearch}/*

%changelog
openSUSE Build Service is sponsored by