|
|
|
@ -1,42 +1,32 @@
|
|
|
|
|
%global srcname psutil
|
|
|
|
|
%global sum A process and system utilities module for Python
|
|
|
|
|
|
|
|
|
|
%bcond_without tests
|
|
|
|
|
|
|
|
|
|
Name: python-%{srcname}
|
|
|
|
|
Version: 5.8.0
|
|
|
|
|
Release: 4%{?dist}
|
|
|
|
|
Release: 12%{?dist}
|
|
|
|
|
Summary: %{sum}
|
|
|
|
|
|
|
|
|
|
License: BSD
|
|
|
|
|
URL: https://github.com/giampaolo/psutil
|
|
|
|
|
Source0: %{url}/archive/release-%{version}/%{srcname}-%{version}.tar.gz
|
|
|
|
|
|
|
|
|
|
# Exclude i686 arch. Due to a modularity issue it's being added to the
|
|
|
|
|
# x86_64 compose of CRB, but we don't want to ship it at all.
|
|
|
|
|
# See: https://projects.engineering.redhat.com/browse/RCM-72605
|
|
|
|
|
ExcludeArch: i686
|
|
|
|
|
|
|
|
|
|
#
|
|
|
|
|
# skip 2 tests that fail in mock chroots
|
|
|
|
|
#
|
|
|
|
|
Patch0: python-psutil-skip-tests-in-mock.patch
|
|
|
|
|
#
|
|
|
|
|
# skip 2 tests that fail in brew due to broken IPv6
|
|
|
|
|
#
|
|
|
|
|
Patch1: python-psutil-skip-tests-in-brew.patch
|
|
|
|
|
|
|
|
|
|
# Skip test due to broken handling of IPv6 addresses
|
|
|
|
|
# See: https://github.com/giampaolo/psutil/issues/1909
|
|
|
|
|
Patch1: python-psutil-skip-test-broken-ipv6.patch
|
|
|
|
|
|
|
|
|
|
# Skip flaky tests
|
|
|
|
|
Patch2: python-psutil-skip-flaky-tests.patch
|
|
|
|
|
# Add tolerance to psutil.tests.test_linux.TestSystemVirtualMemory.test_total
|
|
|
|
|
Patch2: https://github.com/giampaolo/psutil/pull/1935.patch#/python-psutil-add-tolerance.patch
|
|
|
|
|
|
|
|
|
|
BuildRequires: make
|
|
|
|
|
BuildRequires: gcc
|
|
|
|
|
BuildRequires: python%{python3_pkgversion}-devel
|
|
|
|
|
BuildRequires: python%{python3_pkgversion}-rpm-macros
|
|
|
|
|
# Test dependencies
|
|
|
|
|
%if %{with tests}
|
|
|
|
|
BuildRequires: procps-ng
|
|
|
|
|
BuildRequires: python%{python3_pkgversion}-setuptools
|
|
|
|
|
%endif
|
|
|
|
|
|
|
|
|
|
%description
|
|
|
|
|
psutil is a module providing an interface for retrieving information on all
|
|
|
|
@ -57,6 +47,12 @@ 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-tests
|
|
|
|
|
Summary: %{sum}, test suite
|
|
|
|
|
Requires: python%{python3_pkgversion}-psutil%{?_isa} = %{?epoch:%{epoch}:}%{version}-%{release}
|
|
|
|
|
|
|
|
|
|
%description -n python%{python3_pkgversion}-psutil-tests
|
|
|
|
|
The test suite for psutil.
|
|
|
|
|
|
|
|
|
|
%prep
|
|
|
|
|
%autosetup -p1 -n %{srcname}-release-%{version}
|
|
|
|
@ -77,10 +73,8 @@ done
|
|
|
|
|
%py3_install
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
%if %{with tests}
|
|
|
|
|
%check
|
|
|
|
|
make test CI_TESTING=1 PYTHON=%{__python3} PYTHONPATH=%{buildroot}/%{python3_sitearch}
|
|
|
|
|
%endif
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
%files -n python%{python3_pkgversion}-%{srcname}
|
|
|
|
@ -88,15 +82,46 @@ make test CI_TESTING=1 PYTHON=%{__python3} PYTHONPATH=%{buildroot}/%{python3_sit
|
|
|
|
|
%doc CREDITS HISTORY.rst README.rst
|
|
|
|
|
%{python3_sitearch}/%{srcname}/
|
|
|
|
|
%{python3_sitearch}/*.egg-info
|
|
|
|
|
%exclude %{python3_sitearch}/%{srcname}/tests
|
|
|
|
|
|
|
|
|
|
%files -n python%{python3_pkgversion}-%{srcname}-tests
|
|
|
|
|
%{python3_sitearch}/%{srcname}/tests/
|
|
|
|
|
|
|
|
|
|
%changelog
|
|
|
|
|
* Wed Apr 03 2024 MSVSphere Packaging Team <packager@msvsphere-os.ru> - 5.8.0-4
|
|
|
|
|
- Rebuilt for MSVSphere 8.10 beta
|
|
|
|
|
* Tue Feb 08 2022 Tomáš Hrnčiar <thrnciar@redhat.com> - 5.8.0-12
|
|
|
|
|
- Add automatically generated Obsoletes tag with the python39- prefix
|
|
|
|
|
for smoother upgrade from RHEL8
|
|
|
|
|
- Related: rhbz#1990421
|
|
|
|
|
|
|
|
|
|
* Fri Aug 20 2021 Charalampos Stratakis <cstratak@redhat.com> - 5.8.0-11
|
|
|
|
|
- Separate the tests to their own subpackage
|
|
|
|
|
Resolves: rhbz#1990466
|
|
|
|
|
|
|
|
|
|
* Tue Aug 10 2021 Mohan Boddu <mboddu@redhat.com> - 5.8.0-10
|
|
|
|
|
- Rebuilt for IMA sigs, glibc 2.34, aarch64 flags
|
|
|
|
|
Related: rhbz#1991688
|
|
|
|
|
|
|
|
|
|
* Fri Apr 16 2021 Mohan Boddu <mboddu@redhat.com> - 5.8.0-9
|
|
|
|
|
- Rebuilt for RHEL 9 BETA on Apr 15th 2021. Related: rhbz#1947937
|
|
|
|
|
|
|
|
|
|
* Thu Apr 15 2021 Miro Hrončok <mhroncok@redhat.com> - 5.8.0-8
|
|
|
|
|
- Skip 2 tests that fail in brew due to broken IPv6
|
|
|
|
|
Resolves: rhbz#1913682
|
|
|
|
|
|
|
|
|
|
* Thu Apr 15 2021 Miro Hrončok <mhroncok@redhat.com> - 5.8.0-7
|
|
|
|
|
- Add tolerance to a flaky test
|
|
|
|
|
Resolves: rhbz#1913682
|
|
|
|
|
|
|
|
|
|
* 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
|
|
|
|
|
- Remove unnecessary test dependency on python3-mock
|
|
|
|
|
- Remove unnecessary macro __provides_exclude_from
|
|
|
|
|
|
|
|
|
|
* Fri Jan 15 2021 Tomas Orsava <torsava@redhat.com> - 5.8.0-4
|
|
|
|
|
- Convert from Fedora to the python39 module in RHEL8
|
|
|
|
|
- Resolves: rhbz#1877430
|
|
|
|
|
* Wed Jan 27 2021 Fedora Release Engineering <releng@fedoraproject.org> - 5.8.0-4
|
|
|
|
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_34_Mass_Rebuild
|
|
|
|
|
|
|
|
|
|
* Sun Jan 10 2021 Kevin Fenzi <kevin@scrye.com> - 5.8.0-3
|
|
|
|
|
- Disable test_leak_mem test.
|
|
|
|
|