avocado.spec 7.1 KB
Newer Older
1 2
Summary: Avocado Test Framework
Name: avocado
3
Version: 0.27.0
4
Release: 3%{?dist}
5 6
License: GPLv2
Group: Development/Tools
7
URL: http://avocado-framework.github.io/
8 9
Source: avocado-%{version}.tar.gz
BuildArch: noarch
10
Requires: python, python-requests, fabric, pyliblzma, libvirt-python, pystache, gdb, gdb-gdbserver
11
BuildRequires: python2-devel, python-docutils, python-nose, python-mock
12 13 14 15 16

%if 0%{?el6}
Requires: PyYAML
Requires: python-argparse, python-importlib, python-logutils, python-unittest2
BuildRequires: PyYAML
17
BuildRequires: python-argparse, python-importlib, python-logutils, python-unittest2
18
%else
19 20 21 22 23 24
Requires: python-yaml
BuildRequires: python-yaml, fabric
%endif

%if !0%{?el7}
BuildRequires: python-flexmock
25
%endif
26 27

%description
28 29
Avocado is a set of tools and libraries (what people call
these days a framework) to perform automated testing.
30 31 32 33 34 35

%prep
%setup -q

%build
%{__python} setup.py build
36
%{__make} man
37 38 39

%install
%{__python} setup.py install --root %{buildroot} --skip-build
C
Cleber Rosa 已提交
40 41
%{__mkdir} -p %{buildroot}%{_mandir}/man1
%{__install} -m 0644 man/avocado.1 %{buildroot}%{_mandir}/man1/avocado.1
42
%{__install} -m 0644 man/avocado-rest-client.1 %{buildroot}%{_mandir}/man1/avocado-rest-client.1
43

44 45 46 47 48 49 50 51
# Running the unittests is currently disabled on EL6 because fabric is
# missing on EPEL 6 and also on EL7 because python-flexmock is missing
# on EPEL7.
%if !0%{?rhel}
%check
selftests/run selftests/all/unit
%endif

52 53 54 55
%files
%defattr(-,root,root,-)
%doc README.rst LICENSE
%dir /etc/avocado
56
%dir /etc/avocado/conf.d
57
%dir /etc/avocado/sysinfo
58
%config(noreplace)/etc/avocado/avocado.conf
59
%config(noreplace)/etc/avocado/conf.d/README
60
%config(noreplace)/etc/avocado/conf.d/gdb.conf
61 62 63
%config(noreplace)/etc/avocado/sysinfo/commands
%config(noreplace)/etc/avocado/sysinfo/files
%config(noreplace)/etc/avocado/sysinfo/profilers
64
%{python_sitelib}/avocado*
65
%{_bindir}/avocado
66
%{_bindir}/avocado-rest-client
C
Cleber Rosa 已提交
67
%{_mandir}/man1/avocado.1.gz
68
%{_mandir}/man1/avocado-rest-client.1.gz
69 70
%{_docdir}/avocado/avocado.rst
%{_docdir}/avocado/avocado-rest-client.rst
71 72
%exclude %{python_sitelib}/avocado/core/plugins/htmlresult.py*
%exclude %{python_sitelib}/avocado/core/plugins/resources/htmlresult/*
73 74 75 76 77
%{_libexecdir}/avocado/avocado-bash-utils
%{_libexecdir}/avocado/avocado_debug
%{_libexecdir}/avocado/avocado_error
%{_libexecdir}/avocado/avocado_info
%{_libexecdir}/avocado/avocado_warn
78

79 80 81 82 83 84 85 86 87 88
%package plugins-output-html
Summary: Avocado HTML report plugin
Requires: avocado, 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
89 90
%{python_sitelib}/avocado/core/plugins/htmlresult.py*
%{python_sitelib}/avocado/core/plugins/resources/htmlresult/*
91

92
%package examples
93
Summary: Avocado Test Framework Example Tests
94 95
Requires: avocado

96 97 98 99
%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.
100

101
%files examples
102
%{_datadir}/avocado/tests
103
%{_datadir}/avocado/simpletests
104
%{_datadir}/avocado/wrappers
105 106

%changelog
107 108 109
* Tue Aug 4 2015 Lucas Meneghel Rodrigues <lmr@redhat.com> - 0.27.0-3
- Added 'gdb' and 'gdb-gdbserver' as requirements

110 111 112
* Mon Aug 3 2015 Lucas Meneghel Rodrigues <lmr@redhat.com> - 0.27.0-2
- Added 'python-mock' as a build requirement

113 114 115
* Mon Aug 3 2015 Lucas Meneghel Rodrigues <lmr@redhat.com> - 0.27.0-1
- New upstream release 0.27.0

116 117 118
* Mon Jul 6 2015 Lucas Meneghel Rodrigues <lmr@redhat.com> - 0.26.0-1
- New upstream release 0.26.0

119 120 121
* Tue Jun 16 2015 Lucas Meneghel Rodrigues <lmr@redhat.com> - 0.25.0-2
- Fix spec bug with BuildRequires on EPEL6

122 123 124
* Tue Jun 16 2015 Lucas Meneghel Rodrigues <lmr@redhat.com> - 0.25.0-1
- New upstream release 0.25.0

125 126 127
* Fri Jun  5 2015 Cleber Rosa <cleber@redhat.com> - 0.24.0-3
- Removed rest client API examples

128 129 130
* Mon May 25 2015 Cleber Rosa <cleber@redhat.com> - 0.24.0-2
- Added previously missing gdb.conf

131 132 133
* Mon May 18 2015 Ruda Moura <rmoura@redhat.com> - 0.24.0-1
- Update to upstream version 0.24.0

134 135 136
* Tue Apr 21 2015 Lucas Meneghel Rodrigues <lmr@redhat.com> - 0.23.0-1
- New upstream release

137 138 139
* Mon Apr 13 2015 Cleber Rosa <cleber@redhat.com> - 0.21.0-6
- Added sysinfo configuration files

140 141
* Sat Mar 28 2015 Cleber Rosa <cleber@redhat.com> - 0.21.0-5
- Change the way man pages are built, now using Makefile targets
142
- Reorganized runtime and build requirements
143
- Add a check section that runs unittests on Fedora
144

145 146 147 148 149 150 151 152 153 154 155 156 157 158 159
* Thu Mar 19 2015 Lucas Meneghel Rodrigues - 0.21.0-4
- COPR build fixes

* Mon Mar 16 2015 Lucas Meneghel Rodrigues - 0.21.0-3
- COPR build fixes

* Mon Mar 16 2015 Lucas Meneghel Rodrigues - 0.21.0-2
- COPR build fixes

* Mon Mar 16 2015 Lucas Meneghel Rodrigues - 0.21.0-1
- COPR build fixes

* Mon Mar 16 2015 Lucas Meneghel Rodrigues <lmr@redhat.com> - 0.21.0-0
- Update to upstream version 0.21.0

160 161 162
* Mon Feb 23 2015 Cleber Rosa <cleber@redhat.com> - 0.20.1-2
- Added avocado-rest-client modules, script, man page and API examples

163 164 165
* Fri Feb 6 2015 Lucas Meneghel Rodrigues <lmr@redhat.com> - 0.20.1-1
- Update to upstream version 0.20.1

166
* Tue Feb 3 2015 Lucas Meneghel Rodrigues <lmr@redhat.com> - 0.20.0-1
167 168
- Update to upstream version 0.20.0

169 170 171
* Mon Dec 15 2014 Lucas Meneghel Rodrigues <lmr@redhat.com> - 0.17.0-1
- Update to upstream version 0.17.0

172 173 174
* Wed Dec  3 2014 Lucas Meneghel Rodrigues <lmr@redhat.com> - 0.14.0-3
- Change config file name from settings.ini to avocado.conf

175 176 177
* Wed Dec  3 2014 Ruda Moura <rmoura@redhat.com> - 0.14.0-2
- Include all wrappers scripts to examples subpackage.

178 179 180
* Mon Oct 13 2014 Lucas Meneghel Rodrigues <lmr@redhat.com> - 0.14.0-1
- New upstream release

181
* Thu Sep 11 2014 Lucas Meneghel Rodrigues <lmr@redhat.com> - 0.12.0-2
182 183
- Rename -tests package to -examples

184 185 186
* Tue Sep  9 2014 Lucas Meneghel Rodrigues <lmr@redhat.com> - 0.12.0-1
- New upstream release

187 188 189
* Tue Sep  2 2014 Lucas Meneghel Rodrigues <lmr@redhat.com> - 0.11.1-2
- Added fabric dependency

190 191 192 193
* Wed Aug 20 2014 Lucas Meneghel Rodrigues <lmr@redhat.com> - 0.11.1-1
- Bumped version to avocado 0.11.1
- Added python-yaml build dependency

194 195 196 197
* Wed Aug 20 2014 Lucas Meneghel Rodrigues <lmr@redhat.com> - 0.11.0-1
- Bumped version to avocado 0.11.0
- Added python-yaml new dependency

C
Cleber Rosa 已提交
198 199 200
* Wed Aug 20 2014 Cleber Rosa <cleber@redhat.com> - 0.10.1-2
- Added initial avocado man page

201 202 203
* Tue Aug 12 2014 Lucas Meneghel Rodrigues <lmr@redhat.com> - 0.10.1-1
- Bugfix release 0.10.1

204 205 206
* Thu Aug  7 2014 Lucas Meneghel Rodrigues <lmr@redhat.com> - 0.10.0-1
- Bumped version to Avocado 0.10.0

207 208 209
* Wed Jul 30 2014 Cleber Rosa <cleber@redhat.com> - 0.8.0-2
- Split tests into avocado-tests package

210 211 212
* Fri Jul 18 2014 Lucas Meneghel Rodrigues <lmr@redhat.com> - 0.8.0-1
- Bumped version to Avocado 0.8.0

213 214 215
* Fri Jun 13 2014 Ruda Moura <rmoura@redhat.com> - 0.6.0-1
- Bumped version to Avocado 0.6.0

216 217 218
* Thu May  8 2014 Ruda Moura <rmoura@redhat.com> - 0.4.0-1
- Bumped version to Avocado 0.4.0

219 220 221
* Wed Apr 30 2014 Cleber Rosa <cleber@redhat.com> - 0.0.1-2
- Added new requirements reflecting new upstream deps

222 223
* Wed Apr  2 2014 Ruda Moura <rmoura@redhat.com> - 0.0.1-1
- Created initial spec file