python-avocado.spec 28.9 KB
Newer Older
1
%global srcname avocado
2 3 4

# Conditional for release vs. snapshot builds. Set to 1 for release build.
%if ! 0%{?rel_build:1}
5
    %global rel_build 1
6 7 8 9
%endif

# Settings used for build from snapshots.
%if 0%{?rel_build}
10
    %global gittar          %{srcname}-%{version}.tar.gz
11
%else
12
    %if ! 0%{?commit:1}
C
Cleber Rosa 已提交
13
        %global commit      6c9fb563adf92581fb9368dff68c447bea4364a4
14 15
    %endif
    %if ! 0%{?commit_date:1}
C
Cleber Rosa 已提交
16
        %global commit_date 20180424
17
    %endif
18 19 20
    %global shortcommit     %(c=%{commit};echo ${c:0:8})
    %global gitrel          .%{commit_date}git%{shortcommit}
    %global gittar          %{srcname}-%{shortcommit}.tar.gz
21 22
%endif

23 24 25
# Selftests are provided but may need to be skipped because many of
# the functional tests are time and resource sensitive and can
# cause race conditions and random build failures. They are
26 27 28
# enabled by default.
%global with_tests 1

C
Cleber Rosa 已提交
29 30 31 32 33 34
%if 0%{?rhel}
%global with_python3 0
%else
%global with_python3 1
%endif

35 36 37 38 39
# 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]$

40
Summary: Framework with tools and libraries for Automated Testing
41
Name: python-%{srcname}
C
Cleber Rosa 已提交
42
Version: 61.0
43
Release: 1%{?gitrel}%{?dist}
44 45
License: GPLv2
Group: Development/Tools
46
URL: http://avocado-framework.github.io/
47 48 49 50 51
%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}
%endif
52
BuildArch: noarch
53 54
BuildRequires: fabric
BuildRequires: procps-ng
C
Cleber Rosa 已提交
55
BuildRequires: kmod
56
%if 0%{?rhel} == 7
57 58 59 60
BuildRequires: pystache
BuildRequires: python-lxml
BuildRequires: python-setuptools
BuildRequires: python-stevedore
61
BuildRequires: python2-aexpect
62
BuildRequires: python2-devel
63 64 65 66 67 68 69
BuildRequires: python2-docutils
BuildRequires: python2-mock
BuildRequires: python2-psutil
BuildRequires: python2-requests
BuildRequires: python2-resultsdb_api
BuildRequires: python2-six
BuildRequires: python2-sphinx
70
BuildRequires: yum
71 72 73 74 75 76 77 78 79 80 81 82 83 84 85
%else
BuildRequires: pystache
BuildRequires: python2-aexpect
BuildRequires: python2-devel
BuildRequires: python2-docutils
BuildRequires: python2-lxml
BuildRequires: python2-mock
BuildRequires: python2-psutil
BuildRequires: python2-requests
BuildRequires: python2-resultsdb_api
BuildRequires: python2-setuptools
BuildRequires: python2-six
BuildRequires: python2-sphinx
BuildRequires: python2-stevedore
%endif
86

C
Cleber Rosa 已提交
87 88 89 90 91 92 93 94 95 96 97 98 99 100
%if %{with_python3}
BuildRequires: python3-pystache
BuildRequires: python3-aexpect
BuildRequires: python3-devel
BuildRequires: python3-docutils
BuildRequires: python3-lxml
BuildRequires: python3-psutil
BuildRequires: python3-requests
BuildRequires: python3-setuptools
BuildRequires: python3-six
BuildRequires: python3-sphinx
BuildRequires: python3-stevedore
%endif

101 102 103
%if %{with_tests}
BuildRequires: libvirt-python
BuildRequires: perl-Test-Harness
104
%if 0%{?rhel}
105
BuildRequires: PyYAML
106 107 108
%else
BuildRequires: python2-yaml
%endif
C
Cleber Rosa 已提交
109 110 111
%if %{with_python3}
BuildRequires: python3-yaml
%endif
112 113
%endif

114 115 116 117 118 119 120
%description
Avocado is a set of tools and libraries (what people call
these days a framework) to perform automated testing.

%package -n python2-%{srcname}
Summary: %{summary}
Requires: %{name}-common == %{version}
121 122 123 124
Requires: gdb
Requires: gdb-gdbserver
Requires: procps-ng
Requires: pyliblzma
125
%if 0%{?rhel} == 7
126 127
Requires: python
Requires: python-setuptools
128
Requires: python-six
129
Requires: python-stevedore
130 131 132 133 134
Requires: python2-requests
%else
Requires: python2
Requires: python2-requests
Requires: python2-setuptools
135
Requires: python2-six
136 137
Requires: python2-stevedore
%endif
138 139 140 141 142 143
%{?python_provide:%python_provide python2-%{srcname}}

%description -n python2-%{srcname}
Avocado is a set of tools and libraries (what people call
these days a framework) to perform automated testing.

C
Cleber Rosa 已提交
144
%if %{with_python3}
C
Cleber Rosa 已提交
145 146
%package -n python3-%{srcname}
Summary: %{summary}
147 148 149 150 151
Requires: %{name}-common == %{version}
Requires: gdb
Requires: gdb-gdbserver
Requires: procps-ng
Requires: pyliblzma
C
Cleber Rosa 已提交
152 153 154 155 156
Requires: python3
Requires: python3-requests
Requires: python3-setuptools
Requires: python3-six
Requires: python3-stevedore
157
%{?python_provide:%python_provide python3-%{srcname}}
C
Cleber Rosa 已提交
158 159 160 161

%description -n python3-%{srcname}
Avocado is a set of tools and libraries (what people call
these days a framework) to perform automated testing.
C
Cleber Rosa 已提交
162
%endif
C
Cleber Rosa 已提交
163

164
%prep
165 166 167
%if 0%{?rel_build}
%setup -q -n %{srcname}-%{version}
%else
168
%setup -q -n %{srcname}-%{commit}
169
%endif
170 171 172 173
# package plugins-runner-vm requires libvirt-python, but the RPM
# version of libvirt-python does not publish the egg info and this
# causes that dep to be attempted to be installed by pip
sed -e "s/'libvirt-python'//" -i optional_plugins/runner_vm/setup.py
174 175

%build
176 177 178
%if 0%{?rhel} == 7
sed -e "s/'six>=1.10.0'/'six>=1.9.0'/" -i setup.py
%endif
179
%py2_build
C
Cleber Rosa 已提交
180 181 182
%if %{with_python3}
%py3_build
%endif
183
pushd optional_plugins/html
184
%py2_build
C
Cleber Rosa 已提交
185 186 187
%if %{with_python3}
%py3_build
%endif
188
popd
C
Cleber Rosa 已提交
189
# no runner_remote plugin on Python 3 due to missing Fabric package
190
pushd optional_plugins/runner_remote
191
%py2_build
192
popd
C
Cleber Rosa 已提交
193
# no runner_vm plugin on Python 3 due to missing Fabric package
194
pushd optional_plugins/runner_vm
195
%py2_build
196
popd
C
Cleber Rosa 已提交
197
# no runner_docker plugin on Python 3 due to missing Fabric package
198
pushd optional_plugins/runner_docker
199
%py2_build
200
popd
C
Cleber Rosa 已提交
201
# no resultsdb plugin on Python 3 due to missing resultsdb_api package
202
pushd optional_plugins/resultsdb
203
%py2_build
204
popd
205
pushd optional_plugins/varianter_yaml_to_mux
206
%py2_build
C
Cleber Rosa 已提交
207 208 209
%if %{with_python3}
%py3_build
%endif
210
popd
211
pushd optional_plugins/loader_yaml
212
%py2_build
C
Cleber Rosa 已提交
213 214 215
%if %{with_python3}
%py3_build
%endif
216
popd
C
Cleber Rosa 已提交
217
pushd optional_plugins/golang
218
%py2_build
C
Cleber Rosa 已提交
219 220 221
%if %{with_python3}
%py3_build
%endif
C
Cleber Rosa 已提交
222
popd
223
pushd optional_plugins/varianter_pict
224
%py2_build
C
Cleber Rosa 已提交
225 226 227
%if %{with_python3}
%py3_build
%endif
228
popd
229
pushd optional_plugins/result_upload
230
%py2_build
C
Cleber Rosa 已提交
231 232 233
%if %{with_python3}
%py3_build
%endif
234
popd
C
Cleber Rosa 已提交
235
pushd optional_plugins/glib
236
%py2_build
C
Cleber Rosa 已提交
237 238 239
%if %{with_python3}
%py3_build
%endif
C
Cleber Rosa 已提交
240
popd
241
%{__make} man
242 243

%install
244 245 246 247
%py2_install
%{__mv} %{buildroot}%{python2_sitelib}/avocado/etc %{buildroot}
mv %{buildroot}%{_bindir}/avocado %{buildroot}%{_bindir}/avocado-%{python2_version}
ln -s avocado-%{python2_version} %{buildroot}%{_bindir}/avocado-2
M
Merlin Mathesius 已提交
248 249
mv %{buildroot}%{_bindir}/avocado-rest-client %{buildroot}%{_bindir}/avocado-rest-client-%{python2_version}
ln -s avocado-rest-client-%{python2_version} %{buildroot}%{_bindir}/avocado-rest-client-2
C
Cleber Rosa 已提交
250 251 252 253
%if %{with_python3}
%py3_install
mv %{buildroot}%{_bindir}/avocado %{buildroot}%{_bindir}/avocado-%{python3_version}
ln -s avocado-%{python3_version} %{buildroot}%{_bindir}/avocado-3
M
Merlin Mathesius 已提交
254 255
mv %{buildroot}%{_bindir}/avocado-rest-client %{buildroot}%{_bindir}/avocado-rest-client-%{python3_version}
ln -s avocado-rest-client-%{python3_version} %{buildroot}%{_bindir}/avocado-rest-client-3
C
Cleber Rosa 已提交
256 257 258 259 260 261
# configuration is held at /etc/avocado only and part of the
# python-avocado-common package
%{__rm} -rf %{buildroot}%{python3_sitelib}/avocado/etc
# ditto for libexec files
%{__rm} -rf %{buildroot}%{python3_sitelib}/avocado/libexec
%endif
262
ln -s avocado-%{python2_version} %{buildroot}%{_bindir}/avocado
M
Merlin Mathesius 已提交
263
ln -s avocado-rest-client-%{python2_version} %{buildroot}%{_bindir}/avocado-rest-client
264
pushd optional_plugins/html
265
%py2_install
C
Cleber Rosa 已提交
266 267 268
%if %{with_python3}
%py3_install
%endif
269
popd
C
Cleber Rosa 已提交
270
# no runner_remote plugin on Python 3 due to missing Fabric package
271
pushd optional_plugins/runner_remote
272
%py2_install
273
popd
C
Cleber Rosa 已提交
274
# no runner_vm plugin on Python 3 due to missing Fabric package
275
pushd optional_plugins/runner_vm
276
%py2_install
277
popd
C
Cleber Rosa 已提交
278
# no runner_docker plugin on Python 3 due to missing Fabric package
279
pushd optional_plugins/runner_docker
280
%py2_install
281
popd
C
Cleber Rosa 已提交
282
# no resultsdb plugin on Python 3 due to missing resultsdb_api package
283
pushd optional_plugins/resultsdb
284
%py2_install
285
popd
286
pushd optional_plugins/varianter_yaml_to_mux
287
%py2_install
C
Cleber Rosa 已提交
288 289 290
%if %{with_python3}
%py3_install
%endif
291
popd
292
pushd optional_plugins/loader_yaml
293
%py2_install
C
Cleber Rosa 已提交
294 295 296
%if %{with_python3}
%py3_install
%endif
297
popd
C
Cleber Rosa 已提交
298
pushd optional_plugins/golang
299
%py2_install
C
Cleber Rosa 已提交
300 301 302
%if %{with_python3}
%py3_install
%endif
C
Cleber Rosa 已提交
303
popd
304
pushd optional_plugins/varianter_pict
305
%py2_install
C
Cleber Rosa 已提交
306 307 308
%if %{with_python3}
%py3_install
%endif
309
popd
310
pushd optional_plugins/result_upload
311
%py2_install
C
Cleber Rosa 已提交
312 313 314
%if %{with_python3}
%py3_install
%endif
315
popd
C
Cleber Rosa 已提交
316
pushd optional_plugins/glib
317
%py2_install
C
Cleber Rosa 已提交
318 319 320
%if %{with_python3}
%py3_install
%endif
C
Cleber Rosa 已提交
321
popd
C
Cleber Rosa 已提交
322 323
%{__mkdir} -p %{buildroot}%{_mandir}/man1
%{__install} -m 0644 man/avocado.1 %{buildroot}%{_mandir}/man1/avocado.1
324
%{__install} -m 0644 man/avocado-rest-client.1 %{buildroot}%{_mandir}/man1/avocado-rest-client.1
325
%{__install} -d -m 0755 %{buildroot}%{_sharedstatedir}/avocado/data
326 327 328 329 330 331 332 333
%{__install} -d -m 0755 %{buildroot}%{_datadir}/avocado
%{__cp} -r examples/gdb-prerun-scripts %{buildroot}%{_datadir}/avocado
%{__cp} -r examples/plugins %{buildroot}%{_datadir}/avocado
%{__cp} -r examples/tests %{buildroot}%{_datadir}/avocado
%{__cp} -r examples/wrappers %{buildroot}%{_datadir}/avocado
%{__cp} -r examples/yaml_to_mux %{buildroot}%{_datadir}/avocado
%{__cp} -r examples/yaml_to_mux_loader %{buildroot}%{_datadir}/avocado
%{__cp} -r examples/varianter_pict %{buildroot}%{_datadir}/avocado
334
%{__mkdir} -p %{buildroot}%{_libexecdir}/avocado
335
%{__mv} %{buildroot}%{python2_sitelib}/avocado/libexec/* %{buildroot}%{_libexecdir}/avocado
336

337
%check
338
%if %{with_tests}
339
%{__python2} setup.py develop --user
340
pushd optional_plugins/html
341
%{__python2} setup.py develop --user
342 343
popd
pushd optional_plugins/runner_remote
344
%{__python2} setup.py develop --user
345 346
popd
pushd optional_plugins/runner_vm
347
%{__python2} setup.py develop --user
348 349
popd
pushd optional_plugins/runner_docker
350
%{__python2} setup.py develop --user
351
popd
C
Cleber Rosa 已提交
352
# no resultsdb plugin on Python 3 due to missing resultsdb_api package
353
pushd optional_plugins/resultsdb
354
%{__python2} setup.py develop --user
355
popd
356
pushd optional_plugins/varianter_yaml_to_mux
357
%{__python2} setup.py develop --user
358
popd
359
pushd optional_plugins/loader_yaml
360
%{__python2} setup.py develop --user
361
popd
C
Cleber Rosa 已提交
362
pushd optional_plugins/golang
363
%{__python2} setup.py develop --user
C
Cleber Rosa 已提交
364
popd
365
pushd optional_plugins/varianter_pict
366
%{__python2} setup.py develop --user
367
popd
368
pushd optional_plugins/result_upload
369
%{__python2} setup.py develop --user
370
popd
C
Cleber Rosa 已提交
371
pushd optional_plugins/glib
372
%{__python2} setup.py develop --user
C
Cleber Rosa 已提交
373
popd
374 375 376 377 378
# LANG: to make the results predictable, we pin the language
# that is used during test execution.
# AVOCADO_CHECK_LEVEL: package build environments have the least
# amount of resources we have observed so far.  Let's avoid tests that
# require too much resources or are time sensitive
379 380 381 382 383
# UNITTEST_AVOCADO_CMD: the "avocado" command to be run during
# unittests needs to be a Python specific one on Fedora >= 28.  Let's
# use the one that was setup in the source tree by the "setup.py
# develop --user" step and is guaranteed to be version specific.
LANG=en_US.UTF-8 AVOCADO_CHECK_LEVEL=0 UNITTEST_AVOCADO_CMD=$HOME/.local/bin/avocado %{__python2} selftests/run
C
Cleber Rosa 已提交
384 385 386 387 388 389 390 391 392 393 394 395 396 397 398 399 400 401 402 403 404 405 406
%if %{with_python3}
%{__python3} setup.py develop --user
pushd optional_plugins/html
%{__python3} setup.py develop --user
popd
pushd optional_plugins/varianter_yaml_to_mux
%{__python3} setup.py develop --user
popd
pushd optional_plugins/loader_yaml
%{__python3} setup.py develop --user
popd
pushd optional_plugins/golang
%{__python3} setup.py develop --user
popd
pushd optional_plugins/varianter_pict
%{__python3} setup.py develop --user
popd
pushd optional_plugins/result_upload
%{__python3} setup.py develop --user
popd
pushd optional_plugins/glib
%{__python3} setup.py develop --user
popd
407
LANG=en_US.UTF-8 AVOCADO_CHECK_LEVEL=0 UNITTEST_AVOCADO_CMD=$HOME/.local/bin/avocado %{__python3} selftests/run
C
Cleber Rosa 已提交
408
%endif
409
%endif
410

411
%files -n python2-%{srcname}
412 413
%defattr(-,root,root,-)
%doc README.rst LICENSE
414
%{python2_sitelib}/avocado*
415
%{_bindir}/avocado
416 417
%{_bindir}/avocado-2
%{_bindir}/avocado-%{python2_version}
418
%{_bindir}/avocado-rest-client
M
Merlin Mathesius 已提交
419 420
%{_bindir}/avocado-rest-client-2
%{_bindir}/avocado-rest-client-%{python2_version}
421 422 423 424 425 426 427 428 429 430 431 432 433 434 435 436 437 438 439 440 441 442 443
%exclude %{python2_sitelib}/avocado_result_html*
%exclude %{python2_sitelib}/avocado_runner_remote*
%exclude %{python2_sitelib}/avocado_runner_vm*
%exclude %{python2_sitelib}/avocado_runner_docker*
%exclude %{python2_sitelib}/avocado_resultsdb*
%exclude %{python2_sitelib}/avocado_loader_yaml*
%exclude %{python2_sitelib}/avocado_golang*
%exclude %{python2_sitelib}/avocado_varianter_yaml_to_mux*
%exclude %{python2_sitelib}/avocado_varianter_pict*
%exclude %{python2_sitelib}/avocado_result_upload*
%exclude %{python2_sitelib}/avocado_glib*
%exclude %{python2_sitelib}/avocado_framework_plugin_result_html*
%exclude %{python2_sitelib}/avocado_framework_plugin_runner_remote*
%exclude %{python2_sitelib}/avocado_framework_plugin_runner_vm*
%exclude %{python2_sitelib}/avocado_framework_plugin_runner_docker*
%exclude %{python2_sitelib}/avocado_framework_plugin_resultsdb*
%exclude %{python2_sitelib}/avocado_framework_plugin_varianter_yaml_to_mux*
%exclude %{python2_sitelib}/avocado_framework_plugin_varianter_pict*
%exclude %{python2_sitelib}/avocado_framework_plugin_loader_yaml*
%exclude %{python2_sitelib}/avocado_framework_plugin_golang*
%exclude %{python2_sitelib}/avocado_framework_plugin_result_upload*
%exclude %{python2_sitelib}/avocado_framework_plugin_glib*
%exclude %{python2_sitelib}/avocado/libexec*
444
%exclude %{python2_sitelib}/tests*
445

C
Cleber Rosa 已提交
446
%if %{with_python3}
C
Cleber Rosa 已提交
447 448 449 450 451
%files -n python3-%{srcname}
%defattr(-,root,root,-)
%doc README.rst LICENSE
%{_bindir}/avocado-3
%{_bindir}/avocado-%{python3_version}
M
Merlin Mathesius 已提交
452 453
%{_bindir}/avocado-rest-client-3
%{_bindir}/avocado-rest-client-%{python3_version}
C
Cleber Rosa 已提交
454 455 456 457 458 459 460 461 462 463 464 465 466 467 468
%{python3_sitelib}/avocado*
%exclude %{python3_sitelib}/avocado_result_html*
%exclude %{python3_sitelib}/avocado_loader_yaml*
%exclude %{python3_sitelib}/avocado_golang*
%exclude %{python3_sitelib}/avocado_varianter_yaml_to_mux*
%exclude %{python3_sitelib}/avocado_varianter_pict*
%exclude %{python3_sitelib}/avocado_result_upload*
%exclude %{python3_sitelib}/avocado_glib*
%exclude %{python3_sitelib}/avocado_framework_plugin_result_html*
%exclude %{python3_sitelib}/avocado_framework_plugin_varianter_yaml_to_mux*
%exclude %{python3_sitelib}/avocado_framework_plugin_varianter_pict*
%exclude %{python3_sitelib}/avocado_framework_plugin_loader_yaml*
%exclude %{python3_sitelib}/avocado_framework_plugin_golang*
%exclude %{python3_sitelib}/avocado_framework_plugin_result_upload*
%exclude %{python3_sitelib}/avocado_framework_plugin_glib*
469
%exclude %{python3_sitelib}/tests*
C
Cleber Rosa 已提交
470
%endif
C
Cleber Rosa 已提交
471

C
Cleber Rosa 已提交
472 473 474 475 476 477 478
%package common
Summary: Avocado common files

%description common
Common files (such as configuration) for the Avocado Testing Framework.

%files common
M
Merlin Mathesius 已提交
479 480
%{_mandir}/man1/avocado.1.gz
%{_mandir}/man1/avocado-rest-client.1.gz
C
Cleber Rosa 已提交
481 482 483
%dir %{_sysconfdir}/avocado
%dir %{_sysconfdir}/avocado/conf.d
%dir %{_sysconfdir}/avocado/sysinfo
M
Merlin Mathesius 已提交
484 485
%dir %{_sysconfdir}/avocado/scripts
%dir %{_sysconfdir}/avocado/scripts/job
C
Cleber Rosa 已提交
486 487 488 489 490 491 492 493 494 495 496 497 498
%dir %{_sysconfdir}/avocado/scripts/job/pre.d
%dir %{_sysconfdir}/avocado/scripts/job/post.d
%dir %{_sharedstatedir}/avocado
%config(noreplace)%{_sysconfdir}/avocado/avocado.conf
%config(noreplace)%{_sysconfdir}/avocado/conf.d/README
%config(noreplace)%{_sysconfdir}/avocado/conf.d/gdb.conf
%config(noreplace)%{_sysconfdir}/avocado/conf.d/jobscripts.conf
%config(noreplace)%{_sysconfdir}/avocado/sysinfo/commands
%config(noreplace)%{_sysconfdir}/avocado/sysinfo/files
%config(noreplace)%{_sysconfdir}/avocado/sysinfo/profilers
%config(noreplace)%{_sysconfdir}/avocado/scripts/job/pre.d/README
%config(noreplace)%{_sysconfdir}/avocado/scripts/job/post.d/README

499
%package -n python2-%{srcname}-plugins-output-html
500
Summary: Avocado HTML report plugin
501
Requires: python2-%{srcname} == %{version}, pystache
502

503
%description -n python2-%{srcname}-plugins-output-html
504 505 506 507
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.

508 509 510
%files -n python2-%{srcname}-plugins-output-html
%{python2_sitelib}/avocado_result_html*
%{python2_sitelib}/avocado_framework_plugin_result_html*
511

C
Cleber Rosa 已提交
512
%if %{with_python3}
C
Cleber Rosa 已提交
513 514 515 516 517 518 519 520 521 522 523 524
%package -n python3-%{srcname}-plugins-output-html
Summary: Avocado HTML report plugin
Requires: python3-%{srcname} == %{version}, python3-pystache

%description -n python3-%{srcname}-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 -n python3-%{srcname}-plugins-output-html
%{python3_sitelib}/avocado_result_html*
%{python3_sitelib}/avocado_framework_plugin_result_html*
C
Cleber Rosa 已提交
525
%endif
C
Cleber Rosa 已提交
526

527
%package -n python2-%{srcname}-plugins-runner-remote
528
Summary: Avocado Runner for Remote Execution
529
Requires: python2-%{srcname} == %{version}
530
Requires: fabric
531

532
%description -n python2-%{srcname}-plugins-runner-remote
533 534 535
Allows Avocado to run jobs on a remote machine, by means of an SSH
connection.  Avocado must be previously installed on the remote machine.

536 537 538
%files -n python2-%{srcname}-plugins-runner-remote
%{python2_sitelib}/avocado_runner_remote*
%{python2_sitelib}/avocado_framework_plugin_runner_remote*
539

540
%package -n python2-%{srcname}-plugins-runner-vm
541
Summary: Avocado Runner for libvirt VM Execution
542 543
Requires: python2-%{srcname} == %{version}
Requires: python2-%{srcname}-plugins-runner-remote == %{version}
544 545
Requires: libvirt-python

546
%description -n python2-%{srcname}-plugins-runner-vm
547 548 549 550
Allows Avocado to run jobs on a libvirt based VM, by means of
interaction with a libvirt daemon and an SSH connection to the VM
itself.  Avocado must be previously installed on the VM.

551 552 553
%files -n python2-%{srcname}-plugins-runner-vm
%{python2_sitelib}/avocado_runner_vm*
%{python2_sitelib}/avocado_framework_plugin_runner_vm*
554

555
%package -n python2-%{srcname}-plugins-runner-docker
556
Summary: Avocado Runner for Execution on Docker Containers
557 558 559
Requires: python2-%{srcname} == %{version}
Requires: python2-%{srcname}-plugins-runner-remote == %{version}
Requires: python2-aexpect
560

561
%description -n python2-%{srcname}-plugins-runner-docker
562 563 564 565
Allows Avocado to run jobs on a Docker container by interacting with a
Docker daemon and attaching to the container itself.  Avocado must
be previously installed on the container.

566 567 568
%files -n python2-%{srcname}-plugins-runner-docker
%{python2_sitelib}/avocado_runner_docker*
%{python2_sitelib}/avocado_framework_plugin_runner_docker*
569

570
%package -n python2-%{srcname}-plugins-resultsdb
571
Summary: Avocado plugin to propagate job results to ResultsDB
572 573
Requires: python2-%{srcname} == %{version}
Requires: python2-resultsdb_api
574

575
%description -n python2-%{srcname}-plugins-resultsdb
576 577 578
Allows Avocado to send job results directly to a ResultsDB
server.

579 580 581
%files -n python2-%{srcname}-plugins-resultsdb
%{python2_sitelib}/avocado_resultsdb*
%{python2_sitelib}/avocado_framework_plugin_resultsdb*
582
%config(noreplace)%{_sysconfdir}/avocado/conf.d/resultsdb.conf
583

584
%package -n python2-%{srcname}-plugins-varianter-yaml-to-mux
585
Summary: Avocado plugin to generate variants out of yaml files
586
Requires: python2-%{srcname} == %{version}
587
%if 0%{?rhel}
588
Requires: PyYAML
589 590 591
%else
Requires: python2-yaml
%endif
592

593
%description -n python2-%{srcname}-plugins-varianter-yaml-to-mux
594 595 596
Can be used to produce multiple test variants with test parameters
defined in a yaml file(s).

597 598 599
%files -n python2-%{srcname}-plugins-varianter-yaml-to-mux
%{python2_sitelib}/avocado_varianter_yaml_to_mux*
%{python2_sitelib}/avocado_framework_plugin_varianter_yaml_to_mux*
600

C
Cleber Rosa 已提交
601
%if %{with_python3}
C
Cleber Rosa 已提交
602 603 604
%package -n python3-%{srcname}-plugins-varianter-yaml-to-mux
Summary: Avocado plugin to generate variants out of yaml files
Requires: python3-%{srcname} == %{version}
C
Cleber Rosa 已提交
605
Requires: python3-yaml
C
Cleber Rosa 已提交
606 607 608 609 610 611 612 613

%description -n python3-%{srcname}-plugins-varianter-yaml-to-mux
Can be used to produce multiple test variants with test parameters
defined in a yaml file(s).

%files -n python3-%{srcname}-plugins-varianter-yaml-to-mux
%{python3_sitelib}/avocado_varianter_yaml_to_mux*
%{python3_sitelib}/avocado_framework_plugin_varianter_yaml_to_mux*
C
Cleber Rosa 已提交
614
%endif
C
Cleber Rosa 已提交
615

616
%package -n python2-%{srcname}-plugins-loader-yaml
617
Summary: Avocado Plugin that loads tests from YAML files
618
Requires: python2-%{srcname}-plugins-varianter-yaml-to-mux == %{version}
619

620
%description -n python2-%{srcname}-plugins-loader-yaml
621 622 623
Can be used to produce a test suite from definitions in a YAML file,
similar to the one used in the yaml_to_mux varianter plugin.

624 625 626
%files -n python2-%{srcname}-plugins-loader-yaml
%{python2_sitelib}/avocado_loader_yaml*
%{python2_sitelib}/avocado_framework_plugin_loader_yaml*
627

C
Cleber Rosa 已提交
628
%if %{with_python3}
C
Cleber Rosa 已提交
629 630 631 632 633 634 635 636 637 638 639
%package -n python3-%{srcname}-plugins-loader-yaml
Summary: Avocado Plugin that loads tests from YAML files
Requires: python3-%{srcname}-plugins-varianter-yaml-to-mux == %{version}

%description -n python3-%{srcname}-plugins-loader-yaml
Can be used to produce a test suite from definitions in a YAML file,
similar to the one used in the yaml_to_mux varianter plugin.

%files -n python3-%{srcname}-plugins-loader-yaml
%{python3_sitelib}/avocado_loader_yaml*
%{python3_sitelib}/avocado_framework_plugin_loader_yaml*
C
Cleber Rosa 已提交
640
%endif
C
Cleber Rosa 已提交
641

642
%package -n python2-%{srcname}-plugins-golang
C
Cleber Rosa 已提交
643
Summary: Avocado Plugin for Execution of golang tests
644
Requires: python2-%{srcname} == %{version}
C
Cleber Rosa 已提交
645 646
Requires: golang

647
%description -n python2-%{srcname}-plugins-golang
C
Cleber Rosa 已提交
648 649 650
Allows Avocado to list golang tests, and if golang is installed,
also run them.

651 652 653
%files -n python2-%{srcname}-plugins-golang
%{python2_sitelib}/avocado_golang*
%{python2_sitelib}/avocado_framework_plugin_golang*
C
Cleber Rosa 已提交
654

C
Cleber Rosa 已提交
655
%if %{with_python3}
C
Cleber Rosa 已提交
656 657 658 659 660 661 662 663 664 665 666 667
%package -n python3-%{srcname}-plugins-golang
Summary: Avocado Plugin for Execution of golang tests
Requires: python3-%{srcname} == %{version}
Requires: golang

%description -n python3-%{srcname}-plugins-golang
Allows Avocado to list golang tests, and if golang is installed,
also run them.

%files -n python3-%{srcname}-plugins-golang
%{python3_sitelib}/avocado_golang*
%{python3_sitelib}/avocado_framework_plugin_golang*
C
Cleber Rosa 已提交
668
%endif
C
Cleber Rosa 已提交
669

670
%package -n python2-%{srcname}-plugins-varianter-pict
671
Summary: Varianter with combinatorial capabilities by PICT
672
Requires: python2-%{srcname} == %{version}
673

674
%description -n python2-%{srcname}-plugins-varianter-pict
675 676 677
This plugin uses a third-party tool to provide variants created by
Pair-Wise algorithms, also known as Combinatorial Independent Testing.

678 679 680
%files -n python2-%{srcname}-plugins-varianter-pict
%{python2_sitelib}/avocado_varianter_pict*
%{python2_sitelib}/avocado_framework_plugin_varianter_pict*
681

C
Cleber Rosa 已提交
682
%if %{with_python3}
C
Cleber Rosa 已提交
683 684 685 686 687 688 689 690 691 692 693
%package -n python3-%{srcname}-plugins-varianter-pict
Summary: Varianter with combinatorial capabilities by PICT
Requires: python3-%{srcname} == %{version}

%description -n python3-%{srcname}-plugins-varianter-pict
This plugin uses a third-party tool to provide variants created by
Pair-Wise algorithms, also known as Combinatorial Independent Testing.

%files -n python3-%{srcname}-plugins-varianter-pict
%{python3_sitelib}/avocado_varianter_pict*
%{python3_sitelib}/avocado_framework_plugin_varianter_pict*
C
Cleber Rosa 已提交
694
%endif
C
Cleber Rosa 已提交
695

696
%package -n python2-%{srcname}-plugins-result-upload
697
Summary: Avocado Plugin to propagate Job results to a remote host
698
Requires: python2-%{srcname} == %{version}
699

700
%description -n python2-%{srcname}-plugins-result-upload
701 702 703
This optional plugin is intended to upload the Avocado Job results to
a dedicated sever.

704 705 706
%files -n python2-%{srcname}-plugins-result-upload
%{python2_sitelib}/avocado_result_upload*
%{python2_sitelib}/avocado_framework_plugin_result_upload*
707
%config(noreplace)%{_sysconfdir}/avocado/conf.d/result_upload.conf
708

C
Cleber Rosa 已提交
709
%if %{with_python3}
C
Cleber Rosa 已提交
710 711 712 713 714 715 716 717 718 719 720 721
%package -n python3-%{srcname}-plugins-result-upload
Summary: Avocado Plugin to propagate Job results to a remote host
Requires: python3-%{srcname} == %{version}

%description -n python3-%{srcname}-plugins-result-upload
This optional plugin is intended to upload the Avocado Job results to
a dedicated sever.

%files -n python3-%{srcname}-plugins-result-upload
%{python3_sitelib}/avocado_result_upload*
%{python3_sitelib}/avocado_framework_plugin_result_upload*
%config(noreplace)%{_sysconfdir}/avocado/conf.d/result_upload.conf
C
Cleber Rosa 已提交
722
%endif
C
Cleber Rosa 已提交
723

724
%package -n python2-%{srcname}-plugins-glib
C
Cleber Rosa 已提交
725
Summary: Avocado Plugin for Execution of GLib Test Framework tests
726
Requires: python2-%{srcname} == %{version}
C
Cleber Rosa 已提交
727

728
%description -n python2-%{srcname}-plugins-glib
C
Cleber Rosa 已提交
729 730 731
This optional plugin is intended to list and run tests written in the
GLib Test Framework.

732 733 734
%files -n python2-%{srcname}-plugins-glib
%{python2_sitelib}/avocado_glib*
%{python2_sitelib}/avocado_framework_plugin_glib*
C
Cleber Rosa 已提交
735

C
Cleber Rosa 已提交
736
%if %{with_python3}
C
Cleber Rosa 已提交
737 738
%package -n python3-%{srcname}-plugins-glib
Summary: Avocado Plugin for Execution of GLib Test Framework tests
739
Requires: python3-%{srcname} == %{version}
C
Cleber Rosa 已提交
740 741 742 743 744 745 746 747

%description -n python3-%{srcname}-plugins-glib
This optional plugin is intended to list and run tests written in the
GLib Test Framework.

%files -n python3-%{srcname}-plugins-glib
%{python3_sitelib}/avocado_glib*
%{python3_sitelib}/avocado_framework_plugin_glib*
C
Cleber Rosa 已提交
748
%endif
C
Cleber Rosa 已提交
749

750
%package examples
751
Summary: Avocado Test Framework Example Tests
752
Requires: %{name} == %{version}
753

754 755 756 757
%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.
758

759
%files examples
M
Merlin Mathesius 已提交
760
%dir %{_datadir}/avocado
C
Cleber Rosa 已提交
761 762
%{_datadir}/avocado/gdb-prerun-scripts
%{_datadir}/avocado/plugins
763
%{_datadir}/avocado/tests
764
%{_datadir}/avocado/wrappers
C
Cleber Rosa 已提交
765 766
%{_datadir}/avocado/yaml_to_mux
%{_datadir}/avocado/yaml_to_mux_loader
767
%{_datadir}/avocado/varianter_pict
768

769 770 771 772 773 774 775 776 777
%package bash
Summary: Avocado Test Framework Bash Utilities
Requires: %{name} == %{version}

%description bash
A small set of utilities to interact with Avocado from the Bourne
Again Shell code (and possibly other similar shells).

%files bash
778
%{_libexecdir}/avocado*
779

780
%changelog
781 782 783
* Tue May  1 2018 Cleber Rosa <cleber@redhat.com> - 61.0-1
- Use Python version specific "avocado" scripts on tests

C
Cleber Rosa 已提交
784 785 786 787 788
* Tue Apr 24 2018 Cleber Rosa <cleber@redhat.com> - 61.0-0
- New release
- Added python3-yaml require to varianter-yaml-to-mux package
- Force a locale with utf-8 encoding to run tests

789 790
* Wed Apr  4 2018 Cleber Rosa <cleber@redhat.com> - 60.0-2
- Moved all requirements to python2-avocado and python3-avocado
791
- Added python_provides macro on Python 3 package
792
- Filter out python binaries from requirements
793
- Added explicit six requirement on Python 2 packages
794

795 796 797
* Wed Mar 28 2018 Cleber Rosa <cleber@redhat.com> - 60.0-1
- Moved "common" dep into python2-avocado and python3-avocado

C
Cleber Rosa 已提交
798 799 800
* Wed Mar 28 2018 Cleber Rosa <cleber@redhat.com> - 60.0-0
- New release

801 802
* Mon Mar 19 2018 Cleber Rosa <cleber@redhat.com> - 59.0-2
- Removed backward compatibility with name avocado on plugins
803
- Removed extra dependencies on Fedora 24 for runner-remote
804
- Added python-avocado requirement for golang plugin
C
Cleber Rosa 已提交
805
- Added new common sub-package
806
- Make bash package independent of Python version
807
- Set supported Python major version explicitly to 2
C
Cleber Rosa 已提交
808
- Added Python 3 packages
809

810 811
* Thu Mar  8 2018 Cleber Rosa <cleber@redhat.com> - 59.0-1
- Remove backward compatibility with name avocado
812
- Remove hack to workaround fabric bugs on Fedora 24
813
- Use real package name for python YAML package on EL
814
- Use exact package names on requires
C
Cleber Rosa 已提交
815
- Remove unecessary conditional for kmod
816

C
Cleber Rosa 已提交
817 818 819 820
* Wed Feb 28 2018 Cleber Rosa <cleber@redhat.com> - 59.0-0
- New upstream release
- Added glib plugin subpackage

821 822 823
* Tue Jan 23 2018 Cleber Rosa <cleber@redhat.com> - 58.0-1
- Require a lower six version on EL7

C
Cleber Rosa 已提交
824 825 826
* Tue Jan 23 2018 Cleber Rosa <cleber@redhat.com> - 58.0-0
- New upstream release

827 828
* Sat Jan  6 2018 Cleber Rosa <cleber@redhat.com> - 57.0-3
- Move the avocado package config files to the system location
829
- Add missing configuration files for sub packages
830
- Adapt to change in example file installation
831
- Remove man pages source files from package
832
- Add bash subpackage
833

834 835 836
* Tue Dec 19 2017 Cleber Rosa <cleber@redhat.com> - 57.0-2
- Removed patch added on release 1, considering it's upstream

837 838 839
* Tue Dec 19 2017 Cleber Rosa <cleber@redhat.com> - 57.0-1
- Add patch to skip tests on EPEL 7 due to mock version

C
Cleber Rosa 已提交
840 841 842
* Tue Dec 19 2017 Cleber Rosa <cleber@redhat.com> - 57.0-0
- New upstream release

843 844 845
* Fri Dec 15 2017 Cleber Rosa <cleber@redhat.com> - 56.0-1
- Added result_upload plugin

C
Cleber Rosa 已提交
846 847 848
* Tue Nov 21 2017 Cleber Rosa <cleber@redhat.com> - 56.0-0
- New upstream release

849 850 851
* Thu Nov 16 2017 Cleber Rosa <cleber@redhat.com> - 55.0-1
- Introduced sub-package plugins-varianter-pict

C
Cleber Rosa 已提交
852 853 854
* Tue Oct 17 2017 Cleber Rosa <cleber@redhat.com> - 55.0-0
- New upstream release

855 856
* Mon Oct 16 2017 Cleber Rosa <cleber@redhat.com> - 54.1-3
- Excluded avocado_loader_yaml files from main package
C
Cleber Rosa 已提交
857
- Package recently introduced golang plugin
858 859 860 861

* Wed Oct  4 2017 Cleber Rosa <cleber@redhat.com> - 54.1-2
- Remove python-flexmock requirement

C
Cleber Rosa 已提交
862 863 864
* Wed Oct  4 2017 Cleber Rosa <cleber@redhat.com> - 54.1-1
- Add explicit BuildRequires for python-six

C
Cleber Rosa 已提交
865 866 867
* Wed Sep 20 2017 Cleber Rosa <cleber@redhat.com> - 54.1-0
- New minor upstream release

C
Cleber Rosa 已提交
868 869 870
* Wed Sep 20 2017 Cleber Rosa <cleber@redhat.com> - 54.0-0
- New upstream release

871 872
* Tue Aug 22 2017 Cleber Rosa <cleber@redhat.com> - 53.0-1
- Use variable name for configuration dir
873
- Clean up old changelog entries
C
Cleber Rosa 已提交
874
- Include other example files
875

C
Cleber Rosa 已提交
876 877 878
* Tue Aug 15 2017 Cleber Rosa <cleber@redhat.com> - 53.0-0
- New upstream release

879 880 881
* Mon Aug 14 2017 Cleber Rosa <cleber@redhat.com> - 52.0-2
- Add python[2]-yaml requirements

882 883 884
* Tue Jun 27 2017 Cleber Rosa <cleber@redhat.com> - 52.0-1
- Fix python-aexpect depedency on EL7

C
Cleber Rosa 已提交
885 886
* Mon Jun 26 2017 Cleber Rosa <cleber@redhat.com> - 52.0-0
- New upstream release