From ddfa0b19fa0a65bbb5abfa5dcb8d428386bb9010 Mon Sep 17 00:00:00 2001 From: FFrog Date: Fri, 28 Jan 2022 15:14:41 +0800 Subject: [PATCH] remove the support of python2 --- python-psutil.spec | 27 +++++---------------------- 1 file changed, 5 insertions(+), 22 deletions(-) diff --git a/python-psutil.spec b/python-psutil.spec index e40fd8f..0239f8b 100644 --- a/python-psutil.spec +++ b/python-psutil.spec @@ -1,6 +1,6 @@ Name: python-psutil Version: 5.4.3 -Release: 9 +Release: 10 Summary: A library for retrieving information on running processes and system utilization in Python License: BSD URL: https://github.com/giampaolo/psutil @@ -9,7 +9,7 @@ Source0: https://github.com/giampaolo/psutil/archive/release-%{version}.t Patch0001: CVE-2019-18874-1.patch Patch0002: CVE-2019-18874-2.patch -BuildRequires: gcc python2-devel python3-devel procps-ng python2-mock python3-mock python2-ipaddress +BuildRequires: gcc python3-devel procps-ng python3-mock %description psutil (process and system utilities) is a cross-platform library for retrieving information @@ -18,18 +18,6 @@ It is useful mainly for system monitoring, profiling and limiting process resour management of running processes.It implements many functionalities offered by classic UNIX command line tools such as ps, top, iotop, lsof, netstat, ifconfig, free and others. -%package -n python2-psutil -Summary: A library for retrieving information on running processes and system utilization in Python2 -%{?python_provide:%python_provide python2-psutil} -Obsoletes: python-psutil < 3.1.1-3 - -%description -n python2-psutil -psutil (process and system utilities) is a cross-platform library for retrieving information -on running processes and system utilization (CPU, memory, disks, network, sensors) in Python2. -It is useful mainly for system monitoring, profiling and limiting process resources and -management of running processes.It implements many functionalities offered by classic UNIX -command line tools such as ps, top, iotop, lsof, netstat, ifconfig, free and others. - %package -n python3-psutil Summary: A library for retrieving information on running processes and system utilization in Python3 %{?python_provide:%python_provide python3-psutil} @@ -51,19 +39,11 @@ find psutil -name \*.py | while read file; do done %build -%py2_build %py3_build %install -%py2_install %py3_install -%files -n python2-psutil -%license LICENSE -%doc CREDITS HISTORY.rst README.rst -%{python2_sitearch}/psutil/ -%{python2_sitearch}/*.egg-info - %files -n python3-psutil %license LICENSE %doc CREDITS HISTORY.rst README.rst @@ -71,6 +51,9 @@ done %{python3_sitearch}/*.egg-info %changelog +* Thur Jan 27 2022 lijiawei - 5.4.3-10 +- Remove python2 support + * Wed Oct 20 2021 yaoxin - 5.4.3-9 - Fix CVE-2019-18874 -- Gitee