%global srcname avocado-vt # Conditional for release vs. snapshot builds. Set to 1 for release build. %if ! 0%{?rel_build:1} %global rel_build 0 %endif # Settings used for build from snapshots. %if 0%{?rel_build} %global gittar %{srcname}-%{version}.tar.gz %else %if ! 0%{?commit:1} %global commit 3d3bb046f11833c16bd5c1614404fc29dfaf63f8 %endif %if ! 0%{?commit_date:1} %global commit_date 20241122 %endif %global shortcommit %(c=%{commit};echo ${c:0:8}) %global gitrel .%{commit_date}git%{shortcommit} %global gittar %{srcname}-%{shortcommit}.tar.gz %endif # The Python dependencies are already tracked by the python2 # or python3 "Requires". This filters out the python binaries # from the RPM automatic requires/provides scanner. %global __requires_exclude ^/usr/bin/python[23]$ # Disable the shebangs checks on scripts that currently dont' # define a Python version %global __brp_mangle_shebangs_exclude_from multicast_guest.py|netperf_agent.py|ksm_overcommit_guest.py|check_cpu_flag.py|virtio_console_guest.py|boottool.py|VirtIoChannel_guest_send_receive.py|serial_host_send_receive.py Summary: Avocado Virt Test Plugin Name: avocado-plugins-vt Version: 104.0 Release: 1%{?gitrel}%{?dist} License: GPLv2 Group: Development/Tools URL: http://avocado-framework.readthedocs.org/ %if 0%{?rel_build} Source0: https://github.com/avocado-framework/%{srcname}/archive/%{version}.tar.gz#/%{gittar} %else Source0: https://github.com/avocado-framework/%{srcname}/archive/%{commit}.tar.gz#/%{gittar} # old way of retrieving snapshot sources #Source0: https://github.com/avocado-framework/%{srcname}/archive/%{commit}/%{srcname}-%{version}-%{shortcommit}.tar.gz %endif BuildRequires: python3-devel, python3-setuptools, python3-six Requires: python3-six BuildArch: noarch Requires: autotest-framework, xz, tcpdump, iproute, iputils, gcc, glibc-headers, nc, git Requires: attr %if 0%{?rhel} Requires: policycoreutils-python %else Requires: policycoreutils-python-utils %endif Requires: python3-imaging %if 0%{?el6} Requires: gstreamer-python, gstreamer-plugins-good %else Requires: pygobject2, gstreamer1-plugins-good %endif %description Avocado Virt Test is a plugin that lets you execute virt-tests with all the avocado convenience features, such as HTML report, Xunit output, among others. %package -n python3-%{name} Summary: %{summary} Requires: python3, python3-avocado >= 51.0, python3-aexpect Requires: python3-netifaces %{?python_provide:%python_provide python3-%{srcname}} %description -n python3-%{name} Avocado Virt Test is a plugin that lets you execute virt-tests with all the avocado convenience features, such as HTML report, Xunit output, among others. %prep %if 0%{?rel_build} %setup -q -n %{srcname}-%{version} %else %setup -q -n %{srcname}-%{commit} %endif %build %{__python3} setup.py build %install %{__mkdir} -p %{buildroot}%{_sysconfdir}/avocado/conf.d %{__python3} setup.py install --root %{buildroot} --skip-build %{__mv} %{buildroot}%{python3_sitelib}/avocado_vt/conf.d/* %{buildroot}%{_sysconfdir}/avocado/conf.d %files -n python3-%{name} %defattr(-,root,root,-) %dir %{_sysconfdir}/avocado %dir %{_sysconfdir}/avocado/conf.d %config(noreplace)%{_sysconfdir}/avocado/conf.d/*.conf %doc README.rst LICENSE %{python3_sitelib}/avocado_vt* %{python3_sitelib}/avocado_framework_plugin_vt* %{python3_sitelib}/virttest* %{_bindir}/avocado-runner-avocado-vt %changelog * Wed Mar 20 2024 Cleber Rosa - 104.0-1 - New release * Thu Jan 25 2024 Cleber Rosa - 103.0-1 - New release * Fri May 5 2023 Xu Han - 100.1-2 - Removed python3-devel dependency - Replaced passfd module with Python's built-in facility - Removed simplejson dependency * Thu Jan 19 2023 Cleber Rosa - 100.1-1 - New release * Wed Jul 20 2022 Xu Han - 98.0-2 - Removed python3-netaddr dependency * Thu Jul 14 2022 Cleber Rosa - 98.0-1 - New release * Mon Dec 20 2021 Cleber Rosa - 94.0-1 - New release * Wed Nov 17 2021 Cleber Rosa - 93.0-1 - New release * Tue Oct 19 2021 Cleber Rosa - 92.0-1 - New release * Mon Aug 30 2021 Cleber Rosa - 91.0-1 - New release * Tue Jul 27 2021 Cleber Rosa - 90.0-1 - New release * Mon May 24 2021 Jan Richter - 88.0-2 - Experimental runner implementation for the nrunner architecture * Tue May 18 2021 Cleber Rosa - 88.0-1 - New release * Mon May 10 2021 Cleber Rosa - 87.0-2 - Remove Python 2 packages * Wed Apr 14 2021 Cleber Rosa - 87.0-1 - New release * Tue Mar 16 2021 Cleber Rosa - 86.0-1 - New release * Tue Feb 16 2021 Plamen Dimitrov - 85.0-2 - Python 2 subpackage is now optional * Mon Feb 15 2021 Cleber Rosa - 85.0-1 - New release * Tue Nov 17 2020 Cleber Rosa - 83.0-1 - New release * Fri Oct 30 2020 Cleber Rosa - 82.0-2 - Use data files from Python's standard location * Sun Sep 13 2020 Cleber Rosa - 82.0-1 - New release * Tue Sep 1 2020 Cleber Rosa - 81.0-1 - New release * Fri Jun 5 2020 Cleber Rosa - 80.0-1 - New release * Mon May 11 2020 Cleber Rosa - 79.0-0 - New release * Tue Apr 14 2020 Cleber Rosa - 78.0-0 - New release * Tue Mar 17 2020 Cleber Rosa - 77.0-0 - New release * Mon Feb 24 2020 Cleber Rosa - 76.0-0 - New release * Fri Feb 21 2020 Plamen Dimitrov - 75.0-1 - Rename package to "avocado_framework_plugin_vt" - Complete the use of the sysconfdir variable * Tue Jan 21 2020 Cleber Rosa - 75.0-0 - New release * Mon Dec 23 2019 Cleber Rosa - 74.0-0 - New release * Sat Nov 23 2019 Cleber Rosa - 73.0-0 - New release * Wed Sep 18 2019 Cleber Rosa - 72.0-0 - New release * Thu Aug 15 2019 Cleber Rosa - 71.0-0 - New release * Thu Aug 15 2019 Cleber Rosa - 70.0-4 - Fixed configuration location on Python 2 (only) builds * Wed Aug 14 2019 Cleber Rosa - 70.0-3 - Added six requirement * Wed Aug 14 2019 Lukas Doktor - 70.0-2 - Change the way config files are packaged * Wed Aug 14 2019 Lukas Doktor - 70.0-1 - Rename package to "avocado_framework_plugins_vt" * Wed Jun 26 2019 Cleber Rosa - 70.0-0 - New release * Tue Jun 25 2019 Cleber Rosa - 69.0-1 - Exclude scripts from shebangs checks * Tue Feb 26 2019 Cleber Rosa - 69.0-0 - New release * Sat Feb 16 2019 Cleber Rosa - 68.0-1 - Use python2 requires on EL7 * Wed Feb 13 2019 Cleber Rosa - 68.0-0 - New release * Sat Jan 5 2019 Plamen Dimitrov - 67.0-1 - Add support for release builds in addition to snapshot builds - Add python 3 package and thus support for python 3 RPMs * Mon Dec 17 2018 Cleber Rosa - 67.0-0 - New release * Tue Nov 20 2018 Cleber Rosa - 66.0-0 - New release * Mon Nov 19 2018 Cleber Rosa - 65.0-1 - Updated macros to Python 2 * Tue Oct 2 2018 Cleber Rosa - 65.0-0 - New release * Mon Aug 27 2018 Cleber Rosa - 64.0-0 - New release * Tue Jul 17 2018 Cleber Rosa - 63.0-0 - New release * Tue Jun 12 2018 Cleber Rosa - 62.0-0 - New release * Thu Apr 26 2018 Cleber Rosa - 61.0-0 - New release * Wed Mar 28 2018 Cleber Rosa - 60.0-0 - New release * Wed Feb 28 2018 Cleber Rosa - 59.0-0 - New upstream release * Tue Jan 23 2018 Cleber Rosa - 58.0-0 - New upstream release * Tue Dec 19 2017 Cleber Rosa - 57.0-0 - New upstream release * Tue Nov 21 2017 Cleber Rosa - 56.0-0 - New upstream release * Tue Oct 17 2017 Cleber Rosa - 55.0-0 - New upstream release * Wed Sep 20 2017 Cleber Rosa - 54.0-0 - New upstream release * Tue Aug 15 2017 Cleber Rosa - 53.0-0 - New upstream release * Mon Jul 10 2017 Cleber Rosa - 51.0-2 - Satisfy avocado requirement with EPEL package * Wed Jun 14 2017 Cleber Rosa - 51.0-1 - Replace aexpect dependency with python-aexpect * Mon Jun 12 2017 Cleber Rosa - 51.0-0 - New upstream release * Wed May 17 2017 Cleber Rosa - 50.1-0 - New minor upstream release with VT JobLock fix * Tue May 16 2017 Cleber Rosa - 50.0-0 - New upstream release * Tue Apr 25 2017 Cleber Rosa - 49.0-0 - New upstream release - Used latest avocado LTS as mininum required version * Mon Apr 3 2017 Cleber Rosa - 48.0-0 - New upstream release * Sat Mar 18 2017 Cleber Rosa - 47.0-1 - Replaced 7z dependency for xz * Tue Mar 7 2017 Cleber Rosa - 47.0-0 - New upstream release * Thu Mar 2 2017 Cleber Rosa - 46.0-2 - Allow Avocado LTS version (or later) with avocado-plugins-vt - Fixed URL of Source0 (and modulename variable) - Fixed date of previous release * Wed Feb 15 2017 Radek Duda - 46.0-1 - Added python-netifaces to requires * Tue Feb 14 2017 Cleber Rosa - 46.0-0 - New upstream release * Thu Feb 9 2017 Lukas Doktor - 45.0-1 - Added python-netaddr to requires * Tue Jan 17 2017 Cleber Rosa - 45.0-0 - New upstream release * Wed Dec 7 2016 Cleber Rosa - 44.0-0 - New upstream version * Tue Nov 8 2016 Cleber Rosa - 43.0-0 - Update to upstream version 43.0 * Mon Oct 10 2016 Cleber Rosa - 42.0-0 - Update to upstream version 42.0 * Mon Sep 12 2016 Cleber Rosa - 41.0-0 - Update do upstream version 41.0 * Tue Aug 16 2016 Cleber Rosa - 40.0-0 - Update to upstream version 40.0 * Tue Jul 26 2016 Cleber Rosa - 39.0-0 - Update to upstream version 39.0 * Mon Jul 4 2016 Cleber Rosa - 38.0-0 - Update to upstream version 38.0 * Tue Jun 14 2016 Cleber Rosa - 37.0-0 - Update to upstream release 37.0 * Mon May 2 2016 Cleber Rosa - 35.0-1 - Added git to requires * Wed Apr 27 2016 Cleber Rosa - 35.0-0 - Update to upstream release 35.0 * Mon Mar 21 2016 Cleber Rosa - 0.34.0-0 - Update to upstream version 0.34.0 * Tue Feb 23 2016 Cleber Rosa - 0.33.0-1 - Require the avocado package of the exact same version * Wed Feb 17 2016 Cleber Rosa - 0.33.0-0 - Update to upstream version 0.33.0 * Wed Jan 20 2016 Cleber Rosa - 0.32.0-0 - Update to upstream version 0.32.0 * Wed Dec 23 2015 Cleber Rosa - 0.31.0-0 - Update to upstream version 0.31.0 * Thu Nov 5 2015 Cleber Rosa - 0.30.0-0 - Update to upstream version 0.30.0 * Wed Oct 7 2015 Lucas Meneghel Rodrigues - 0.29.0-1 - Update to upstream version 0.29.0 * Mon Sep 21 2015 Lucas Meneghel Rodrigues - 0.28.1-1 - Update to upstream version 0.28.1 * Wed Sep 16 2015 Lucas Meneghel Rodrigues - 0.28.0-1 - Update to upstream version 0.28.0 * Wed Sep 2 2015 Lucas Meneghel Rodrigues - 0.27.0-4 - Add aexpect dependency * Tue Aug 4 2015 Lucas Meneghel Rodrigues - 0.27.0-3 - Add video dependencies * Tue Aug 4 2015 Lucas Meneghel Rodrigues - 0.27.0-2 - Updated the spec file to require 'nc' instead of 'nmap-ncat' * Mon Aug 3 2015 Lucas Meneghel Rodrigues - 0.27.0-1 - Update to upstream version 0.27.0 * Thu Jul 30 2015 Lucas Meneghel Rodrigues - 0.26.0-2 - Merge with virt-test/updated package dependencies * Mon Jul 6 2015 Lucas Meneghel Rodrigues - 0.26.0-1 - Update to upstream version 0.26.0 * Tue Jun 16 2015 Lucas Meneghel Rodrigues - 0.25.0-1 - Update to upstream version 0.25.0 * Wed Jun 3 2015 Lucas Meneghel Rodrigues - 0.24.0-2 - First version of the compatibility layer plugin