python-avocado.spec 27.5 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}
13
        %global commit      ef2b6f3b14716ef76912bd71feb582f0226fa217
14 15
    %endif
    %if ! 0%{?commit_date:1}
16
        %global commit_date 20180227
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: 60.0
43
Release: 2%{?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
C
Cleber Rosa 已提交
248 249 250 251 252 253 254 255 256 257
%if %{with_python3}
%py3_install
mv %{buildroot}%{_bindir}/avocado %{buildroot}%{_bindir}/avocado-%{python3_version}
ln -s avocado-%{python3_version} %{buildroot}%{_bindir}/avocado-3
# 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
258
ln -s avocado-%{python2_version} %{buildroot}%{_bindir}/avocado
259
pushd optional_plugins/html
260
%py2_install
C
Cleber Rosa 已提交
261 262 263
%if %{with_python3}
%py3_install
%endif
264
popd
C
Cleber Rosa 已提交
265
# no runner_remote plugin on Python 3 due to missing Fabric package
266
pushd optional_plugins/runner_remote
267
%py2_install
268
popd
C
Cleber Rosa 已提交
269
# no runner_vm plugin on Python 3 due to missing Fabric package
270
pushd optional_plugins/runner_vm
271
%py2_install
272
popd
C
Cleber Rosa 已提交
273
# no runner_docker plugin on Python 3 due to missing Fabric package
274
pushd optional_plugins/runner_docker
275
%py2_install
276
popd
C
Cleber Rosa 已提交
277
# no resultsdb plugin on Python 3 due to missing resultsdb_api package
278
pushd optional_plugins/resultsdb
279
%py2_install
280
popd
281
pushd optional_plugins/varianter_yaml_to_mux
282
%py2_install
C
Cleber Rosa 已提交
283 284 285
%if %{with_python3}
%py3_install
%endif
286
popd
287
pushd optional_plugins/loader_yaml
288
%py2_install
C
Cleber Rosa 已提交
289 290 291
%if %{with_python3}
%py3_install
%endif
292
popd
C
Cleber Rosa 已提交
293
pushd optional_plugins/golang
294
%py2_install
C
Cleber Rosa 已提交
295 296 297
%if %{with_python3}
%py3_install
%endif
C
Cleber Rosa 已提交
298
popd
299
pushd optional_plugins/varianter_pict
300
%py2_install
C
Cleber Rosa 已提交
301 302 303
%if %{with_python3}
%py3_install
%endif
304
popd
305
pushd optional_plugins/result_upload
306
%py2_install
C
Cleber Rosa 已提交
307 308 309
%if %{with_python3}
%py3_install
%endif
310
popd
C
Cleber Rosa 已提交
311
pushd optional_plugins/glib
312
%py2_install
C
Cleber Rosa 已提交
313 314 315
%if %{with_python3}
%py3_install
%endif
C
Cleber Rosa 已提交
316
popd
C
Cleber Rosa 已提交
317 318
%{__mkdir} -p %{buildroot}%{_mandir}/man1
%{__install} -m 0644 man/avocado.1 %{buildroot}%{_mandir}/man1/avocado.1
319
%{__install} -m 0644 man/avocado-rest-client.1 %{buildroot}%{_mandir}/man1/avocado-rest-client.1
320
%{__install} -d -m 0755 %{buildroot}%{_sharedstatedir}/avocado/data
321 322 323 324 325 326 327 328
%{__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
329
%{__mkdir} -p %{buildroot}%{_libexecdir}/avocado
330
%{__mv} %{buildroot}%{python2_sitelib}/avocado/libexec/* %{buildroot}%{_libexecdir}/avocado
331

332
%check
333
%if %{with_tests}
334
%{__python2} setup.py develop --user
335
pushd optional_plugins/html
336
%{__python2} setup.py develop --user
337 338
popd
pushd optional_plugins/runner_remote
339
%{__python2} setup.py develop --user
340 341
popd
pushd optional_plugins/runner_vm
342
%{__python2} setup.py develop --user
343 344
popd
pushd optional_plugins/runner_docker
345
%{__python2} setup.py develop --user
346
popd
C
Cleber Rosa 已提交
347
# no resultsdb plugin on Python 3 due to missing resultsdb_api package
348
pushd optional_plugins/resultsdb
349
%{__python2} setup.py develop --user
350
popd
351
pushd optional_plugins/varianter_yaml_to_mux
352
%{__python2} setup.py develop --user
353
popd
354
pushd optional_plugins/loader_yaml
355
%{__python2} setup.py develop --user
356
popd
C
Cleber Rosa 已提交
357
pushd optional_plugins/golang
358
%{__python2} setup.py develop --user
C
Cleber Rosa 已提交
359
popd
360
pushd optional_plugins/varianter_pict
361
%{__python2} setup.py develop --user
362
popd
363
pushd optional_plugins/result_upload
364
%{__python2} setup.py develop --user
365
popd
C
Cleber Rosa 已提交
366
pushd optional_plugins/glib
367
%{__python2} setup.py develop --user
C
Cleber Rosa 已提交
368
popd
369 370 371
# 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
372
AVOCADO_CHECK_LEVEL=0 %{__python2} selftests/run
C
Cleber Rosa 已提交
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
%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
# 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
AVOCADO_CHECK_LEVEL=0 %{__python3} selftests/run
%endif
401
%endif
402

403
%files -n python2-%{srcname}
404 405
%defattr(-,root,root,-)
%doc README.rst LICENSE
406
%{python2_sitelib}/avocado*
407
%{_bindir}/avocado
408 409
%{_bindir}/avocado-2
%{_bindir}/avocado-%{python2_version}
410
%{_bindir}/avocado-rest-client
C
Cleber Rosa 已提交
411
%{_mandir}/man1/avocado.1.gz
412
%{_mandir}/man1/avocado-rest-client.1.gz
413 414 415 416 417 418 419 420 421 422 423 424 425 426 427 428 429 430 431 432 433 434 435
%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*
436
%exclude %{python2_sitelib}/tests*
437

C
Cleber Rosa 已提交
438
%if %{with_python3}
C
Cleber Rosa 已提交
439 440 441 442 443 444 445 446 447 448 449 450 451 452 453 454 455 456 457 458
%files -n python3-%{srcname}
%defattr(-,root,root,-)
%doc README.rst LICENSE
%{_bindir}/avocado-3
%{_bindir}/avocado-%{python3_version}
%{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*
459
%exclude %{python3_sitelib}/tests*
C
Cleber Rosa 已提交
460
%endif
C
Cleber Rosa 已提交
461

C
Cleber Rosa 已提交
462 463 464 465 466 467 468 469 470 471 472 473 474 475 476 477 478 479 480 481 482 483 484
%package common
Summary: Avocado common files

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

%files common
%dir %{_sysconfdir}/avocado
%dir %{_sysconfdir}/avocado/conf.d
%dir %{_sysconfdir}/avocado/sysinfo
%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

485
%package -n python2-%{srcname}-plugins-output-html
486
Summary: Avocado HTML report plugin
487
Requires: python2-%{srcname} == %{version}, pystache
488

489
%description -n python2-%{srcname}-plugins-output-html
490 491 492 493
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.

494 495 496
%files -n python2-%{srcname}-plugins-output-html
%{python2_sitelib}/avocado_result_html*
%{python2_sitelib}/avocado_framework_plugin_result_html*
497

C
Cleber Rosa 已提交
498
%if %{with_python3}
C
Cleber Rosa 已提交
499 500 501 502 503 504 505 506 507 508 509 510
%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 已提交
511
%endif
C
Cleber Rosa 已提交
512

513
%package -n python2-%{srcname}-plugins-runner-remote
514
Summary: Avocado Runner for Remote Execution
515
Requires: python2-%{srcname} == %{version}
516
Requires: fabric
517

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

522 523 524
%files -n python2-%{srcname}-plugins-runner-remote
%{python2_sitelib}/avocado_runner_remote*
%{python2_sitelib}/avocado_framework_plugin_runner_remote*
525

526
%package -n python2-%{srcname}-plugins-runner-vm
527
Summary: Avocado Runner for libvirt VM Execution
528 529
Requires: python2-%{srcname} == %{version}
Requires: python2-%{srcname}-plugins-runner-remote == %{version}
530 531
Requires: libvirt-python

532
%description -n python2-%{srcname}-plugins-runner-vm
533 534 535 536
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.

537 538 539
%files -n python2-%{srcname}-plugins-runner-vm
%{python2_sitelib}/avocado_runner_vm*
%{python2_sitelib}/avocado_framework_plugin_runner_vm*
540

541
%package -n python2-%{srcname}-plugins-runner-docker
542
Summary: Avocado Runner for Execution on Docker Containers
543 544 545
Requires: python2-%{srcname} == %{version}
Requires: python2-%{srcname}-plugins-runner-remote == %{version}
Requires: python2-aexpect
546

547
%description -n python2-%{srcname}-plugins-runner-docker
548 549 550 551
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.

552 553 554
%files -n python2-%{srcname}-plugins-runner-docker
%{python2_sitelib}/avocado_runner_docker*
%{python2_sitelib}/avocado_framework_plugin_runner_docker*
555

556
%package -n python2-%{srcname}-plugins-resultsdb
557
Summary: Avocado plugin to propagate job results to ResultsDB
558 559
Requires: python2-%{srcname} == %{version}
Requires: python2-resultsdb_api
560

561
%description -n python2-%{srcname}-plugins-resultsdb
562 563 564
Allows Avocado to send job results directly to a ResultsDB
server.

565 566 567
%files -n python2-%{srcname}-plugins-resultsdb
%{python2_sitelib}/avocado_resultsdb*
%{python2_sitelib}/avocado_framework_plugin_resultsdb*
568
%config(noreplace)%{_sysconfdir}/avocado/conf.d/resultsdb.conf
569

570
%package -n python2-%{srcname}-plugins-varianter-yaml-to-mux
571
Summary: Avocado plugin to generate variants out of yaml files
572
Requires: python2-%{srcname} == %{version}
573
%if 0%{?rhel}
574
Requires: PyYAML
575 576 577
%else
Requires: python2-yaml
%endif
578

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

583 584 585
%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*
586

C
Cleber Rosa 已提交
587
%if %{with_python3}
C
Cleber Rosa 已提交
588 589 590 591 592 593 594 595 596 597 598
%package -n python3-%{srcname}-plugins-varianter-yaml-to-mux
Summary: Avocado plugin to generate variants out of yaml files
Requires: python3-%{srcname} == %{version}

%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 已提交
599
%endif
C
Cleber Rosa 已提交
600

601
%package -n python2-%{srcname}-plugins-loader-yaml
602
Summary: Avocado Plugin that loads tests from YAML files
603
Requires: python2-%{srcname}-plugins-varianter-yaml-to-mux == %{version}
604

605
%description -n python2-%{srcname}-plugins-loader-yaml
606 607 608
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.

609 610 611
%files -n python2-%{srcname}-plugins-loader-yaml
%{python2_sitelib}/avocado_loader_yaml*
%{python2_sitelib}/avocado_framework_plugin_loader_yaml*
612

C
Cleber Rosa 已提交
613
%if %{with_python3}
C
Cleber Rosa 已提交
614 615 616 617 618 619 620 621 622 623 624
%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 已提交
625
%endif
C
Cleber Rosa 已提交
626

627
%package -n python2-%{srcname}-plugins-golang
C
Cleber Rosa 已提交
628
Summary: Avocado Plugin for Execution of golang tests
629
Requires: python2-%{srcname} == %{version}
C
Cleber Rosa 已提交
630 631
Requires: golang

632
%description -n python2-%{srcname}-plugins-golang
C
Cleber Rosa 已提交
633 634 635
Allows Avocado to list golang tests, and if golang is installed,
also run them.

636 637 638
%files -n python2-%{srcname}-plugins-golang
%{python2_sitelib}/avocado_golang*
%{python2_sitelib}/avocado_framework_plugin_golang*
C
Cleber Rosa 已提交
639

C
Cleber Rosa 已提交
640
%if %{with_python3}
C
Cleber Rosa 已提交
641 642 643 644 645 646 647 648 649 650 651 652
%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 已提交
653
%endif
C
Cleber Rosa 已提交
654

655
%package -n python2-%{srcname}-plugins-varianter-pict
656
Summary: Varianter with combinatorial capabilities by PICT
657
Requires: python2-%{srcname} == %{version}
658

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

663 664 665
%files -n python2-%{srcname}-plugins-varianter-pict
%{python2_sitelib}/avocado_varianter_pict*
%{python2_sitelib}/avocado_framework_plugin_varianter_pict*
666

C
Cleber Rosa 已提交
667
%if %{with_python3}
C
Cleber Rosa 已提交
668 669 670 671 672 673 674 675 676 677 678
%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 已提交
679
%endif
C
Cleber Rosa 已提交
680

681
%package -n python2-%{srcname}-plugins-result-upload
682
Summary: Avocado Plugin to propagate Job results to a remote host
683
Requires: python2-%{srcname} == %{version}
684

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

689 690 691
%files -n python2-%{srcname}-plugins-result-upload
%{python2_sitelib}/avocado_result_upload*
%{python2_sitelib}/avocado_framework_plugin_result_upload*
692
%config(noreplace)%{_sysconfdir}/avocado/conf.d/result_upload.conf
693

C
Cleber Rosa 已提交
694
%if %{with_python3}
C
Cleber Rosa 已提交
695 696 697 698 699 700 701 702 703 704 705 706
%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 已提交
707
%endif
C
Cleber Rosa 已提交
708

709
%package -n python2-%{srcname}-plugins-glib
C
Cleber Rosa 已提交
710
Summary: Avocado Plugin for Execution of GLib Test Framework tests
711
Requires: python2-%{srcname} == %{version}
C
Cleber Rosa 已提交
712

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

717 718 719
%files -n python2-%{srcname}-plugins-glib
%{python2_sitelib}/avocado_glib*
%{python2_sitelib}/avocado_framework_plugin_glib*
C
Cleber Rosa 已提交
720

C
Cleber Rosa 已提交
721
%if %{with_python3}
C
Cleber Rosa 已提交
722 723
%package -n python3-%{srcname}-plugins-glib
Summary: Avocado Plugin for Execution of GLib Test Framework tests
724
Requires: python3-%{srcname} == %{version}
C
Cleber Rosa 已提交
725 726 727 728 729 730 731 732

%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 已提交
733
%endif
C
Cleber Rosa 已提交
734

735
%package examples
736
Summary: Avocado Test Framework Example Tests
737
Requires: %{name} == %{version}
738

739 740 741 742
%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.
743

744
%files examples
C
Cleber Rosa 已提交
745 746
%{_datadir}/avocado/gdb-prerun-scripts
%{_datadir}/avocado/plugins
747
%{_datadir}/avocado/tests
748
%{_datadir}/avocado/wrappers
C
Cleber Rosa 已提交
749 750
%{_datadir}/avocado/yaml_to_mux
%{_datadir}/avocado/yaml_to_mux_loader
751
%{_datadir}/avocado/varianter_pict
752

753 754 755 756 757 758 759 760 761
%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
762
%{_libexecdir}/avocado*
763

764
%changelog
765 766
* Wed Apr  4 2018 Cleber Rosa <cleber@redhat.com> - 60.0-2
- Moved all requirements to python2-avocado and python3-avocado
767
- Added python_provides macro on Python 3 package
768
- Filter out python binaries from requirements
769
- Added explicit six requirement on Python 2 packages
770

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

C
Cleber Rosa 已提交
774 775 776
* Wed Mar 28 2018 Cleber Rosa <cleber@redhat.com> - 60.0-0
- New release

777 778
* Mon Mar 19 2018 Cleber Rosa <cleber@redhat.com> - 59.0-2
- Removed backward compatibility with name avocado on plugins
779
- Removed extra dependencies on Fedora 24 for runner-remote
780
- Added python-avocado requirement for golang plugin
C
Cleber Rosa 已提交
781
- Added new common sub-package
782
- Make bash package independent of Python version
783
- Set supported Python major version explicitly to 2
C
Cleber Rosa 已提交
784
- Added Python 3 packages
785

786 787
* Thu Mar  8 2018 Cleber Rosa <cleber@redhat.com> - 59.0-1
- Remove backward compatibility with name avocado
788
- Remove hack to workaround fabric bugs on Fedora 24
789
- Use real package name for python YAML package on EL
790
- Use exact package names on requires
C
Cleber Rosa 已提交
791
- Remove unecessary conditional for kmod
792

C
Cleber Rosa 已提交
793 794 795 796
* Wed Feb 28 2018 Cleber Rosa <cleber@redhat.com> - 59.0-0
- New upstream release
- Added glib plugin subpackage

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

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

803 804
* Sat Jan  6 2018 Cleber Rosa <cleber@redhat.com> - 57.0-3
- Move the avocado package config files to the system location
805
- Add missing configuration files for sub packages
806
- Adapt to change in example file installation
807
- Remove man pages source files from package
808
- Add bash subpackage
809

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

813 814 815
* 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 已提交
816 817 818
* Tue Dec 19 2017 Cleber Rosa <cleber@redhat.com> - 57.0-0
- New upstream release

819 820 821
* Fri Dec 15 2017 Cleber Rosa <cleber@redhat.com> - 56.0-1
- Added result_upload plugin

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

825 826 827
* Thu Nov 16 2017 Cleber Rosa <cleber@redhat.com> - 55.0-1
- Introduced sub-package plugins-varianter-pict

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

831 832
* Mon Oct 16 2017 Cleber Rosa <cleber@redhat.com> - 54.1-3
- Excluded avocado_loader_yaml files from main package
C
Cleber Rosa 已提交
833
- Package recently introduced golang plugin
834 835 836 837

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

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

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

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

847 848
* Tue Aug 22 2017 Cleber Rosa <cleber@redhat.com> - 53.0-1
- Use variable name for configuration dir
849
- Clean up old changelog entries
C
Cleber Rosa 已提交
850
- Include other example files
851

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

855 856 857
* Mon Aug 14 2017 Cleber Rosa <cleber@redhat.com> - 52.0-2
- Add python[2]-yaml requirements

858 859 860
* Tue Jun 27 2017 Cleber Rosa <cleber@redhat.com> - 52.0-1
- Fix python-aexpect depedency on EL7

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