diff --git a/python-helpdev.changes b/python-helpdev.changes index 2127d01..a7e7cf0 100644 --- a/python-helpdev.changes +++ b/python-helpdev.changes @@ -1,3 +1,10 @@ +------------------------------------------------------------------- +Tue May 26 07:33:07 UTC 2020 - Antonio Larrosa + +- 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. + ------------------------------------------------------------------- Mon May 25 10:59:16 UTC 2020 - Petr Gajdos diff --git a/python-helpdev.spec b/python-helpdev.spec index 7869e83..cbcd0cb 100644 --- a/python-helpdev.spec +++ b/python-helpdev.spec @@ -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