Fix up BuildRequires: add 'make', drop obsolete packages

Adjust PATH to make sure self-tests find internal modules

Signed-off-by: Merlin Mathesius <mmathesi@redhat.com>
This commit is contained in:
Merlin Mathesius 2021-02-19 09:45:25 -06:00
commit 144400fc2b

View file

@ -38,7 +38,7 @@
Name: python-%{pkgname}
Version: 82.0
Release: 1%{?gitrel}%{?dist}
Release: 2%{?gitrel}%{?dist}
Summary: Framework with tools and libraries for Automated Testing
Group: Development/Tools
# Found licenses:
@ -51,16 +51,14 @@ Source0: https://github.com/avocado-framework/%{srcname}/archive/%{gitref}.tar.g
BuildArch: noarch
BuildRequires: kmod
BuildRequires: make
BuildRequires: procps-ng
BuildRequires: python3-devel
BuildRequires: python3-docutils
BuildRequires: python3-jinja2
BuildRequires: python3-lxml
BuildRequires: python3-mock
BuildRequires: python3-psutil
BuildRequires: python3-setuptools
BuildRequires: python3-six
BuildRequires: python3-sphinx
%if 0%{?fedora}
BuildRequires: python3-pycdlib
%endif
@ -244,7 +242,7 @@ find %{buildroot}%{_docdir}/avocado -type f -name '*.py' -exec %{__chmod} -c -x
# amount of resources we have observed so far. Let's avoid tests that
# require too much resources or are time sensitive
USER_BASE=`%{__python3} -m site --user-base`
PATH=$USER_BASE/bin:$PATH LANG=en_US.UTF-8 AVOCADO_CHECK_LEVEL=0 %{__python3} selftests/run
PATH=$USER_BASE/bin:$HOME/bin:$PATH LANG=en_US.UTF-8 AVOCADO_CHECK_LEVEL=0 %{__python3} selftests/run
%endif
@ -500,6 +498,10 @@ Again Shell code (and possibly other similar shells).
%changelog
* Thu Feb 19 2021 Merlin Mathesius <mmathesi@redhat.com> - 82.0-2
- Fix up BuildRequires: add 'make', drop obsolete packages
- Adjust PATH to make sure self-tests find internal modules
* Mon Sep 14 2020 Cleber Rosa <cleber@redhat.com> - 82.0-1
- Sync with upstream release 82.0.
- Removed python libvirt depedency as the vm runner has been removed