Separate the tests to their own subpackage
This commit is contained in:
parent
675494cbda
commit
b87ad1ed94
@ -3,7 +3,7 @@
|
|||||||
|
|
||||||
Name: python-%{srcname}
|
Name: python-%{srcname}
|
||||||
Version: 5.8.0
|
Version: 5.8.0
|
||||||
Release: 10%{?dist}
|
Release: 11%{?dist}
|
||||||
Summary: %{sum}
|
Summary: %{sum}
|
||||||
|
|
||||||
License: BSD
|
License: BSD
|
||||||
@ -21,15 +21,11 @@ Patch2: python-psutil-add-delta-to-cputest.patch
|
|||||||
BuildRequires: gcc
|
BuildRequires: gcc
|
||||||
BuildRequires: grep
|
BuildRequires: grep
|
||||||
BuildRequires: make
|
BuildRequires: make
|
||||||
BuildRequires: python%{python3_pkgversion}-devel
|
# python3-setuptools is required by both the python2 and python3 versions
|
||||||
|
# of the package as to create the PKG-INFO directory.
|
||||||
|
BuildRequires: python%{python3_pkgversion}-setuptools
|
||||||
# Test dependencies
|
# Test dependencies
|
||||||
BuildRequires: procps-ng
|
BuildRequires: procps-ng
|
||||||
BuildRequires: python%{python3_pkgversion}-setuptools
|
|
||||||
|
|
||||||
# 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: python2.7
|
|
||||||
|
|
||||||
%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
|
||||||
@ -41,6 +37,12 @@ ifconfig, nice, ionice, iostat, iotop, uptime, pidof, tty, who, taskset, pmap.
|
|||||||
|
|
||||||
%package -n python2-%{srcname}
|
%package -n python2-%{srcname}
|
||||||
Summary: %{sum}
|
Summary: %{sum}
|
||||||
|
|
||||||
|
# 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: python2.7
|
||||||
|
|
||||||
%{?python_provide:%python_provide python2-%{srcname}}
|
%{?python_provide:%python_provide python2-%{srcname}}
|
||||||
Obsoletes: python-%{srcname} < 3.1.1-3
|
Obsoletes: python-%{srcname} < 3.1.1-3
|
||||||
|
|
||||||
@ -51,8 +53,17 @@ 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,
|
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-psutil-tests
|
||||||
|
Summary: %{sum}, test suite
|
||||||
|
Requires: python2-psutil%{?_isa} = %{?epoch:%{epoch}:}%{version}-%{release}
|
||||||
|
%description -n python2-psutil-tests
|
||||||
|
The test suite for psutil.
|
||||||
|
|
||||||
%package -n python%{python3_pkgversion}-psutil
|
%package -n python%{python3_pkgversion}-psutil
|
||||||
Summary: %{sum}
|
Summary: %{sum}
|
||||||
|
|
||||||
|
BuildRequires: python%{python3_pkgversion}-devel
|
||||||
|
|
||||||
%{?python_provide:%python_provide python%{python3_pkgversion}-%{srcname}}
|
%{?python_provide:%python_provide python%{python3_pkgversion}-%{srcname}}
|
||||||
|
|
||||||
%description -n python%{python3_pkgversion}-psutil
|
%description -n python%{python3_pkgversion}-psutil
|
||||||
@ -62,6 +73,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,
|
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 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
|
%prep
|
||||||
%autosetup -p1 -n %{srcname}-release-%{version}
|
%autosetup -p1 -n %{srcname}-release-%{version}
|
||||||
@ -115,16 +132,26 @@ test -f %{buildroot}%{python2_egg_path}
|
|||||||
%doc CREDITS HISTORY.rst README.rst
|
%doc CREDITS HISTORY.rst README.rst
|
||||||
%{python2_sitearch}/%{srcname}/
|
%{python2_sitearch}/%{srcname}/
|
||||||
%{python2_egg_path}
|
%{python2_egg_path}
|
||||||
|
%exclude %{python2_sitearch}/%{srcname}/tests
|
||||||
|
|
||||||
|
%files -n python2-%{srcname}-tests
|
||||||
|
%{python2_sitearch}/%{srcname}/tests/
|
||||||
|
|
||||||
%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
|
||||||
%{python3_sitearch}/%{srcname}/
|
%{python3_sitearch}/%{srcname}/
|
||||||
%{python3_egg_path}/
|
%{python3_egg_path}/
|
||||||
|
%exclude %{python3_sitearch}/%{srcname}/tests
|
||||||
|
|
||||||
|
%files -n python%{python3_pkgversion}-%{srcname}-tests
|
||||||
|
%{python3_sitearch}/%{srcname}/tests/
|
||||||
|
|
||||||
|
|
||||||
%changelog
|
%changelog
|
||||||
|
* Wed Aug 18 2021 Charalampos Stratakis <cstratak@redhat.com> - 5.8.0-11
|
||||||
|
- Separate the tests to their own subpackage
|
||||||
|
|
||||||
* Sat Aug 07 2021 Kevin Fenzi <kevin@scrye.com> - 5.8.0-10
|
* Sat Aug 07 2021 Kevin Fenzi <kevin@scrye.com> - 5.8.0-10
|
||||||
- Add patch to add delta for cpu tests.
|
- Add patch to add delta for cpu tests.
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user