diff --git a/python-psutil.spec b/python-psutil.spec index 6dce97e..94f4a1a 100644 --- a/python-psutil.spec +++ b/python-psutil.spec @@ -6,7 +6,7 @@ Name: python-%{srcname} Version: 5.6.3 -Release: 3%{?dist} +Release: 4%{?dist} Summary: %{sum} License: BSD @@ -19,13 +19,21 @@ Source0: https://github.com/giampaolo/psutil/archive/release-%{version}.t #Patch0: psutil-5.4.3-disable-broken-tests.patch BuildRequires: gcc -BuildRequires: python2-devel BuildRequires: python%{python3_pkgversion}-devel # Test dependencies BuildRequires: procps-ng -BuildRequires: python2-mock BuildRequires: python%{python3_pkgversion}-mock + +%if 0%{?fedora} < 32 +BuildRequires: python2-mock +BuildRequires: python2-devel BuildRequires: python2-ipaddress +%else +# This package has an exception to use Python 2 in Fedora 32+ +# The exception is for chromium (chrome-remote-desktop) +# https://pagure.io/fesco/issue/2214 +BuildRequires: python27 +%endif %description psutil is a module providing an interface for retrieving information on all @@ -82,7 +90,9 @@ done #%check # the main test target causes failures, investigating +#%if 0%{?fedora} < 32 #make test-memleaks PYTHON=%{__python2} +#%endif #make test-memleaks PYTHON=%{__python3} @@ -101,6 +111,9 @@ done %changelog +* Tue Sep 03 2019 Miro Hrončok - 5.6.3-4 +- Reduce unused build dependencies + * Fri Aug 16 2019 Miro Hrončok - 5.6.3-3 - Rebuilt for Python 3.8