From 0eac1be01bbc63781dd5588488954f4e28161f7b Mon Sep 17 00:00:00 2001 From: CoprDistGit Date: Mon, 10 Apr 2023 07:22:04 +0000 Subject: automatic import of python-psutil --- .gitignore | 1 + python-psutil.spec | 79 ++++++++++++++++++++++++++++++++++++++++++++++++++++++ sources | 1 + 3 files changed, 81 insertions(+) create mode 100644 python-psutil.spec create mode 100644 sources diff --git a/.gitignore b/.gitignore index e69de29..de30f6b 100644 --- a/.gitignore +++ b/.gitignore @@ -0,0 +1 @@ +/psutil-5.9.4.tar.gz diff --git a/python-psutil.spec b/python-psutil.spec new file mode 100644 index 0000000..686a6ed --- /dev/null +++ b/python-psutil.spec @@ -0,0 +1,79 @@ +%global _empty_manifest_terminate_build 0 +Name: python-psutil +Version: 5.9.4 +Release: 1 +Summary: Cross-platform lib for process and system monitoring in Python. +License: BSD-3-Clause +URL: https://github.com/giampaolo/psutil +Source0: https://mirrors.nju.edu.cn/pypi/web/packages/3d/7d/d05864a69e452f003c0d77e728e155a89a2a26b09e64860ddd70ad64fb26/psutil-5.9.4.tar.gz + +Requires: python3-ipaddress +Requires: python3-mock +Requires: python3-enum34 +Requires: python3-pywin32 +Requires: python3-wmi + +%description + + +%package -n python3-psutil +Summary: Cross-platform lib for process and system monitoring in Python. +Provides: python-psutil +BuildRequires: python3-devel +BuildRequires: python3-setuptools +BuildRequires: python3-pip +BuildRequires: python3-cffi +BuildRequires: gcc +BuildRequires: gdb +%description -n python3-psutil + + +%package help +Summary: Development documents and examples for psutil +Provides: python3-psutil-doc +%description help + + +%prep +%autosetup -n psutil-5.9.4 + +%build +%py3_build + +%install +%py3_install +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 +* Mon Apr 10 2023 Python_Bot - 5.9.4-1 +- Package Spec generated diff --git a/sources b/sources new file mode 100644 index 0000000..6cec23e --- /dev/null +++ b/sources @@ -0,0 +1 @@ +f72751d05b781757b7cd9bc375d2e351 psutil-5.9.4.tar.gz -- cgit v1.2.3