Drop python 2.

This commit is contained in:
Gwyn Ciesla 2019-10-21 20:51:17 -05:00
parent dc7704ee68
commit 889183fccc

View File

@ -1,6 +1,6 @@
Name: pyusb
Version: 1.0.2
Release: 5%{?dist}
Release: 6%{?dist}
Summary: Python bindings for libusb
License: BSD
URL: https://github.com/pyusb/pyusb/
@ -14,16 +14,6 @@ methods to support most USB operations.
%description %_description
%package -n python2-pyusb
Summary: %summary
%{?python_provide:%python_provide python2-pyusb}
BuildRequires: python2-devel
# Remove before F30
Provides: pyusb = %{version}-%{release}
Obsoletes: pyusb < %{version}-%{release}
%description -n python2-pyusb %_description
%package -n python3-pyusb
Summary: %summary
%{?python_provide:%python_provide python3-pyusb}
@ -38,24 +28,20 @@ methods to support most USB operations.
sed -i -e 's/\r//g' README.rst
%build
%py2_build
%py3_build
%install
%py2_install
%py3_install
%files -n python2-pyusb
%license LICENSE
%doc README.rst
%{python2_sitelib}/*
%files -n python3-pyusb
%license LICENSE
%doc README.rst
%{python3_sitelib}/*
%changelog
* Mon Oct 21 2019 Gwyn Ciesla <gwync@protonmail.com> - 1.0.2-6
- Drop Python 2.
* Thu Oct 03 2019 Miro Hrončok <mhroncok@redhat.com> - 1.0.2-5
- Rebuilt for Python 3.8.0rc1 (#1748018)