From 5f93e08f036e647f662114c8faba5561bfa044c1 Mon Sep 17 00:00:00 2001 From: NixTux Commit Bot Date: Sun, 31 May 2020 19:19:11 +0300 Subject: [PATCH] manual fix 1 --- python38-psutil.spec | 53 -------------------------------------------- 1 file changed, 53 deletions(-) diff --git a/python38-psutil.spec b/python38-psutil.spec index bf5a3a3..9c33e1f 100644 --- a/python38-psutil.spec +++ b/python38-psutil.spec @@ -15,29 +15,9 @@ Group: Development/Python License: BSD URL: https://github.com/giampaolo/psutil 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: 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 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, 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 Summary: %{sum} Group: Development/Python @@ -83,34 +50,14 @@ done %build -%py2_build %py38_build %install -%py2_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} %license LICENSE %doc CREDITS HISTORY.rst README.rst %{python38_sitearch}/%{srcname}/ %{python38_sitearch}/*.egg-info - -