From cbb985be013b07dc9b5336dba22ba108a662116d Mon Sep 17 00:00:00 2001 From: CentOS Sources Date: Tue, 14 Jul 2020 01:50:03 +0000 Subject: [PATCH] import python-linux-procfs-0.6.2-2.el8 --- .gitignore | 1 + .python-linux-procfs.metadata | 1 + ...n-linux-procfs-Fix-import-of-utilist.patch | 31 +++ SPECS/python-linux-procfs.spec | 203 ++++++++++++++++++ 4 files changed, 236 insertions(+) create mode 100644 .gitignore create mode 100644 .python-linux-procfs.metadata create mode 100644 SOURCES/python-linux-procfs-Fix-import-of-utilist.patch create mode 100644 SPECS/python-linux-procfs.spec diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..f4b5285 --- /dev/null +++ b/.gitignore @@ -0,0 +1 @@ +SOURCES/python-linux-procfs-0.6.2.tar.xz diff --git a/.python-linux-procfs.metadata b/.python-linux-procfs.metadata new file mode 100644 index 0000000..a04bc08 --- /dev/null +++ b/.python-linux-procfs.metadata @@ -0,0 +1 @@ +80a5eb670d223e598be511c6df79851b7e986c3d SOURCES/python-linux-procfs-0.6.2.tar.xz diff --git a/SOURCES/python-linux-procfs-Fix-import-of-utilist.patch b/SOURCES/python-linux-procfs-Fix-import-of-utilist.patch new file mode 100644 index 0000000..89ba358 --- /dev/null +++ b/SOURCES/python-linux-procfs-Fix-import-of-utilist.patch @@ -0,0 +1,31 @@ +From 208b963455fa5ff658b24e513639f27ef66920ce Mon Sep 17 00:00:00 2001 +From: John Kacur +Date: Wed, 24 Jun 2020 12:01:42 -0400 +Subject: [PATCH 1/2] python-linux-procfs: Fix import of utilist + +If procfs/utilist.py is not in your PYTHONPATH, the import can fail. +Specify it fully. + +Reported-by: David Runge +Suggested-by: Guy Streeter +Signed-off-by: John Kacur +--- + procfs/procfs.py | 2 +- + 1 file changed, 1 insertion(+), 1 deletion(-) + +diff --git a/procfs/procfs.py b/procfs/procfs.py +index a586ae2b0156..3cfa941ffdb9 100755 +--- a/procfs/procfs.py ++++ b/procfs/procfs.py +@@ -21,7 +21,7 @@ + import os, time + from functools import reduce + from six.moves import range +-from utilist import bitmasklist ++from procfs.utilist import bitmasklist + import platform + import re + +-- +2.21.3 + diff --git a/SPECS/python-linux-procfs.spec b/SPECS/python-linux-procfs.spec new file mode 100644 index 0000000..0b60150 --- /dev/null +++ b/SPECS/python-linux-procfs.spec @@ -0,0 +1,203 @@ +Name: python-linux-procfs +Version: 0.6.2 +Release: 2%{?dist} +License: GPLv2 +Summary: Linux /proc abstraction classes +Group: System Environment/Libraries +Source: https://git.kernel.org/pub/scm/libs/python/python-linux-procfs/python-linux-procfs.git/snapshot/%{name}-%{version}.tar.xz +URL: https://git.kernel.org/pub/scm/libs/python/python-linux-procfs/python-linux-procfs.git +# If upstream does not provide tarballs, to generate +# git clone git://git.kernel.org/pub/scm/libs/python/python-linux-procfs/python-linux-procfs.git +# cd python-linux-procfs +# git archive --format=tar --prefix=python-linux-procfs-%%{version}/ v%%{version} | xz -c > python-linux-procfs-%%{version}.tar.xz +BuildArch: noarch +BuildRequires: python3-devel +BuildRequires: python3-setuptools +BuildRoot: %(mktemp -ud %{_tmppath}/%{name}-%{version}-%{release}-XXXXXX) +Obsoletes: python-linux-procfs + +%global _description\ +Abstractions to extract information from the Linux kernel /proc files. + +# PATCHES +Patch1: python-linux-procfs-Fix-import-of-utilist.patch + +%description %_description + +%package -n python3-linux-procfs +Summary: %summary +%{?python_provide:%python_provide python3-linux-procfs} + +Requires: python3-six + +%description -n python3-linux-procfs %_description + +%prep +%autosetup -p1 + +%build +%py3_build + +%install +rm -rf %{buildroot} +%py3_install + +%clean +rm -rf %{buildroot} + +%files -n python3-linux-procfs +%defattr(0755,root,root,0755) +%{_bindir}/pflags +%{python3_sitelib}/procfs/ +%defattr(0644,root,root,0755) +%{python3_sitelib}/python_linux_procfs*.egg-info +%license COPYING + +%changelog +* Wed Jun 24 2020 John Kacur - 0.6.2-2 +- Resolves: rhbz#1850391 + +* Mon Jun 22 2020 John Kacur - 0.6.2-1 +- Add bitmasklist_test +- Clean-ups including using a more modern python spacing, tabbing, etc +- Fix to parse number of cpus correctly on s390(x) +Resolves: rhbz#1849215 + +* Wed Apr 03 2019 Clark Williams - 0.6-7 +- OSCI gating framework added +Resolves: rhbz#1682424 + +* Mon Jan 28 2019 John Kacur - 0.6-6 +- fix refreshing the cache +- fix removing vanished processes in pidstats +Resolves: rhbz#1669294 + +* Fri Nov 30 2018 John Kacur - 0.6-5 +- pflags - Ignore non-existent pids or process names +Resolves: rhbz#1654312 + +* Wed Nov 28 2018 John Kacur - 0.6-4 +- Use argparse to create a help option +Resolves: rhbz#1650159 + +* Tue Oct 16 2018 John Kacur - 0.6-3 +- python3 doesn't supply "reduce" by default, so import it +Resolves: rhbz#1639430 + +* Mon Aug 13 2018 John Kacur - 0.6-2 +- Obsoltes python-linux-procfs (just build the python3 version) +Resolves: rhbz#1589042 + +* Fri Aug 10 2018 John Kacur - 0.6-1 +- Sync with upstream source +Resolves: rhbz#1614869 + +* Wed Aug 8 2018 John Kacur - 0.5.1-7 +- Add some functions related to affinity from tuna +Resolves: rhbz#1522868 + +* Tue Jun 26 2018 John Kacur - 0.5.1-6 +- Fix upstream URL reference and source +Resolves: rhbz#1589938 + +* Thu May 31 2018 John Kacur - 0.5.1-5 +- Build only the python3 subpackage (needs to be done in rhel-8.0 too) +Resolves: rhbz#1567234 + +* Fri Feb 09 2018 Fedora Release Engineering - 0.5.1-4 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_28_Mass_Rebuild + +* Thu Jan 25 2018 Iryna Shcherbina - 0.5.1-3 +- Update Python 2 dependency declarations to new packaging standards + (See https://fedoraproject.org/wiki/FinalizingFedoraSwitchtoPython3) + +* Tue Nov 21 2017 Jiri Kastner - 0.5.1-2 +- missing defattr for _bindir + +* Tue Nov 21 2017 Jiri Kastner - 0.5.1-1 +- missed snippet in specfile for python2 only +- added scripts to setup.py, pflags renamed and added to setup.py + +* Mon Nov 20 2017 Jiri Kastner - 0.5-1 +- update to 0.5 + +* Sat Aug 19 2017 Zbigniew Jędrzejewski-Szmek - 0.4.10-4 +- Python 2 binary package renamed to python2-linux-procfs + See https://fedoraproject.org/wiki/FinalizingFedoraSwitchtoPython3 + +* Thu Jul 27 2017 Fedora Release Engineering - 0.4.10-3 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_27_Mass_Rebuild + +* Sat Feb 11 2017 Fedora Release Engineering - 0.4.10-2 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_26_Mass_Rebuild + +* Thu Dec 22 2016 Jiri Kastner - 0.4.10-1 +- update to latest release + +* Tue Jul 19 2016 Fedora Release Engineering - 0.4.6-7 +- https://fedoraproject.org/wiki/Changes/Automatic_Provides_for_Python_RPM_Packages + +* Thu Feb 04 2016 Fedora Release Engineering - 0.4.6-6 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_24_Mass_Rebuild + +* Thu Jun 18 2015 Fedora Release Engineering - 0.4.6-5 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_23_Mass_Rebuild + +* Fri Oct 10 2014 Jiri Kastner - 0.4.6-4 +- fix source and url + +* Sat Jun 07 2014 Fedora Release Engineering - 0.4.6-3 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_21_Mass_Rebuild + +* Sun Aug 04 2013 Fedora Release Engineering - 0.4.6-2 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_20_Mass_Rebuild + +* Fri Jun 14 2013 Jiri Kastner - 0.4.6-1 +- updated to 0.4.6 + +* Thu Jun 6 2013 Jiri Kastner - 0.4.5-1 +- Added support for parsing cgroups as a per thread attribute + +* Thu Feb 14 2013 Fedora Release Engineering - 0.4.4-8 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_19_Mass_Rebuild + +* Sat Jul 21 2012 Fedora Release Engineering - 0.4.4-7 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_18_Mass_Rebuild + +* Sat Jan 14 2012 Fedora Release Engineering - 0.4.4-6 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_17_Mass_Rebuild + +* Tue Feb 08 2011 Fedora Release Engineering - 0.4.4-5 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_15_Mass_Rebuild + +* Thu Jul 22 2010 David Malcolm - 0.4.4-4 +- Rebuilt for https://fedoraproject.org/wiki/Features/Python_2.7/MassRebuild + +* Sun Jul 26 2009 Fedora Release Engineering - 0.4.4-3 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_12_Mass_Rebuild + +* Thu Feb 26 2009 Fedora Release Engineering - 0.4.4-2 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_11_Mass_Rebuild + +* Tue Feb 10 2009 Arnaldo Carvalho de Melo - 0.4.4-1 +- Even more fixes due to the fedora review process + +* Mon Feb 9 2009 Arnaldo Carvalho de Melo - 0.4.3-1 +- Fixups due to the fedora review process + +* Tue Aug 12 2008 Arnaldo Carvalho de Melo - 0.4.2-1 +- interrupts: Add find_by_user_regex +- process: Always set the "cmdline" array, even if empty +- pidstats: Remove dead processes in find_by_name() +- pidstats: Add process class to catch dict references for late parsing +- pidstats: Move the /proc/PID/{stat,status} parsing to classes +- pidstats: Introduce process_flags method + +* Tue Aug 12 2008 Arnaldo Carvalho de Melo - 0.4-1 +- Per process flags needed by tuna + +* Fri Jun 13 2008 Arnaldo Carvalho de Melo - 0.3-1 +- Support CPU hotplug + +* Mon Feb 25 2008 Arnaldo Carvalho de Melo - 0.1-1 +- package created