Drop python2-psutil

Resolves: rhbz#1913682
This commit is contained in:
Miro Hrončok 2021-04-06 22:48:42 +02:00
parent 6592c3f465
commit 2a2016ea50

View File

@ -3,7 +3,7 @@
Name: python-%{srcname} Name: python-%{srcname}
Version: 5.8.0 Version: 5.8.0
Release: 5%{?dist} Release: 6%{?dist}
Summary: %{sum} Summary: %{sum}
License: BSD License: BSD
@ -21,19 +21,6 @@ BuildRequires: python%{python3_pkgversion}-devel
BuildRequires: procps-ng BuildRequires: procps-ng
BuildRequires: python%{python3_pkgversion}-setuptools BuildRequires: python%{python3_pkgversion}-setuptools
%if 0%{?fedora} < 32 && 0%{?rhel} < 9
BuildRequires: python2-mock
BuildRequires: python2-devel
BuildRequires: python2-ipaddress
BuildRequires: python2-setuptools
%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
running processes and system utilization (CPU, memory, disks, network, users) in running processes and system utilization (CPU, memory, disks, network, users) in
@ -42,18 +29,6 @@ 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}
%{?python_provide:%python_provide python2-%{srcname}}
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 python%{python3_pkgversion}-psutil %package -n python%{python3_pkgversion}-psutil
Summary: %{sum} Summary: %{sum}
%{?python_provide:%python_provide python%{python3_pkgversion}-%{srcname}} %{?python_provide:%python_provide python%{python3_pkgversion}-%{srcname}}
@ -78,12 +53,10 @@ done
%build %build
%py2_build
%py3_build %py3_build
%install %install
%py2_install
%py3_install %py3_install
@ -91,13 +64,6 @@ done
make test CI_TESTING=1 PYTHON=%{__python3} PYTHONPATH=%{buildroot}/%{python3_sitearch} make test CI_TESTING=1 PYTHON=%{__python3} PYTHONPATH=%{buildroot}/%{python3_sitearch}
%files -n python2-%{srcname}
%license LICENSE
%doc CREDITS HISTORY.rst README.rst
%{python2_sitearch}/%{srcname}/
%{python2_sitearch}/*.egg-info
%files -n python%{python3_pkgversion}-%{srcname} %files -n python%{python3_pkgversion}-%{srcname}
%license LICENSE %license LICENSE
%doc CREDITS HISTORY.rst README.rst %doc CREDITS HISTORY.rst README.rst
@ -106,6 +72,10 @@ make test CI_TESTING=1 PYTHON=%{__python3} PYTHONPATH=%{buildroot}/%{python3_sit
%changelog %changelog
* Tue Apr 06 2021 Miro Hrončok <mhroncok@redhat.com> - 5.8.0-6
- Drop python2-psutil
Resolves: rhbz#1913682
* Thu Jan 28 2021 Tomas Orsava <torsava@redhat.com> - 5.8.0-5 * Thu Jan 28 2021 Tomas Orsava <torsava@redhat.com> - 5.8.0-5
- Remove unnecessary test dependency on python3-mock - Remove unnecessary test dependency on python3-mock
- Remove unnecessary macro __provides_exclude_from - Remove unnecessary macro __provides_exclude_from