From fa38996ceae3a6a78ad7f010ffb486468afecab9 Mon Sep 17 00:00:00 2001 From: Charalampos Stratakis Date: Fri, 20 Aug 2021 17:04:01 +0200 Subject: [PATCH] Separate the tests to their own subpackage Add patch to add delta for cpu tests. Resolves: rhbz#1990466 --- python-psutil.spec | 15 ++++++++++++++- 1 file changed, 14 insertions(+), 1 deletion(-) diff --git a/python-psutil.spec b/python-psutil.spec index 34a1d91..fc0b05a 100644 --- a/python-psutil.spec +++ b/python-psutil.spec @@ -3,7 +3,7 @@ Name: python-%{srcname} Version: 5.8.0 -Release: 10%{?dist} +Release: 11%{?dist} Summary: %{sum} License: BSD @@ -47,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} @@ -76,9 +82,16 @@ 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 +* Fri Aug 20 2021 Charalampos Stratakis - 5.8.0-11 +- Separate the tests to their own subpackage +Resolves: rhbz#1990466 + * Tue Aug 10 2021 Mohan Boddu - 5.8.0-10 - Rebuilt for IMA sigs, glibc 2.34, aarch64 flags Related: rhbz#1991688