From: Jan Palus Date: Thu, 8 Jul 2021 15:04:12 +0000 (+0200) Subject: up to 5.8.0 X-Git-Tag: auto/th/python-psutil-5.8.0-1 X-Git-Url: http://git.pld-linux.org/gitweb.cgi?a=commitdiff_plain;h=f7c3f210990a1014312c13be55c8f7ff17f0e92f;p=packages%2Fpython-psutil.git up to 5.8.0 - linux patch no longer needed --- diff --git a/python-psutil-linux.patch b/python-psutil-linux.patch deleted file mode 100644 index ed53210..0000000 --- a/python-psutil-linux.patch +++ /dev/null @@ -1,10 +0,0 @@ ---- psutil-release-5.6.7/psutil/_pslinux.py.orig 2019-11-26 08:25:07.000000000 +0100 -+++ psutil-release-5.6.7/psutil/_pslinux.py 2019-12-30 19:25:22.441270337 +0100 -@@ -1107,6 +1107,7 @@ - with open_text(os.path.join(root, 'stat')) as f: - fields = f.read().strip().split() - name = os.path.basename(root) -+ del fields[11:] # newer kernels give more values - (reads, reads_merged, rbytes, rtime, writes, writes_merged, - wbytes, wtime, _, busy_time, _) = map(int, fields) - yield (name, reads, writes, rbytes, wbytes, rtime, diff --git a/python-psutil.spec b/python-psutil.spec index 401245a..470a141 100644 --- a/python-psutil.spec +++ b/python-psutil.spec @@ -11,14 +11,13 @@ Summary: A cross-platform process and system utilities module for Python Summary(pl.UTF-8): Wieloplatformowe narzędzia do procesów i systemu dla Pythona Name: python-%{module} -Version: 5.6.7 -Release: 2 +Version: 5.8.0 +Release: 1 License: BSD Group: Development/Languages/Python #Source0Download: https://pypi.org/simple/psutil/ Source0: https://github.com/giampaolo/psutil/archive/release-%{version}/%{module}-%{version}.tar.gz -# Source0-md5: 5cc1fca56cf433a68a729a8c524f7b0e -Patch0: %{name}-linux.patch +# Source0-md5: cd7fdc361dfeae7553c649b0b9329e5b URL: https://github.com/giampaolo/psutil BuildRequires: rpm-pythonprov BuildRequires: rpmbuild(macros) >= 1.714 @@ -82,7 +81,6 @@ Dokumentacja API modułu Pythona psutil. %prep %setup -q -n %{module}-release-%{version} -%patch0 -p1 %if %{with tests} # prepare subdir to run tests from