Package init
This commit is contained in:
parent
c818e4893e
commit
956b8f3f71
53
pyusb.spec
Normal file
53
pyusb.spec
Normal file
@ -0,0 +1,53 @@
|
|||||||
|
Name: pyusb
|
||||||
|
Version: 1.0.2
|
||||||
|
Release: 2
|
||||||
|
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 python2-pyusb
|
||||||
|
Summary: python bindings for libusb
|
||||||
|
%{?python_provide:%python_provide python2-pyusb}
|
||||||
|
BuildRequires: python2-devel
|
||||||
|
Provides: pyusb = %{version}-%{release}
|
||||||
|
Obsoletes: pyusb < %{version}-%{release}
|
||||||
|
%description -n python2-pyusb
|
||||||
|
The PyUSB module provides for Python easy access to the host machine's Universal Serial Bus(USB) system.
|
||||||
|
|
||||||
|
%package -n python3-pyusb
|
||||||
|
Summary: pythonbindingsforlibusb
|
||||||
|
%{?python_provide:%python_providepython3-pyusb}
|
||||||
|
BuildRequires: python3-devel
|
||||||
|
%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
|
||||||
|
%py2_build
|
||||||
|
%py3_build
|
||||||
|
|
||||||
|
%install
|
||||||
|
%py2_install
|
||||||
|
%py3_install
|
||||||
|
|
||||||
|
%files -n python2-pyusb
|
||||||
|
%doc README.rst LICENSE
|
||||||
|
%{python2_sitelib}/*
|
||||||
|
|
||||||
|
%files -n python3-pyusb
|
||||||
|
%doc README.rst LICENSE
|
||||||
|
%{python3_sitelib}/*
|
||||||
|
|
||||||
|
%changelog
|
||||||
|
* Wed Apr 22 2020 yanan li <liyanan032@huawei.com> - 1.0.2-2
|
||||||
|
- package init
|
||||||
4
pyusb.yaml
Normal file
4
pyusb.yaml
Normal file
@ -0,0 +1,4 @@
|
|||||||
|
version_control: github
|
||||||
|
src_repo: pyusb/pyusb
|
||||||
|
tag_prefix: ^v
|
||||||
|
seperator: .
|
||||||
BIN
v1.0.2.tar.gz
Normal file
BIN
v1.0.2.tar.gz
Normal file
Binary file not shown.
Loading…
x
Reference in New Issue
Block a user