Accepting request 1114855 from devel:languages:python

OBS-URL: https://build.opensuse.org/request/show/1114855
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/python-psutil?expand=0&rev=76
This commit is contained in:
Ana Guerrero 2023-10-04 20:30:23 +00:00 committed by Git OBS Bridge
commit 715d93bc62
2 changed files with 15 additions and 13 deletions

View File

@ -1,3 +1,11 @@
-------------------------------------------------------------------
Sat Sep 30 19:15:18 UTC 2023 - Ben Greiner <code@bnavigator.de>
- Require /usr/bin/who only for suse_version > 1500: 15.X does not
provide it, but has it in coreutils.
- PEP517
- Clean up specfile from obsolete python2 stuff
-------------------------------------------------------------------
Wed Sep 6 11:23:59 UTC 2023 - Dominique Leuenberger <dimstar@opensuse.org>

View File

@ -16,13 +16,11 @@
#
%{?!python_module:%define python_module() python-%{**} python3-%{**}}
%ifarch x86_64 %{ix86}
%bcond_without test
%else
%bcond_with test
%endif
%bcond_without python2
%{?sle15_python_module_pythons}
Name: python-psutil
Version: 5.9.5
@ -41,6 +39,8 @@ Patch4: mem-used-bsc1181475.patch
# PATCH-FIX-UPSTREAM logind_y2038.patch gh#giampaolo/psutil#2300 aplanas@suse.com
Patch5: logind_y2038.patch
BuildRequires: %{python_module devel}
BuildRequires: %{python_module pip}
BuildRequires: %{python_module wheel}
BuildRequires: %{python_module setuptools}
BuildRequires: fdupes
BuildRequires: python-rpm-macros
@ -48,17 +48,11 @@ Requires: procps
BuildRequires: systemd
BuildRequires: systemd-devel
%if %{with test}
%if 0%{?suse_version} > 1500
BuildRequires: /usr/bin/who
%endif
BuildRequires: net-tools
BuildRequires: procps
%if %{with python2}
BuildRequires: python-ipaddress
BuildRequires: python-mock
BuildRequires: python-unittest2
%endif
%endif
%ifpython2
Requires: python-ipaddress
%endif
%python_subpackages
@ -73,10 +67,10 @@ A graphical interface that lets you easily analyze and introspect unaltered runn
sed -i "1s/#!.*//" psutil/{__init__.py,_compat.py,_psbsd.py,_pslinux.py,_psosx.py,_psposix.py,_pssunos.py,_pswindows.py}
%build
%python_build
%pyproject_wheel
%install
%python_install
%pyproject_install
%{python_expand mkdir -p %{buildroot}%{_docdir}/%{$python_prefix}-psutil
cp -r scripts %{buildroot}%{_docdir}/%{$python_prefix}-psutil/
@ -103,6 +97,6 @@ popd
%{_docdir}/%{python_prefix}-psutil/scripts/
%{python_sitearch}/psutil/
%exclude %{python_sitearch}/psutil/tests
%{python_sitearch}/psutil-%{version}*-info
%{python_sitearch}/psutil-%{version}.dist-info
%changelog