diff --git a/pyusb.spec b/pyusb.spec new file mode 100644 index 0000000000000000000000000000000000000000..4cf553c3445acc2912a57a890cb455feafe56dbc --- /dev/null +++ b/pyusb.spec @@ -0,0 +1,44 @@ +Name: pyusb +Version: 1.0.2 +Release: 1 +Summary: Python bindings for libusb +License: BSD +URL: https://github.com/pyusb/pyusb/ +Source0: https://github.com/pyusb/pyusb/archive/refs/tags/v1.0.2.tar.gz +BuildRequires: libusb-devel +BuildArch: noarch + +%global _description\ +PyUSB provides easy USB access to python. The module contains classes and\ +methods to support most USB operations. + +%description %_description + +%package -n python3-pyusb +Summary: %summary +%{?python_provide:%python_provide python3-pyusb} +BuildRequires: python3-devel +BuildRequires: python3-setuptools + +%description -n python3-pyusb +PyUSB provides easy USB access to python. The module contains classes and +methods to support most USB operations. + +%prep +%autosetup +sed -i -e 's/\r//g' README.rst + +%build +%py3_build + +%install +%py3_install + +%files -n python3-pyusb +%license LICENSE +%doc README.rst +%{python3_sitelib}/* + +%changelog +* Thu Jul 08 2021 wanglixing -1.0.2-1 +- init project diff --git a/v1.0.2.tar.gz b/v1.0.2.tar.gz new file mode 100644 index 0000000000000000000000000000000000000000..1ffb9371b05724add539b20b0deea48402eb3d0e Binary files /dev/null and b/v1.0.2.tar.gz differ