Update to 4.3.0

This commit is contained in:
Orion Poplawski 2016-06-21 16:55:24 -06:00
parent b5b6253f2a
commit 9a5f544941
4 changed files with 13 additions and 31 deletions

1
.gitignore vendored
View File

@ -13,3 +13,4 @@ psutil-0.1.3.tar.gz
/psutil-2.2.0.tar.gz /psutil-2.2.0.tar.gz
/psutil-3.1.1.tar.gz /psutil-3.1.1.tar.gz
/psutil-3.2.1.tar.gz /psutil-3.2.1.tar.gz
/psutil-4.3.0.tar.gz

View File

@ -1,21 +0,0 @@
diff -up psutil-3.2.1/psutil/_psutil_linux.c.than psutil-3.2.1/psutil/_psutil_linux.c
--- psutil-3.2.1/psutil/_psutil_linux.c.than 2016-03-11 06:35:23.200161395 -0500
+++ psutil-3.2.1/psutil/_psutil_linux.c 2016-03-11 06:37:55.010161395 -0500
@@ -272,7 +272,7 @@ psutil_proc_cpu_affinity_get(PyObject *s
cpu_set_t *mask = NULL;
PyObject *py_list = NULL;
- if (!PyArg_ParseTuple(args, "i", &pid))
+ if (!PyArg_ParseTuple(args, "l", &pid))
return NULL;
ncpus = NCPUS_START;
while (1) {
@@ -339,7 +339,7 @@ psutil_proc_cpu_affinity_get(PyObject *s
PyObject* py_retlist = NULL;
PyObject *py_cpu_num = NULL;
- if (!PyArg_ParseTuple(args, "i", &pid))
+ if (!PyArg_ParseTuple(args, "l", &pid))
return NULL;
CPU_ZERO(&cpuset);
if (sched_getaffinity(pid, len, &cpuset) < 0)

View File

@ -5,14 +5,13 @@
%global __provides_exclude_from ^(%{python2_sitearch}|%{python3_sitearch})/.*\\.so$ %global __provides_exclude_from ^(%{python2_sitearch}|%{python3_sitearch})/.*\\.so$
Name: python-%{srcname} Name: python-%{srcname}
Version: 3.2.1 Version: 4.3.0
Release: 6%{?dist} Release: 1%{?dist}
Summary: %{sum} Summary: %{sum}
License: BSD License: BSD
URL: https://github.com/giampaolo/psutil URL: https://github.com/giampaolo/psutil
Source0: https://pypi.python.org/packages/source/p/%{srcname}/%{srcname}-%{version}.tar.gz Source0: https://github.com/giampaolo/psutil/archive/release-%{version}.tar.gz#/%{srcname}-%{version}.tar.gz
Patch0: python-psutil-endian.patch
BuildRequires: python2-devel BuildRequires: python2-devel
BuildRequires: python%{python3_pkgversion}-devel BuildRequires: python%{python3_pkgversion}-devel
@ -54,11 +53,11 @@ ifconfig, nice, ionice, iostat, iotop, uptime, pidof, tty, who, taskset, pmap.
%prep %prep
%autosetup -p1 -n %{srcname}-%{version} %autosetup -p1 -n %{srcname}-release-%{version}
# Remove shebangs # Remove shebangs
for file in psutil/*.py; do find psutil -name \*.py | while read file; do
sed -i.orig -e 1d $file && \ sed -i.orig -e '1{/^#!/d}' $file && \
touch -r $file.orig $file && \ touch -r $file.orig $file && \
rm $file.orig rm $file.orig
done done
@ -82,19 +81,22 @@ make test-memleaks PYTHON=%{__python3}
%files -n python2-%{srcname} %files -n python2-%{srcname}
%license LICENSE %license LICENSE
%doc CREDITS HISTORY.rst README.rst TODO %doc CREDITS HISTORY.rst README.rst
%{python2_sitearch}/%{srcname}/ %{python2_sitearch}/%{srcname}/
%{python2_sitearch}/*.egg-info %{python2_sitearch}/*.egg-info
%files -n python%{python3_pkgversion}-%{srcname} %files -n python%{python3_pkgversion}-%{srcname}
%license LICENSE %license LICENSE
%doc CREDITS HISTORY.rst README.rst TODO %doc CREDITS HISTORY.rst README.rst
%{python3_sitearch}/%{srcname}/ %{python3_sitearch}/%{srcname}/
%{python3_sitearch}/*.egg-info %{python3_sitearch}/*.egg-info
%changelog %changelog
* Tue Jun 21 2016 Orion Poplawski <orion@cora.nwra.com> - 4.3.0-1
- Update to 4.3.0
* Mon May 16 2016 Orion Poplawski <orion@cora.nwra.com> - 3.2.1-6 * Mon May 16 2016 Orion Poplawski <orion@cora.nwra.com> - 3.2.1-6
- Use modern provides filter - Use modern provides filter
- Update URL - Update URL

View File

@ -1 +1 @@
a308816e735021fd4bf6aa561725c1aa psutil-3.2.1.tar.gz da4c7183ff42a6997b8a743305463d10 psutil-4.3.0.tar.gz