!11 remove python2

From: @wcc_140409
Reviewed-by: @xiezhipeng1
Signed-off-by: @xiezhipeng1
This commit is contained in:
openeuler-ci-bot 2020-10-30 19:44:18 +08:00 committed by Gitee
commit 36fc0ecc0f

View File

@ -3,26 +3,18 @@ Python classes to extract information from the Linux kernel /proc files.
Name: python-linux-procfs
Version: 0.6.2
Release: 3
Release: 4
Summary: Linux /proc abstraction classes
License: GPLv2
URL: https://rt.wiki.kernel.org/index.php/Tuna
Source: https://git.kernel.org/pub/scm/libs/python/%{name}/%{name}.git/snapshot/%{name}-%{version}.tar.gz
BuildArch: noarch
BuildRequires: python2-devel python2-setuptools
BuildRequires: python3-devel python3-setuptools
Patch0: backport-Fix-import-of-utilist.patch
%description %_description
%package -n python2-linux-procfs
Summary: %summary
%{?python_provide:%python_provide python2-linux-procfs}
Requires: python2-six
%description -n python2-linux-procfs %_description
%package -n python3-linux-procfs
Summary: %summary
%{?python_provide:%python_provide python3-linux-procfs}
@ -34,21 +26,11 @@ Requires: python3-six
%autosetup -p1
%build
%py2_build
%py3_build
%install
%py2_install
%py3_install
%files -n python2-linux-procfs
%defattr(0755,root,root,0755)
%{python2_sitelib}/procfs/
%{_bindir}/pflags
%defattr(0644,root,root,0755)
%{python2_sitelib}/*.egg-info
%license COPYING
%files -n python3-linux-procfs
%defattr(0755,root,root,0755)
%{_bindir}/pflags
@ -58,6 +40,12 @@ Requires: python3-six
%license COPYING
%changelog
* Fri Oct 30 2020 wuchaochao <wuchaochao4@huawei.com> - 0.6.2-4
- Type:bufix
- CVE:NA
- SUG:NA
- DESC:remove python2
* Sat Sep 5 2020 shixuantong <shixuantong@huawei.com> - 0.6.2-3
- update Source0