disable python2

This commit is contained in:
jackie_wu 2020-11-02 11:31:16 +08:00
parent 662bb05450
commit e20004afdb

View File

@ -1,6 +1,6 @@
Name: pyusb Name: pyusb
Version: 1.0.2 Version: 1.0.2
Release: 2 Release: 3
Summary: Python bindings for libusb Summary: Python bindings for libusb
License: BSD License: BSD
URL: https://github.com/pyusb/pyusb/ URL: https://github.com/pyusb/pyusb/
@ -11,19 +11,11 @@ BuildArch: noarch
PyUSB aims to be an easy to use Python module to access USB devices. PyUSB aims to be an easy to use Python module to access USB devices.
PyUSB relies on a native system library for USB access. 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 %package -n python3-pyusb
Summary: pythonbindingsforlibusb Summary: %summary
%{?python_provide:%python_provide python3-pyusb} %{?python_provide:%python_provide python3-pyusb}
BuildRequires: python3-devel BuildRequires: python3-devel
BuildRequires: python3-setuptools
%description -n python3-pyusb %description -n python3-pyusb
The PyUSB module provides for Python easy access to the host mach The PyUSB module provides for Python easy access to the host mach
@ -33,21 +25,18 @@ ine's Universal Serial Bus(USB) system.
sed -i -e 's/\r//g' README.rst sed -i -e 's/\r//g' README.rst
%build %build
%py2_build
%py3_build %py3_build
%install %install
%py2_install
%py3_install %py3_install
%files -n python2-pyusb
%doc README.rst LICENSE
%{python2_sitelib}/*
%files -n python3-pyusb %files -n python3-pyusb
%doc README.rst LICENSE %doc README.rst LICENSE
%{python3_sitelib}/* %{python3_sitelib}/*
%changelog %changelog
* 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 * Wed Apr 22 2020 yanan li <liyanan032@huawei.com> - 1.0.2-2
- package init - package init