File python-avocado.spec of Package python-avocado
#
# spec file for package python-avocado-framework
#
# Copyright (c) 2021 SUSE LINUX GmbH, Nuernberg, Germany.
#
# All modifications and additions to the file contributed by third parties
# remain the property of their copyright owners, unless otherwise agreed
# upon. The license for this file, and modifications and additions to the
# file, is the same license as for the pristine package itself (unless the
# license for the pristine package is not an Open Source License, in which
# case the license is the MIT License). An "Open Source License" is a
# license that conforms to the Open Source Definition (Version 1.9)
# published by the Open Source Initiative.
# Please submit bugfixes or comments via http://bugs.opensuse.org/
%{?!python_module:%define python_module() python-%{**} python3-%{**}}
%define pkgname avocado
Name: python-avocado
Version: 84.0
Release: 0
License: GPL-2.0-only
Summary: Avocado Test Framework
Url: http://avocado-framework.github.io/
Group: Development/Tools/Other
Source: https://github.com/avocado-framework/avocado/archive/%{version}.tar.gz#/%{pkgname}-%{version}.tar.gz
BuildRequires: python-rpm-macros
BuildRequires: %{python_module devel}
BuildRequires: %{python_module setuptools}
BuildRequires: %{python_module Sphinx}
BuildRequires: %{python_module aexpect}
BuildRequires: %{python_module docutils}
BuildRequires: %{python_module lxml}
BuildRequires: %{python_module psutil}
BuildRequires: %{python_module pyaml}
BuildRequires: %{python_module pystache}
BuildRequires: %{python_module requests} >= 1.2.3
BuildRequires: %{python_module resultsdb_api}
BuildRequires: %{python_module setuptools} >= 18.0.0
BuildRequires: %{python_module six} >= 1.11.0
BuildRequires: %{python_module stevedore} >= 0.14
BuildRequires: kmod
BuildRequires: procps
BuildRequires: libvirt-devel
BuildRequires: fdupes
# SECTION test requirements
BuildRequires: %{python_module setuptools}
# /SECTION
Requires: python-setuptools
# begin: taken from Factory version:
Requires: python-Fabric3
Requires: python-requests >= 1.2.3
Requires: python-six >= 1.11.0
Requires: python-stevedore >= 0.14
# end: taken from Factory version
Provides: %{pkgname} = %{version}
Obsoletes: %{pkgname} < %{version}
BuildArch: noarch
%python_subpackages
%description
Avocado Test Framework
%prep
%setup -q -n %{pkgname}-%{version}
%build
%python_build
# NOTE: optional_plugins/* are currently not being built
%install
%python_install
%python_expand %fdupes %{buildroot}%{$python_sitelib}
%check
python3 -m avocado run /bin/true
%files %{python_files}
%python3_only %{_bindir}/avocado
%python3_only %{_bindir}/avocado-runner
%python3_only %{_bindir}/avocado-runner-avocado-instrumented
%python3_only %{_bindir}/avocado-runner-exec
%python3_only %{_bindir}/avocado-runner-exec-test
%python3_only %{_bindir}/avocado-runner-noop
%python3_only %{_bindir}/avocado-runner-python-unittest
%python3_only %{_bindir}/avocado-runner-tap
%python3_only %{_bindir}/avocado-software-manager
%{python_sitelib}/*
%changelog