pyusb/pyusb.spec

43 lines
1.1 KiB
RPMSpec
Raw Normal View History

2020-06-19 16:57:47 +08:00
Name: pyusb
Version: 1.0.2
2020-11-02 11:31:16 +08:00
Release: 3
2020-06-19 16:57:47 +08:00
Summary: Python bindings for libusb
License: BSD
URL: https://github.com/pyusb/pyusb/
Source0: https://github.com/pyusb/pyusb/archive/v%{version}.tar.gz
BuildRequires: libusb-devel
BuildArch: noarch
%description
PyUSB aims to be an easy to use Python module to access USB devices.
PyUSB relies on a native system library for USB access.
%package -n python3-pyusb
2020-11-02 11:31:16 +08:00
Summary: %summary
2020-06-19 18:31:53 +08:00
%{?python_provide:%python_provide python3-pyusb}
2020-06-19 16:57:47 +08:00
BuildRequires: python3-devel
2020-11-02 11:31:16 +08:00
BuildRequires: python3-setuptools
2020-06-19 16:57:47 +08:00
%description -n python3-pyusb
The PyUSB module provides for Python easy access to the host mach
ine's Universal Serial Bus(USB) system.
%prep
%autosetup -n pyusb-%{version} -p1
sed -i -e 's/\r//g' README.rst
%build
%py3_build
%install
%py3_install
%files -n python3-pyusb
%doc README.rst LICENSE
%{python3_sitelib}/*
%changelog
2020-11-02 11:31:16 +08:00
* Wed Oct 21 2020 zhangpeng <zhangpeng228@huawei.com> -1.0.2-3
- dropped python2.7
2020-06-19 16:57:47 +08:00
* Wed Apr 22 2020 yanan li <liyanan032@huawei.com> - 1.0.2-2
- package init