Compare commits
10 Commits
014077aa7a
...
0f2a3d13af
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
0f2a3d13af | ||
|
|
ffa9d75e9c | ||
|
|
188f79d0b5 | ||
|
|
1909f126b8 | ||
|
|
eb40b8c0d1 | ||
|
|
82f45ce7ca | ||
|
|
5734f86d91 | ||
|
|
1f00aea593 | ||
|
|
36fc0ecc0f | ||
|
|
136ef40775 |
@ -1,31 +0,0 @@
|
||||
From 208b963455fa5ff658b24e513639f27ef66920ce Mon Sep 17 00:00:00 2001
|
||||
From: John Kacur <jkacur@redhat.com>
|
||||
Date: Wed, 2 Sep 2020 09:32:30 +0800
|
||||
Subject: [PATCH] Fix import of utilist
|
||||
|
||||
reason:If procfs/utilist.py is not in your PYTHONPATH, the import can fail.
|
||||
Specify it fully.
|
||||
|
||||
Signed-off-by: John Kacur <jkacur@redhat.com>
|
||||
|
||||
https://kernel.googlesource.com/pub/scm/libs/python/python-linux-procfs/python-linux-procfs/+/208b963455fa5ff658b24e513639f27ef66920ce%5E%21/
|
||||
---
|
||||
procfs/procfs.py | 2 +-
|
||||
1 file changed, 1 insertion(+), 1 deletion(-)
|
||||
|
||||
diff --git a/procfs/procfs.py b/procfs/procfs.py
|
||||
index a586ae2..3cfa941 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.19.1
|
||||
|
||||
Binary file not shown.
BIN
python-linux-procfs-0.7.0.tar.gz
Normal file
BIN
python-linux-procfs-0.7.0.tar.gz
Normal file
Binary file not shown.
@ -2,31 +2,22 @@
|
||||
Python classes to extract information from the Linux kernel /proc files.
|
||||
|
||||
Name: python-linux-procfs
|
||||
Version: 0.6.2
|
||||
Release: 3
|
||||
Version: 0.7.0
|
||||
Release: 1
|
||||
Summary: Linux /proc abstraction classes
|
||||
License: GPLv2
|
||||
URL: https://rt.wiki.kernel.org/index.php/Tuna
|
||||
Source: https://git.kernel.org/pub/scm/libs/python/%{name}/%{name}.git/snapshot/%{name}-%{version}.tar.gz
|
||||
BuildArch: noarch
|
||||
BuildRequires: python2-devel python2-setuptools
|
||||
BuildRequires: python3-devel python3-setuptools
|
||||
|
||||
Patch0: backport-Fix-import-of-utilist.patch
|
||||
BuildRequires: python3-devel python3-setuptools python3-six
|
||||
|
||||
%description %_description
|
||||
|
||||
%package -n python2-linux-procfs
|
||||
Summary: %summary
|
||||
%{?python_provide:%python_provide python2-linux-procfs}
|
||||
Requires: python2-six
|
||||
|
||||
%description -n python2-linux-procfs %_description
|
||||
|
||||
%package -n python3-linux-procfs
|
||||
Summary: %summary
|
||||
%{?python_provide:%python_provide python3-linux-procfs}
|
||||
Requires: python3-six
|
||||
Obsoletes: python2-linux-procfs
|
||||
|
||||
%description -n python3-linux-procfs %_description
|
||||
|
||||
@ -34,20 +25,13 @@ Requires: python3-six
|
||||
%autosetup -p1
|
||||
|
||||
%build
|
||||
%py2_build
|
||||
%py3_build
|
||||
|
||||
%install
|
||||
%py2_install
|
||||
%py3_install
|
||||
|
||||
%files -n python2-linux-procfs
|
||||
%defattr(0755,root,root,0755)
|
||||
%{python2_sitelib}/procfs/
|
||||
%{_bindir}/pflags
|
||||
%defattr(0644,root,root,0755)
|
||||
%{python2_sitelib}/*.egg-info
|
||||
%license COPYING
|
||||
%check
|
||||
%{__python3} bitmasklist_test.py
|
||||
|
||||
%files -n python3-linux-procfs
|
||||
%defattr(0755,root,root,0755)
|
||||
@ -58,6 +42,24 @@ Requires: python3-six
|
||||
%license COPYING
|
||||
|
||||
%changelog
|
||||
* Wed Nov 02 2022 zhuofeng <zhuofeng2@huawei.com> - 0.7.0-1
|
||||
- update to 0.7.0
|
||||
|
||||
* Tue Jun 21 2022 shixuantong <shixuantong@h-partners.com> - 0.6.3-3
|
||||
- enable check
|
||||
|
||||
* Mon Jun 20 2022 shixuantong <shixuantong@h-partners.com> - 0.6.3-2
|
||||
- fix file conflict
|
||||
|
||||
* Wed Nov 24 2021 liudabo <liudabo1@huawei.com> - 0.6.3-1
|
||||
- upgrade version to 0.6.3
|
||||
|
||||
* Fri Oct 30 2020 wuchaochao <wuchaochao4@huawei.com> - 0.6.2-4
|
||||
- Type:bufix
|
||||
- CVE:NA
|
||||
- SUG:NA
|
||||
- DESC:remove python2
|
||||
|
||||
* Sat Sep 5 2020 shixuantong <shixuantong@huawei.com> - 0.6.2-3
|
||||
- update Source0
|
||||
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user