mirror of
https://abf.rosa.ru/djam/python38-psutil.git
synced 2025-02-23 10:22:55 +00:00
manual fix 1
This commit is contained in:
parent
ced3b23b6e
commit
5f93e08f03
1 changed files with 0 additions and 53 deletions
|
@ -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
|
||||
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue