%global modulename avocado %if ! 0%{?commit:1} %define commit 1f559df9fb4a11b650281ae7db99c07e25346997 %endif %global shortcommit %(c=%{commit}; echo ${c:0:7}) Summary: Framework with tools and libraries for Automated Testing Name: avocado Version: 43.0 Release: 0%{?dist} License: GPLv2 Group: Development/Tools URL: http://avocado-framework.github.io/ Source0: https://github.com/avocado-framework/%{name}/archive/%{commit}/%{name}-%{version}-%{shortcommit}.tar.gz Patch1: avocado-43.0-selftest.patch BuildArch: noarch Requires: python, python-requests, fabric, pyliblzma, libvirt-python, pystache, gdb, gdb-gdbserver, python-stevedore, aexpect BuildRequires: python2-devel, python-setuptools, python-docutils, python-mock, python-psutil, python-sphinx, python-requests, aexpect, pystache, yum, python-stevedore, python-lxml, perl-Test-Harness, fabric, python-flexmock %if 0%{?el6} Requires: PyYAML Requires: python-argparse, python-importlib, python-logutils, python-unittest2, procps BuildRequires: PyYAML BuildRequires: python-argparse, python-importlib, python-logutils, python-unittest2, procps %else Requires: python-yaml, procps-ng BuildRequires: python-yaml, procps-ng %endif %if 0%{?fedora} >= 25 BuildRequires: kmod %endif %if 0%{?rhel} >= 7 BuildRequires: kmod %endif %description Avocado is a set of tools and libraries (what people call these days a framework) to perform automated testing. %prep %setup -q -n %{name}-%{commit} %patch1 -p1 %build %{__python} setup.py build cd optional_plugins/html %{__python} setup.py build cd ../../ %{__make} man %install %{__python} setup.py install --root %{buildroot} --skip-build cd optional_plugins/html %{__python} setup.py install --root %{buildroot} --skip-build cd ../../ %{__mkdir} -p %{buildroot}%{_mandir}/man1 %{__install} -m 0644 man/avocado.1 %{buildroot}%{_mandir}/man1/avocado.1 %{__install} -m 0644 man/avocado-rest-client.1 %{buildroot}%{_mandir}/man1/avocado-rest-client.1 %check selftests/run %files %defattr(-,root,root,-) %license LICENSE %doc README.rst %dir /etc/avocado %dir /etc/avocado/conf.d %dir /etc/avocado/sysinfo %dir /etc/avocado/scripts/job/pre.d %dir /etc/avocado/scripts/job/post.d %config(noreplace)/etc/avocado/avocado.conf %config(noreplace)/etc/avocado/conf.d/README %config(noreplace)/etc/avocado/conf.d/gdb.conf %config(noreplace)/etc/avocado/sysinfo/commands %config(noreplace)/etc/avocado/sysinfo/files %config(noreplace)/etc/avocado/sysinfo/profilers %config(noreplace)/etc/avocado/scripts/job/pre.d/README %config(noreplace)/etc/avocado/scripts/job/post.d/README %{python_sitelib}/avocado* %{_bindir}/avocado %{_bindir}/avocado-rest-client %{_mandir}/man1/avocado.1.gz %{_mandir}/man1/avocado-rest-client.1.gz %{_docdir}/avocado/avocado.rst %{_docdir}/avocado/avocado-rest-client.rst %exclude %{python_sitelib}/avocado_result_html* %{_libexecdir}/avocado/avocado-bash-utils %{_libexecdir}/avocado/avocado_debug %{_libexecdir}/avocado/avocado_error %{_libexecdir}/avocado/avocado_info %{_libexecdir}/avocado/avocado_warn %package plugins-output-html Summary: Avocado HTML report plugin Requires: avocado == %{version}, pystache %description plugins-output-html Adds to avocado the ability to generate an HTML report at every job results directory. It also gives the user the ability to write a report on an arbitrary filesystem location. %files plugins-output-html %{python_sitelib}/avocado_result_html* %package examples Summary: Avocado Test Framework Example Tests Requires: avocado == %{version} %description examples The set of example tests present in the upstream tree of the Avocado framework. Some of them are used as functional tests of the framework, others serve as examples of how to write tests on your own. %files examples %{_datadir}/avocado/tests %{_datadir}/avocado/wrappers %changelog * Tue Nov 8 2016 Merlin Mathesius - 43.0-0 - Initial packaging for Fedora.