python-psutil/python-psutil.spec

98 lines
3.9 KiB
RPMSpec
Raw Permalink Normal View History

2019-11-27 10:30:18 +08:00
Name: python-psutil
Version: 5.4.3
Release: 13
2019-11-27 10:30:18 +08:00
Summary: A library for retrieving information on running processes and system utilization in Python
License: BSD
URL: https://github.com/giampaolo/psutil
Source0: https://github.com/giampaolo/psutil/archive/release-%{version}.tar.gz#/psutil-%{version}.tar.gz
2021-10-20 19:26:44 +08:00
Patch0001: CVE-2019-18874-1.patch
Patch0002: CVE-2019-18874-2.patch
Patch0003: 0001-Fix-1354-Linux-disk_io_counters-fails-on-Linux-kerne.patch
Patch0004: 0002-Pass-python_requires-argument-to-setuptools-1208.patch
Patch0005: 0003-fix-compatibility-with-python-2.6.x-1216.patch
Patch0006: 0004-1216-give-credit-to-hexaclock.patch
2021-10-20 19:26:44 +08:00
2019-11-27 10:30:18 +08:00
BuildRequires: gcc python2-devel python3-devel procps-ng python2-mock python3-mock python2-ipaddress
%description
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 Python.
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 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}
%description -n python3-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 Python3.
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.
%prep
%autosetup -n psutil-release-%{version} -p1
find psutil -name \*.py | while read file; do
sed -i.orig -e '1{/^#!/d}' $file && \
touch -r $file.orig $file && \
rm $file.orig
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
%{python3_sitearch}/psutil/
%{python3_sitearch}/*.egg-info
%changelog
* Fri Jan 12 2024 zhangliangpengkun<zhangliangpengkun@xfusion.com> - 5.4.3-13
- #1216 - give credit to @hexaclock
* Wed Dec 27 2023 zhangliangpengkun<zhangliangpengkun@xfusion.com> - 5.4.3-12
- fix compatibility with python 2.6.x
* Thu Dec 21 2023 zhangliangpengkun<zhangliangpengkun@xfusion.com> - 5.4.3-11
- Pass python_requires argument to setuptools (#1208)
* Wed Oct 18 2023 zhangliangpengkun<zhangliangpengkun@xfusion.com> - 5.4.3-10
- Fix Linuxdisk io counters fails on Linux kernel
2021-10-20 19:26:44 +08:00
* Wed Oct 20 2021 yaoxin <yaoxin30@huawei.com> - 5.4.3-9
- Fix CVE-2019-18874
2020-08-21 11:28:27 +08:00
* Fri Aug 21 2020 shixuantong <shixuantong@huawei.com> - 5.4.3-8
- add release version for rebuild
2019-11-27 10:30:18 +08:00
* Sat Nov 23 2019 zhouyihang <zhouyihang1@huawei.com> - 5.4.3-7
- Package init