forked from avocado-framework/avocado-vt
-
Notifications
You must be signed in to change notification settings - Fork 0
/
avocado-plugins-vt.spec
406 lines (295 loc) · 12.3 KB
/
avocado-plugins-vt.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
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
%global srcname avocado-vt
# Conditional for release vs. snapshot builds. Set to 1 for release build.
%if ! 0%{?rel_build:1}
%global rel_build 1
%endif
# Settings used for build from snapshots.
%if 0%{?rel_build}
%global gittar %{srcname}-%{version}.tar.gz
%else
%if ! 0%{?commit:1}
%global commit 22035893fc26a2a84f8e7a9cb6df21f596c1cda9
%endif
%if ! 0%{?commit_date:1}
%global commit_date 20230119
%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: 100.1
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
* Fri May 5 2023 Xu Han <[email protected]> - 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 <[email protected]> - 100.1-1
- New release
* Wed Jul 20 2022 Xu Han <[email protected]> - 98.0-2
- Removed python3-netaddr dependency
* Thu Jul 14 2022 Cleber Rosa <[email protected]> - 98.0-1
- New release
* Mon Dec 20 2021 Cleber Rosa <[email protected]> - 94.0-1
- New release
* Wed Nov 17 2021 Cleber Rosa <[email protected]> - 93.0-1
- New release
* Tue Oct 19 2021 Cleber Rosa <[email protected]> - 92.0-1
- New release
* Mon Aug 30 2021 Cleber Rosa <[email protected]> - 91.0-1
- New release
* Tue Jul 27 2021 Cleber Rosa <[email protected]> - 90.0-1
- New release
* Mon May 24 2021 Jan Richter <[email protected]> - 88.0-2
- Experimental runner implementation for the nrunner architecture
* Tue May 18 2021 Cleber Rosa <[email protected]> - 88.0-1
- New release
* Mon May 10 2021 Cleber Rosa <[email protected]> - 87.0-2
- Remove Python 2 packages
* Wed Apr 14 2021 Cleber Rosa <[email protected]> - 87.0-1
- New release
* Tue Mar 16 2021 Cleber Rosa <[email protected]> - 86.0-1
- New release
* Tue Feb 16 2021 Plamen Dimitrov <[email protected]> - 85.0-2
- Python 2 subpackage is now optional
* Mon Feb 15 2021 Cleber Rosa <[email protected]> - 85.0-1
- New release
* Tue Nov 17 2020 Cleber Rosa <[email protected]> - 83.0-1
- New release
* Fri Oct 30 2020 Cleber Rosa <[email protected]> - 82.0-2
- Use data files from Python's standard location
* Sun Sep 13 2020 Cleber Rosa <[email protected]> - 82.0-1
- New release
* Tue Sep 1 2020 Cleber Rosa <[email protected]> - 81.0-1
- New release
* Fri Jun 5 2020 Cleber Rosa <[email protected]> - 80.0-1
- New release
* Mon May 11 2020 Cleber Rosa <[email protected]> - 79.0-0
- New release
* Tue Apr 14 2020 Cleber Rosa <[email protected]> - 78.0-0
- New release
* Tue Mar 17 2020 Cleber Rosa <[email protected]> - 77.0-0
- New release
* Mon Feb 24 2020 Cleber Rosa <[email protected]> - 76.0-0
- New release
* Fri Feb 21 2020 Plamen Dimitrov <[email protected]> - 75.0-1
- Rename package to "avocado_framework_plugin_vt"
- Complete the use of the sysconfdir variable
* Tue Jan 21 2020 Cleber Rosa <[email protected]> - 75.0-0
- New release
* Mon Dec 23 2019 Cleber Rosa <[email protected]> - 74.0-0
- New release
* Sat Nov 23 2019 Cleber Rosa <[email protected]> - 73.0-0
- New release
* Wed Sep 18 2019 Cleber Rosa <[email protected]> - 72.0-0
- New release
* Thu Aug 15 2019 Cleber Rosa <[email protected]> - 71.0-0
- New release
* Thu Aug 15 2019 Cleber Rosa <[email protected]> - 70.0-4
- Fixed configuration location on Python 2 (only) builds
* Wed Aug 14 2019 Cleber Rosa <[email protected]> - 70.0-3
- Added six requirement
* Wed Aug 14 2019 Lukas Doktor <[email protected]> - 70.0-2
- Change the way config files are packaged
* Wed Aug 14 2019 Lukas Doktor <[email protected]> - 70.0-1
- Rename package to "avocado_framework_plugins_vt"
* Wed Jun 26 2019 Cleber Rosa <[email protected]> - 70.0-0
- New release
* Tue Jun 25 2019 Cleber Rosa <[email protected]> - 69.0-1
- Exclude scripts from shebangs checks
* Tue Feb 26 2019 Cleber Rosa <[email protected]> - 69.0-0
- New release
* Sat Feb 16 2019 Cleber Rosa <[email protected]> - 68.0-1
- Use python2 requires on EL7
* Wed Feb 13 2019 Cleber Rosa <[email protected]> - 68.0-0
- New release
* Sat Jan 5 2019 Plamen Dimitrov <[email protected]> - 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 <[email protected]> - 67.0-0
- New release
* Tue Nov 20 2018 Cleber Rosa <[email protected]> - 66.0-0
- New release
* Mon Nov 19 2018 Cleber Rosa <[email protected]> - 65.0-1
- Updated macros to Python 2
* Tue Oct 2 2018 Cleber Rosa <[email protected]> - 65.0-0
- New release
* Mon Aug 27 2018 Cleber Rosa <[email protected]> - 64.0-0
- New release
* Tue Jul 17 2018 Cleber Rosa <[email protected]> - 63.0-0
- New release
* Tue Jun 12 2018 Cleber Rosa <[email protected]> - 62.0-0
- New release
* Thu Apr 26 2018 Cleber Rosa <[email protected]> - 61.0-0
- New release
* Wed Mar 28 2018 Cleber Rosa <[email protected]> - 60.0-0
- New release
* Wed Feb 28 2018 Cleber Rosa <[email protected]> - 59.0-0
- New upstream release
* Tue Jan 23 2018 Cleber Rosa <[email protected]> - 58.0-0
- New upstream release
* Tue Dec 19 2017 Cleber Rosa <[email protected]> - 57.0-0
- New upstream release
* Tue Nov 21 2017 Cleber Rosa <[email protected]> - 56.0-0
- New upstream release
* Tue Oct 17 2017 Cleber Rosa <[email protected]> - 55.0-0
- New upstream release
* Wed Sep 20 2017 Cleber Rosa <[email protected]> - 54.0-0
- New upstream release
* Tue Aug 15 2017 Cleber Rosa <[email protected]> - 53.0-0
- New upstream release
* Mon Jul 10 2017 Cleber Rosa <[email protected]> - 51.0-2
- Satisfy avocado requirement with EPEL package
* Wed Jun 14 2017 Cleber Rosa <[email protected]> - 51.0-1
- Replace aexpect dependency with python-aexpect
* Mon Jun 12 2017 Cleber Rosa <[email protected]> - 51.0-0
- New upstream release
* Wed May 17 2017 Cleber Rosa <[email protected]> - 50.1-0
- New minor upstream release with VT JobLock fix
* Tue May 16 2017 Cleber Rosa <[email protected]> - 50.0-0
- New upstream release
* Tue Apr 25 2017 Cleber Rosa <[email protected]> - 49.0-0
- New upstream release
- Used latest avocado LTS as mininum required version
* Mon Apr 3 2017 Cleber Rosa <[email protected]> - 48.0-0
- New upstream release
* Sat Mar 18 2017 Cleber Rosa <[email protected]> - 47.0-1
- Replaced 7z dependency for xz
* Tue Mar 7 2017 Cleber Rosa <[email protected]> - 47.0-0
- New upstream release
* Thu Mar 2 2017 Cleber Rosa <[email protected]> - 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 <[email protected]> - 46.0-1
- Added python-netifaces to requires
* Tue Feb 14 2017 Cleber Rosa <[email protected]> - 46.0-0
- New upstream release
* Thu Feb 9 2017 Lukas Doktor <[email protected]> - 45.0-1
- Added python-netaddr to requires
* 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 version
* Tue Nov 8 2016 Cleber Rosa <[email protected]> - 43.0-0
- Update to upstream version 43.0
* Mon Oct 10 2016 Cleber Rosa <[email protected]> - 42.0-0
- Update to upstream version 42.0
* Mon Sep 12 2016 Cleber Rosa <[email protected]> - 41.0-0
- Update do upstream version 41.0
* Tue Aug 16 2016 Cleber Rosa <[email protected]> - 40.0-0
- Update to upstream version 40.0
* Tue Jul 26 2016 Cleber Rosa <[email protected]> - 39.0-0
- Update to upstream version 39.0
* Mon Jul 4 2016 Cleber Rosa <[email protected]> - 38.0-0
- Update to upstream version 38.0
* Tue Jun 14 2016 Cleber Rosa <[email protected]> - 37.0-0
- Update to upstream release 37.0
* Mon May 2 2016 Cleber Rosa <[email protected]> - 35.0-1
- Added git to requires
* Wed Apr 27 2016 Cleber Rosa <[email protected]> - 35.0-0
- Update to upstream release 35.0
* Mon Mar 21 2016 Cleber Rosa <[email protected]> - 0.34.0-0
- Update to upstream version 0.34.0
* Tue Feb 23 2016 Cleber Rosa <[email protected]> - 0.33.0-1
- Require the avocado package of the exact same version
* Wed Feb 17 2016 Cleber Rosa <[email protected]> - 0.33.0-0
- Update to upstream version 0.33.0
* Wed Jan 20 2016 Cleber Rosa <[email protected]> - 0.32.0-0
- Update to upstream version 0.32.0
* Wed Dec 23 2015 Cleber Rosa <[email protected]> - 0.31.0-0
- Update to upstream version 0.31.0
* Thu Nov 5 2015 Cleber Rosa <[email protected]> - 0.30.0-0
- Update to upstream version 0.30.0
* Wed Oct 7 2015 Lucas Meneghel Rodrigues <[email protected]> - 0.29.0-1
- Update to upstream version 0.29.0
* Mon Sep 21 2015 Lucas Meneghel Rodrigues <[email protected]> - 0.28.1-1
- Update to upstream version 0.28.1
* Wed Sep 16 2015 Lucas Meneghel Rodrigues <[email protected]> - 0.28.0-1
- Update to upstream version 0.28.0
* Wed Sep 2 2015 Lucas Meneghel Rodrigues <[email protected]> - 0.27.0-4
- Add aexpect dependency
* Tue Aug 4 2015 Lucas Meneghel Rodrigues <[email protected]> - 0.27.0-3
- Add video dependencies
* Tue Aug 4 2015 Lucas Meneghel Rodrigues <[email protected]> - 0.27.0-2
- Updated the spec file to require 'nc' instead of 'nmap-ncat'
* Mon Aug 3 2015 Lucas Meneghel Rodrigues <[email protected]> - 0.27.0-1
- Update to upstream version 0.27.0
* Thu Jul 30 2015 Lucas Meneghel Rodrigues <[email protected]> - 0.26.0-2
- Merge with virt-test/updated package dependencies
* Mon Jul 6 2015 Lucas Meneghel Rodrigues <[email protected]> - 0.26.0-1
- Update to upstream version 0.26.0
* Tue Jun 16 2015 Lucas Meneghel Rodrigues <[email protected]> - 0.25.0-1
- Update to upstream version 0.25.0
* Wed Jun 3 2015 Lucas Meneghel Rodrigues <[email protected]> - 0.24.0-2
- First version of the compatibility layer plugin