Accepting request 808930 from home:alarrosa:branches:devel:languages:python

- python-psutil is only used to call its "swap_memory" and
  "virtual_memory" functions, so we reduced the required version
  from 5.6 to 5.4.8 so we can build packages for SLE/Leap.

OBS-URL: https://build.opensuse.org/request/show/808930
OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-helpdev?expand=0&rev=9
This commit is contained in:
Tomáš Chvátal
2020-05-26 07:44:06 +00:00
committed by Git OBS Bridge
parent d722408fc0
commit 20f8234fc2
2 changed files with 10 additions and 2 deletions

View File

@@ -29,13 +29,13 @@ BuildRequires: %{python_module setuptools}
BuildRequires: fdupes
BuildRequires: python-rpm-macros
Requires: python-importlib-metadata
Requires: python-psutil >= 5.6
Requires: python-psutil >= 5.4.8
Requires(post): update-alternatives
Requires(postun): update-alternatives
BuildArch: noarch
# SECTION test requirements
BuildRequires: %{python_module importlib-metadata}
BuildRequires: %{python_module psutil >= 5.6}
BuildRequires: %{python_module psutil >= 5.4.8}
BuildRequires: %{python_module pytest}
# /SECTION
%python_subpackages
@@ -46,6 +46,7 @@ HelpDev - Extracts information about the Python environment easily.
%prep
%setup -q -n helpdev-v%{version}
sed -i '1{\,^#!%{_bindir}/env python,d}' helpdev/*.py
sed -i -e "s/psutil>=5.6/psutil>=5.4.8/" setup.py
%build
%python_build