forked from avocado-framework/avocado
-
Notifications
You must be signed in to change notification settings - Fork 0
/
avocado.spec
306 lines (227 loc) · 9.96 KB
/
avocado.spec
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
%global modulename avocado
%if ! 0%{?commit:1}
%define commit e8b774aa9d3e760b32e2d3eaacd6c603833fd342
%endif
%global shortcommit %(c=%{commit}; echo ${c:0:7})
Summary: Framework with tools and libraries for Automated Testing
Name: avocado
Version: 45.0
Release: 1%{?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
BuildArch: noarch
Requires: python, python-requests, fabric, pyliblzma, libvirt-python, gdb, gdb-gdbserver, python-stevedore, python-yaml, procps-ng, 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, python-yaml, procps-ng
%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}
%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,-)
%doc README.rst LICENSE
%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
* Fri Feb 3 2017 Cleber Rosa <[email protected]> - 45.0-1
- Removed support for EL6 requirements
* Tue Jan 17 2017 Cleber Rosa <[email protected]> - 45.0-0
- New upstream release
* Wed Dec 7 2016 Cleber Rosa <[email protected]> - 44.0-0
- New upstream release
* Tue Nov 8 2016 Cleber Rosa <[email protected]> - 43.0-0
- New upstream release
* Mon Oct 10 2016 Cleber Rosa <[email protected]> - 42.0-0
- New upstream release
* Fri Sep 16 2016 Cleber Rosa <[email protected]> - 41.0-1
- Consolidated build requires common to all targets
- Enabled check on EL6
* Mon Sep 12 2016 Cleber Rosa <[email protected]> - 41.0-0
- New upstream release
* Tue Sep 6 2016 Cleber Rosa <[email protected]> - 40.0-1
- Adapt build of now separate html plugin
* Tue Aug 16 2016 Cleber Rosa <[email protected]> - 40.0-0
- New upstream release
* Tue Aug 2 2016 Cleber Rosa <[email protected]> - 39.0-1
- Added expect requirement (for Docker plugin)
* Tue Jul 26 2016 Cleber Rosa <[email protected]> - 39.0-0
- New upstream release
* Mon Jul 4 2016 Cleber Rosa <[email protected]> - 38.0-0
- New upstream release
* Tue Jun 14 2016 Cleber Rosa <[email protected]> - 37.0-0
- New upstream release
* Thu May 05 2016 Amador Pahim <[email protected]> - 35.0-1
- Removed simpletests directory
* Wed Apr 27 2016 Cleber Rosa <[email protected]> - 35.0-0
- New upstream release 35.0 (new versioning scheme)
* Thu Apr 14 2016 Cleber Rosa <[email protected]> - 0.34.0-1
- Added job pre/post scripts directories
* Mon Mar 21 2016 Cleber Rosa <[email protected]> - 0.34.0-0
- New upstream release 0.34.0
* Wed Feb 17 2016 Cleber Rosa <[email protected]> - 0.33.0-1
- Updated requirement: procps for EL6, procps-ng for other distros
* Tue Feb 16 2016 Cleber Rosa <[email protected]> - 0.33.0-0
- New upstream release 0.33.0
* Wed Jan 20 2016 Cleber Rosa <[email protected]> - 0.32.0-0
- New upstream release 0.32.0
* Wed Dec 23 2015 Cleber Rosa <[email protected]> - 0.31.0-0
- New upstream release 0.31.0
* Tue Nov 17 2015 Cleber Rosa <[email protected]> - 0.30.0-1
- Add python-stevedore to Requires
* Thu Nov 5 2015 Cleber Rosa <[email protected]> - 0.30.0-0
- New upstream release 0.30.0
* Wed Oct 7 2015 Lucas Meneghel Rodrigues <[email protected]> - 0.29.0-2
- Add python-setuptools to BuildRequires
* Wed Oct 7 2015 Lucas Meneghel Rodrigues <[email protected]> - 0.29.0-1
- New upstream release 0.29.0
* Wed Sep 16 2015 Lucas Meneghel Rodrigues <[email protected]> - 0.28.0-2
- Add pystache, aexpect, psutil, sphinx and yum/dnf dependencies for functional/unittests
* Wed Sep 16 2015 Lucas Meneghel Rodrigues <[email protected]> - 0.28.0-1
- New upstream release 0.28.0
* Tue Aug 4 2015 Lucas Meneghel Rodrigues <[email protected]> - 0.27.0-3
- Added 'gdb' and 'gdb-gdbserver' as requirements
* Mon Aug 3 2015 Lucas Meneghel Rodrigues <[email protected]> - 0.27.0-2
- Added 'python-mock' as a build requirement
* Mon Aug 3 2015 Lucas Meneghel Rodrigues <[email protected]> - 0.27.0-1
- New upstream release 0.27.0
* Mon Jul 6 2015 Lucas Meneghel Rodrigues <[email protected]> - 0.26.0-1
- New upstream release 0.26.0
* Tue Jun 16 2015 Lucas Meneghel Rodrigues <[email protected]> - 0.25.0-2
- Fix spec bug with BuildRequires on EPEL6
* Tue Jun 16 2015 Lucas Meneghel Rodrigues <[email protected]> - 0.25.0-1
- New upstream release 0.25.0
* Fri Jun 5 2015 Cleber Rosa <[email protected]> - 0.24.0-3
- Removed rest client API examples
* Mon May 25 2015 Cleber Rosa <[email protected]> - 0.24.0-2
- Added previously missing gdb.conf
* Mon May 18 2015 Ruda Moura <[email protected]> - 0.24.0-1
- Update to upstream version 0.24.0
* Tue Apr 21 2015 Lucas Meneghel Rodrigues <[email protected]> - 0.23.0-1
- New upstream release
* Mon Apr 13 2015 Cleber Rosa <[email protected]> - 0.21.0-6
- Added sysinfo configuration files
* Sat Mar 28 2015 Cleber Rosa <[email protected]> - 0.21.0-5
- Change the way man pages are built, now using Makefile targets
- Reorganized runtime and build requirements
- Add a check section that runs unittests on Fedora
* 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 <[email protected]> - 0.21.0-0
- Update to upstream version 0.21.0
* Mon Feb 23 2015 Cleber Rosa <[email protected]> - 0.20.1-2
- Added avocado-rest-client modules, script, man page and API examples
* Fri Feb 6 2015 Lucas Meneghel Rodrigues <[email protected]> - 0.20.1-1
- Update to upstream version 0.20.1
* Tue Feb 3 2015 Lucas Meneghel Rodrigues <[email protected]> - 0.20.0-1
- Update to upstream version 0.20.0
* Mon Dec 15 2014 Lucas Meneghel Rodrigues <[email protected]> - 0.17.0-1
- Update to upstream version 0.17.0
* Wed Dec 3 2014 Lucas Meneghel Rodrigues <[email protected]> - 0.14.0-3
- Change config file name from settings.ini to avocado.conf
* Wed Dec 3 2014 Ruda Moura <[email protected]> - 0.14.0-2
- Include all wrappers scripts to examples subpackage.
* Mon Oct 13 2014 Lucas Meneghel Rodrigues <[email protected]> - 0.14.0-1
- New upstream release
* Thu Sep 11 2014 Lucas Meneghel Rodrigues <[email protected]> - 0.12.0-2
- Rename -tests package to -examples
* Tue Sep 9 2014 Lucas Meneghel Rodrigues <[email protected]> - 0.12.0-1
- New upstream release
* Tue Sep 2 2014 Lucas Meneghel Rodrigues <[email protected]> - 0.11.1-2
- Added fabric dependency
* Wed Aug 20 2014 Lucas Meneghel Rodrigues <[email protected]> - 0.11.1-1
- Bumped version to avocado 0.11.1
- Added python-yaml build dependency
* Wed Aug 20 2014 Lucas Meneghel Rodrigues <[email protected]> - 0.11.0-1
- Bumped version to avocado 0.11.0
- Added python-yaml new dependency
* Wed Aug 20 2014 Cleber Rosa <[email protected]> - 0.10.1-2
- Added initial avocado man page
* Tue Aug 12 2014 Lucas Meneghel Rodrigues <[email protected]> - 0.10.1-1
- Bugfix release 0.10.1
* Thu Aug 7 2014 Lucas Meneghel Rodrigues <[email protected]> - 0.10.0-1
- Bumped version to Avocado 0.10.0
* Wed Jul 30 2014 Cleber Rosa <[email protected]> - 0.8.0-2
- Split tests into avocado-tests package
* Fri Jul 18 2014 Lucas Meneghel Rodrigues <[email protected]> - 0.8.0-1
- Bumped version to Avocado 0.8.0
* Fri Jun 13 2014 Ruda Moura <[email protected]> - 0.6.0-1
- Bumped version to Avocado 0.6.0
* Thu May 8 2014 Ruda Moura <[email protected]> - 0.4.0-1
- Bumped version to Avocado 0.4.0
* Wed Apr 30 2014 Cleber Rosa <[email protected]> - 0.0.1-2
- Added new requirements reflecting new upstream deps
* Wed Apr 2 2014 Ruda Moura <[email protected]> - 0.0.1-1
- Created initial spec file