!5 delete python2 dependency

From: @weiwei_150212
Reviewed-by: @hanxinke
Signed-off-by: @hanxinke
This commit is contained in:
openeuler-ci-bot 2020-11-02 16:24:03 +08:00 committed by Gitee
commit c092b3ef77

View File

@ -1,7 +1,7 @@
%global srcname pyudev %global srcname pyudev
Name: python-%{srcname} Name: python-%{srcname}
Version: 0.22.0 Version: 0.22.0
Release: 1 Release: 2
Summary: A libudev binding Summary: A libudev binding
License: LGPLv2+ License: LGPLv2+
URL: http://pypi.python.org/pypi/pyudev URL: http://pypi.python.org/pypi/pyudev
@ -16,15 +16,6 @@ and you can use it after a quick learning.
%description %_description %description %_description
%package -n python2-%{srcname}
Summary: %summary
BuildRequires: python2-devel python2-setuptools
Requires: glibc systemd python2-six
Provides: python2-%{srcname}-glib python2-%{srcname}-qt4 python2-%{srcname}-qt5 python2-%{srcname}-pyside python2-%{srcname}-wx
Obsoletes: python2-%{srcname}-glib python2-%{srcname}-qt4 python2-%{srcname}-qt5 python2-%{srcname}-pyside python2-%{srcname}-wx
%description -n python2-%{srcname} %_description
%{?python_provide:%python_provide python2-%{srcname}}
%package -n python3-%{srcname} %package -n python3-%{srcname}
Summary: A libudev binding Summary: A libudev binding
BuildRequires: python3-devel python3-setuptools BuildRequires: python3-devel python3-setuptools
@ -39,19 +30,11 @@ Obsoletes: python3-%{srcname}-qt4 python3-%{srcname}-qt5
rm -rf pyudev.egg-info rm -rf pyudev.egg-info
%build %build
%py2_build
%py3_build %py3_build
%install %install
%py2_install
%py3_install %py3_install
%files -n python2-%{srcname}
%license COPYING
%doc README.rst CHANGES.rst
%{python2_sitelib}/pyudev/
%{python2_sitelib}/pyudev-%{version}-*.egg-info
%files -n python3-%{srcname} %files -n python3-%{srcname}
%license COPYING %license COPYING
%doc README.rst CHANGES.rst %doc README.rst CHANGES.rst
@ -66,6 +49,9 @@ rm -rf pyudev.egg-info
%changelog %changelog
* Fri Oct 30 2020 tianwei <tianwei12@huawei.com> - 0.22.0-2
- remove python2
* Fri Jul 24 2020 tianwei <tianwei12@huawei.com> - 0.22.0-1 * Fri Jul 24 2020 tianwei <tianwei12@huawei.com> - 0.22.0-1
- update to release 0.22.0 - update to release 0.22.0