manual fix 1

This commit is contained in:
NixTux Commit Bot 2020-05-31 19:19:11 +03:00
parent ced3b23b6e
commit 5f93e08f03

View file

@ -15,29 +15,9 @@ Group: Development/Python
License: BSD License: BSD
URL: https://github.com/giampaolo/psutil URL: https://github.com/giampaolo/psutil
Source0: https://github.com/giampaolo/psutil/archive/release-%{version}.tar.gz#/%{srcname}-%{version}.tar.gz Source0: https://github.com/giampaolo/psutil/archive/release-%{version}.tar.gz#/%{srcname}-%{version}.tar.gz
#
# Disable upstream failing test
# https://github.com/giampaolo/psutil/issues/946
#
#Patch0: psutil-5.4.3-disable-broken-tests.patch
BuildRequires: gcc BuildRequires: gcc
BuildRequires: python38-devel BuildRequires: python38-devel
# Test dependencies
BuildRequires: procps-ng
BuildRequires: python38-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
BuildRequires: python2-setuptools
%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
@ -46,19 +26,6 @@ a portable way by using Python, implementing many functionalities offered by
command line tools such as: ps, top, df, kill, free, lsof, free, netstat, command line tools such as: ps, top, df, kill, free, lsof, free, netstat,
ifconfig, nice, ionice, iostat, iotop, uptime, pidof, tty, who, taskset, pmap. ifconfig, nice, ionice, iostat, iotop, uptime, pidof, tty, who, taskset, pmap.
%package -n python2-%{srcname}
Summary: %{sum}
Group: Development/Python
Obsoletes: python-%{srcname} < 3.1.1-3
%description -n python2-psutil
psutil is a module providing an interface for retrieving information on all
running processes and system utilization (CPU, memory, disks, network, users) in
a portable way by using Python 3, implementing many functionalities offered by
command line tools such as: ps, top, df, kill, free, lsof, free, netstat,
ifconfig, nice, ionice, iostat, iotop, uptime, pidof, tty, who, taskset, pmap.
%package -n python38-psutil %package -n python38-psutil
Summary: %{sum} Summary: %{sum}
Group: Development/Python Group: Development/Python
@ -83,34 +50,14 @@ done
%build %build
%py2_build
%py38_build %py38_build
%install %install
%py2_install
%py38_install %py38_install
#%check
# the main test target causes failures, investigating
#%if 0%{?fedora} < 32
#make test-memleaks PYTHON=%{__python2}
#%endif
#make test-memleaks PYTHON=%{__python38}
%files -n python2-%{srcname}
%license LICENSE
%doc CREDITS HISTORY.rst README.rst
%{python2_sitearch}/%{srcname}/
%{python2_sitearch}/*.egg-info
%files -n python38-%{srcname} %files -n python38-%{srcname}
%license LICENSE %license LICENSE
%doc CREDITS HISTORY.rst README.rst %doc CREDITS HISTORY.rst README.rst
%{python38_sitearch}/%{srcname}/ %{python38_sitearch}/%{srcname}/
%{python38_sitearch}/*.egg-info %{python38_sitearch}/*.egg-info