File python-libusb1.spec of Package python-libusb1
#
# spec file for package python-libusb1
#
# Copyright (c) 2016 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-libusb1
Version: 1.6
Release: 0
License: LGPL-2.1+
Summary: Pure-python wrapper for libusb-1.0
Url: https://pypi.python.org/pypi/libusb1
Group: System/Libraries
Source: libusb1-%{version}.tar.gz
BuildRequires: python python-setuptools
%if 0%{?suse_version}
%py_requires
%if 0%{?suse_version} > 1110
BuildArch: noarch
%endif
%endif
BuildRoot: %{_tmppath}/%{name}-%{version}-build
Requires: libusb-1_0-0
%description
Pure-python wrapper for libusb-1.0
Supports all transfer types, both in synchronous and asynchronous mode.
%prep
%setup -q -n libusb1-%{version}
%build
%__python setup.py build
%install
%__python setup.py install --prefix=%{_prefix} --root=%{buildroot}
%files
%defattr(-,root,root)
%doc COPYING COPYING.LESSER README.rst
%{python_sitelib}/usb1/
%{python_sitelib}/libusb1.py
%{python_sitelib}/libusb1.pyc
%{python_sitelib}/libusb1-%{version}-py%{py_ver}.egg-info