Document Python 2 exception and reduce unused build dependencies
This commit is contained in:
parent
f582884697
commit
797de7c8f2
@ -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 <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
|
||||
- Rebuilt for Python 3.8
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user