!11 remove python2
From: @wcc_140409 Reviewed-by: @xiezhipeng1 Signed-off-by: @xiezhipeng1
This commit is contained in:
commit
36fc0ecc0f
@ -3,26 +3,18 @@ Python classes to extract information from the Linux kernel /proc files.
|
|||||||
|
|
||||||
Name: python-linux-procfs
|
Name: python-linux-procfs
|
||||||
Version: 0.6.2
|
Version: 0.6.2
|
||||||
Release: 3
|
Release: 4
|
||||||
Summary: Linux /proc abstraction classes
|
Summary: Linux /proc abstraction classes
|
||||||
License: GPLv2
|
License: GPLv2
|
||||||
URL: https://rt.wiki.kernel.org/index.php/Tuna
|
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
|
Source: https://git.kernel.org/pub/scm/libs/python/%{name}/%{name}.git/snapshot/%{name}-%{version}.tar.gz
|
||||||
BuildArch: noarch
|
BuildArch: noarch
|
||||||
BuildRequires: python2-devel python2-setuptools
|
|
||||||
BuildRequires: python3-devel python3-setuptools
|
BuildRequires: python3-devel python3-setuptools
|
||||||
|
|
||||||
Patch0: backport-Fix-import-of-utilist.patch
|
Patch0: backport-Fix-import-of-utilist.patch
|
||||||
|
|
||||||
%description %_description
|
%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
|
%package -n python3-linux-procfs
|
||||||
Summary: %summary
|
Summary: %summary
|
||||||
%{?python_provide:%python_provide python3-linux-procfs}
|
%{?python_provide:%python_provide python3-linux-procfs}
|
||||||
@ -34,21 +26,11 @@ Requires: python3-six
|
|||||||
%autosetup -p1
|
%autosetup -p1
|
||||||
|
|
||||||
%build
|
%build
|
||||||
%py2_build
|
|
||||||
%py3_build
|
%py3_build
|
||||||
|
|
||||||
%install
|
%install
|
||||||
%py2_install
|
|
||||||
%py3_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
|
%files -n python3-linux-procfs
|
||||||
%defattr(0755,root,root,0755)
|
%defattr(0755,root,root,0755)
|
||||||
%{_bindir}/pflags
|
%{_bindir}/pflags
|
||||||
@ -58,6 +40,12 @@ Requires: python3-six
|
|||||||
%license COPYING
|
%license COPYING
|
||||||
|
|
||||||
%changelog
|
%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
|
* Sat Sep 5 2020 shixuantong <shixuantong@huawei.com> - 0.6.2-3
|
||||||
- update Source0
|
- update Source0
|
||||||
|
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user