diff --git a/psutil-5.8.0.tar.gz b/psutil-5.8.0.tar.gz deleted file mode 100644 index 7907528ad641da2813670373179e89f2e94e168c..0000000000000000000000000000000000000000 Binary files a/psutil-5.8.0.tar.gz and /dev/null differ diff --git a/psutil-5.9.0.tar.gz b/psutil-5.9.0.tar.gz new file mode 100644 index 0000000000000000000000000000000000000000..38992b34f45dc4a0f40fbabdf1bc6ced2d022136 Binary files /dev/null and b/psutil-5.9.0.tar.gz differ diff --git a/python-psutil.spec b/python-psutil.spec index 6a6ee459fa4cca073c6b8fe994e42dc721ff6182..4ea834950e406e2c5eef5efa87879ff0f6ce166a 100644 --- a/python-psutil.spec +++ b/python-psutil.spec @@ -1,12 +1,11 @@ +%global _empty_manifest_terminate_build 0 Name: python-psutil -Version: 5.8.0 +Version: 5.9.0 Release: 1 -Summary: A library for retrieving information on running processes and system utilization in Python +Summary: Cross-platform lib for process and system monitoring 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 - -BuildRequires: gcc python3-devel procps-ng python3-mock +Source0: https://files.pythonhosted.org/packages/47/b6/ea8a7728f096a597f0032564e8013b705aa992a0990becd773dcc4d7b4a7/psutil-5.9.0.tar.gz %description psutil (process and system utilities) is a cross-platform library for retrieving information @@ -15,25 +14,34 @@ 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 python3-psutil -Summary: A library for retrieving information on running processes and system utilization in Python3 -%{?python_provide:%python_provide python3-psutil} - +%package -n python3-psutil +Summary: Cross-platform lib for process and system monitoring in Python. +Provides: python-psutil +# Base build requires +BuildRequires: python3-devel +BuildRequires: python3-setuptools +BuildRequires: python3-pbr +BuildRequires: python3-pip +BuildRequires: python3-wheel %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. +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. -%prep -%autosetup -n psutil-%{version} -p1 +%package help +Summary: Cross-platform lib for process and system monitoring in Python. +Provides: python3-psutil-doc +%description help +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. -find psutil -name \*.py | while read file; do - sed -i.orig -e '1{/^#!/d}' $file && \ - touch -r $file.orig $file && \ - rm $file.orig -done +%prep +%autosetup -n psutil-%{version} %build %py3_build @@ -41,13 +49,42 @@ done %install %py3_install -%files -n python3-psutil -%license LICENSE -%doc CREDITS HISTORY.rst README.rst -%{python3_sitearch}/psutil/ -%{python3_sitearch}/*.egg-info +install -d -m755 %{buildroot}/%{_pkgdocdir} +if [ -d doc ]; then cp -arf doc %{buildroot}/%{_pkgdocdir}; fi +if [ -d docs ]; then cp -arf docs %{buildroot}/%{_pkgdocdir}; fi +if [ -d example ]; then cp -arf example %{buildroot}/%{_pkgdocdir}; fi +if [ -d examples ]; then cp -arf examples %{buildroot}/%{_pkgdocdir}; fi +pushd %{buildroot} +if [ -d usr/lib ]; then + find usr/lib -type f -printf "/%h/%f\n" >> filelist.lst +fi +if [ -d usr/lib64 ]; then + find usr/lib64 -type f -printf "/%h/%f\n" >> filelist.lst +fi +if [ -d usr/bin ]; then + find usr/bin -type f -printf "/%h/%f\n" >> filelist.lst +fi +if [ -d usr/sbin ]; then + find usr/sbin -type f -printf "/%h/%f\n" >> filelist.lst +fi +touch doclist.lst +if [ -d usr/share/man ]; then + find usr/share/man -type f -printf "/%h/%f.gz\n" >> doclist.lst +fi +popd +mv %{buildroot}/filelist.lst . +mv %{buildroot}/doclist.lst . + +%files -n python3-psutil -f filelist.lst +%dir %{python3_sitearch}/* + +%files help -f doclist.lst +%{_docdir}/* %changelog +* Thu Jun 02 2022 OpenStack_SIG - 5.9.0-1 +- Upgrade package python3-psutil to version 5.9.0 + * Thu Jul 15 2021 OpenStack_SIG - 5.8.0-1 - Update version to 5.8.0