pyusb/pyusb.spec
2022-05-23 14:28:21 +08:00

47 lines
1.3 KiB
RPMSpec

Name: pyusb
Version: 1.2.1
Release: 1
Summary: Python bindings for libusb
License: BSD
URL: https://github.com/pyusb/pyusb/
Source0: https://github.com/pyusb/pyusb/releases/download/v%{version}/%{name}-%{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
Summary: %summary
%{?python_provide:%python_provide python3-pyusb}
BuildRequires: python3-devel
BuildRequires: python3-setuptools
BuildRequires: python3-setuptools_scm
%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
* Mon May 23 2022 yaoxin <yaoxin30@h-partners.com> - 1.2.1-1
- Update to 1.2.1
* Wed Oct 21 2020 zhangpeng <zhangpeng228@huawei.com> -1.0.2-3
- dropped python2.7
* Wed Apr 22 2020 yanan li <liyanan032@huawei.com> - 1.0.2-2
- package init