Document Python 2 exception and reduce unused build dependencies

This commit is contained in:
Miro Hrončok 2019-09-03 16:53:10 +02:00
parent f582884697
commit 797de7c8f2

View File

@ -6,7 +6,7 @@
Name: python-%{srcname} Name: python-%{srcname}
Version: 5.6.3 Version: 5.6.3
Release: 3%{?dist} Release: 4%{?dist}
Summary: %{sum} Summary: %{sum}
License: BSD 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 #Patch0: psutil-5.4.3-disable-broken-tests.patch
BuildRequires: gcc BuildRequires: gcc
BuildRequires: python2-devel
BuildRequires: python%{python3_pkgversion}-devel BuildRequires: python%{python3_pkgversion}-devel
# Test dependencies # Test dependencies
BuildRequires: procps-ng BuildRequires: procps-ng
BuildRequires: python2-mock
BuildRequires: python%{python3_pkgversion}-mock BuildRequires: python%{python3_pkgversion}-mock
%if 0%{?fedora} < 32
BuildRequires: python2-mock
BuildRequires: python2-devel
BuildRequires: python2-ipaddress 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 %description
psutil is a module providing an interface for retrieving information on all psutil is a module providing an interface for retrieving information on all
@ -82,7 +90,9 @@ done
#%check #%check
# the main test target causes failures, investigating # the main test target causes failures, investigating
#%if 0%{?fedora} < 32
#make test-memleaks PYTHON=%{__python2} #make test-memleaks PYTHON=%{__python2}
#%endif
#make test-memleaks PYTHON=%{__python3} #make test-memleaks PYTHON=%{__python3}
@ -101,6 +111,9 @@ done
%changelog %changelog
* Tue Sep 03 2019 Miro Hrončok <mhroncok@redhat.com> - 5.6.3-4
- Reduce unused build dependencies
* Fri Aug 16 2019 Miro Hrončok <mhroncok@redhat.com> - 5.6.3-3 * Fri Aug 16 2019 Miro Hrončok <mhroncok@redhat.com> - 5.6.3-3
- Rebuilt for Python 3.8 - Rebuilt for Python 3.8