python-avocado.spec 26.7 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		ef2b6f3b14716ef76912bd71feb582f0226fa217
14 15
    %endif
    %if ! 0%{?commit_date:1}
C
Cleber Rosa 已提交
16
        %global commit_date	20180227
17
    %endif
A
Amador Pahim 已提交
18
    %global shortcommit	%(c=%{commit};echo ${c:0:8})
19 20
    %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
Summary: Framework with tools and libraries for Automated Testing
36
Name: python-%{srcname}
C
Cleber Rosa 已提交
37
Version: 60.0
38
Release: 1%{?gitrel}%{?dist}
39 40
License: GPLv2
Group: Development/Tools
41
URL: http://avocado-framework.github.io/
42 43 44 45 46
%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
47
BuildArch: noarch
48 49
BuildRequires: fabric
BuildRequires: procps-ng
C
Cleber Rosa 已提交
50
BuildRequires: kmod
51
%if 0%{?rhel} == 7
52 53 54 55
BuildRequires: pystache
BuildRequires: python-lxml
BuildRequires: python-setuptools
BuildRequires: python-stevedore
56
BuildRequires: python2-aexpect
57
BuildRequires: python2-devel
58 59 60 61 62 63 64
BuildRequires: python2-docutils
BuildRequires: python2-mock
BuildRequires: python2-psutil
BuildRequires: python2-requests
BuildRequires: python2-resultsdb_api
BuildRequires: python2-six
BuildRequires: python2-sphinx
65
BuildRequires: yum
66 67 68 69 70 71 72 73 74 75 76 77 78 79 80
%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
81

C
Cleber Rosa 已提交
82 83 84 85 86 87 88 89 90 91 92 93 94 95
%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

96 97 98
%if %{with_tests}
BuildRequires: libvirt-python
BuildRequires: perl-Test-Harness
99
%if 0%{?rhel}
100
BuildRequires: PyYAML
101 102 103
%else
BuildRequires: python2-yaml
%endif
C
Cleber Rosa 已提交
104 105 106
%if %{with_python3}
BuildRequires: python3-yaml
%endif
107 108
%endif

109 110 111 112
Requires: gdb
Requires: gdb-gdbserver
Requires: procps-ng
Requires: pyliblzma
113
%if 0%{?rhel} == 7
114 115 116
Requires: python
Requires: python-setuptools
Requires: python-stevedore
117 118 119 120 121 122 123
Requires: python2-requests
%else
Requires: python2
Requires: python2-requests
Requires: python2-setuptools
Requires: python2-stevedore
%endif
124 125

%description
126 127
Avocado is a set of tools and libraries (what people call
these days a framework) to perform automated testing.
128

129 130
%package -n python2-%{srcname}
Summary: %{summary}
131
Requires: %{name}-common == %{version}
132 133 134 135 136 137
%{?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 已提交
138
%if %{with_python3}
C
Cleber Rosa 已提交
139 140 141 142 143 144 145
%package -n python3-%{srcname}
Summary: %{summary}
Requires: python3
Requires: python3-requests
Requires: python3-setuptools
Requires: python3-six
Requires: python3-stevedore
146
Requires: %{name}-common == %{version}
C
Cleber Rosa 已提交
147 148 149 150

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

153
%prep
154 155 156
%if 0%{?rel_build}
%setup -q -n %{srcname}-%{version}
%else
157
%setup -q -n %{srcname}-%{commit}
158
%endif
159 160 161 162
# 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
163 164

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

%install
233 234 235 236
%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 已提交
237 238 239 240 241 242 243 244 245 246
%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
247
ln -s avocado-%{python2_version} %{buildroot}%{_bindir}/avocado
248
pushd optional_plugins/html
249
%py2_install
C
Cleber Rosa 已提交
250 251 252
%if %{with_python3}
%py3_install
%endif
253
popd
C
Cleber Rosa 已提交
254
# no runner_remote plugin on Python 3 due to missing Fabric package
255
pushd optional_plugins/runner_remote
256
%py2_install
257
popd
C
Cleber Rosa 已提交
258
# no runner_vm plugin on Python 3 due to missing Fabric package
259
pushd optional_plugins/runner_vm
260
%py2_install
261
popd
C
Cleber Rosa 已提交
262
# no runner_docker plugin on Python 3 due to missing Fabric package
263
pushd optional_plugins/runner_docker
264
%py2_install
265
popd
C
Cleber Rosa 已提交
266
# no resultsdb plugin on Python 3 due to missing resultsdb_api package
267
pushd optional_plugins/resultsdb
268
%py2_install
269
popd
270
pushd optional_plugins/varianter_yaml_to_mux
271
%py2_install
C
Cleber Rosa 已提交
272 273 274
%if %{with_python3}
%py3_install
%endif
275
popd
276
pushd optional_plugins/loader_yaml
277
%py2_install
C
Cleber Rosa 已提交
278 279 280
%if %{with_python3}
%py3_install
%endif
281
popd
C
Cleber Rosa 已提交
282
pushd optional_plugins/golang
283
%py2_install
C
Cleber Rosa 已提交
284 285 286
%if %{with_python3}
%py3_install
%endif
C
Cleber Rosa 已提交
287
popd
288
pushd optional_plugins/varianter_pict
289
%py2_install
C
Cleber Rosa 已提交
290 291 292
%if %{with_python3}
%py3_install
%endif
293
popd
294
pushd optional_plugins/result_upload
295
%py2_install
C
Cleber Rosa 已提交
296 297 298
%if %{with_python3}
%py3_install
%endif
299
popd
C
Cleber Rosa 已提交
300
pushd optional_plugins/glib
301
%py2_install
C
Cleber Rosa 已提交
302 303 304
%if %{with_python3}
%py3_install
%endif
C
Cleber Rosa 已提交
305
popd
C
Cleber Rosa 已提交
306 307
%{__mkdir} -p %{buildroot}%{_mandir}/man1
%{__install} -m 0644 man/avocado.1 %{buildroot}%{_mandir}/man1/avocado.1
308
%{__install} -m 0644 man/avocado-rest-client.1 %{buildroot}%{_mandir}/man1/avocado-rest-client.1
309
%{__install} -d -m 0755 %{buildroot}%{_sharedstatedir}/avocado/data
310 311 312 313 314 315 316 317
%{__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
318
%{__mkdir} -p %{buildroot}%{_libexecdir}/avocado
319
%{__mv} %{buildroot}%{python2_sitelib}/avocado/libexec/* %{buildroot}%{_libexecdir}/avocado
320

321
%check
322
%if %{with_tests}
323
%{__python2} setup.py develop --user
324
pushd optional_plugins/html
325
%{__python2} setup.py develop --user
326 327
popd
pushd optional_plugins/runner_remote
328
%{__python2} setup.py develop --user
329 330
popd
pushd optional_plugins/runner_vm
331
%{__python2} setup.py develop --user
332 333
popd
pushd optional_plugins/runner_docker
334
%{__python2} setup.py develop --user
335
popd
C
Cleber Rosa 已提交
336
# no resultsdb plugin on Python 3 due to missing resultsdb_api package
337
pushd optional_plugins/resultsdb
338
%{__python2} setup.py develop --user
339
popd
340
pushd optional_plugins/varianter_yaml_to_mux
341
%{__python2} setup.py develop --user
342
popd
343
pushd optional_plugins/loader_yaml
344
%{__python2} setup.py develop --user
345
popd
C
Cleber Rosa 已提交
346
pushd optional_plugins/golang
347
%{__python2} setup.py develop --user
C
Cleber Rosa 已提交
348
popd
349
pushd optional_plugins/varianter_pict
350
%{__python2} setup.py develop --user
351
popd
352
pushd optional_plugins/result_upload
353
%{__python2} setup.py develop --user
354
popd
C
Cleber Rosa 已提交
355
pushd optional_plugins/glib
356
%{__python2} setup.py develop --user
C
Cleber Rosa 已提交
357
popd
358 359 360
# 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
361
AVOCADO_CHECK_LEVEL=0 %{__python2} selftests/run
C
Cleber Rosa 已提交
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
%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
390
%endif
391

392
%files -n python2-%{srcname}
393 394
%defattr(-,root,root,-)
%doc README.rst LICENSE
395
%{python2_sitelib}/avocado*
396
%{_bindir}/avocado
397 398
%{_bindir}/avocado-2
%{_bindir}/avocado-%{python2_version}
399
%{_bindir}/avocado-rest-client
C
Cleber Rosa 已提交
400
%{_mandir}/man1/avocado.1.gz
401
%{_mandir}/man1/avocado-rest-client.1.gz
402 403 404 405 406 407 408 409 410 411 412 413 414 415 416 417 418 419 420 421 422 423 424
%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*
425

C
Cleber Rosa 已提交
426
%if %{with_python3}
C
Cleber Rosa 已提交
427 428 429 430 431 432 433 434 435 436 437 438 439 440 441 442 443 444 445 446
%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*
C
Cleber Rosa 已提交
447
%endif
C
Cleber Rosa 已提交
448

C
Cleber Rosa 已提交
449 450 451 452 453 454 455 456 457 458 459 460 461 462 463 464 465 466 467 468 469 470 471
%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

472
%package -n python2-%{srcname}-plugins-output-html
473
Summary: Avocado HTML report plugin
474
Requires: python2-%{srcname} == %{version}, pystache
475

476
%description -n python2-%{srcname}-plugins-output-html
477 478 479 480
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.

481 482 483
%files -n python2-%{srcname}-plugins-output-html
%{python2_sitelib}/avocado_result_html*
%{python2_sitelib}/avocado_framework_plugin_result_html*
484

C
Cleber Rosa 已提交
485
%if %{with_python3}
C
Cleber Rosa 已提交
486 487 488 489 490 491 492 493 494 495 496 497
%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 已提交
498
%endif
C
Cleber Rosa 已提交
499

500
%package -n python2-%{srcname}-plugins-runner-remote
501
Summary: Avocado Runner for Remote Execution
502
Requires: python2-%{srcname} == %{version}
503
Requires: fabric
504

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

509 510 511
%files -n python2-%{srcname}-plugins-runner-remote
%{python2_sitelib}/avocado_runner_remote*
%{python2_sitelib}/avocado_framework_plugin_runner_remote*
512

513
%package -n python2-%{srcname}-plugins-runner-vm
514
Summary: Avocado Runner for libvirt VM Execution
515 516
Requires: python2-%{srcname} == %{version}
Requires: python2-%{srcname}-plugins-runner-remote == %{version}
517 518
Requires: libvirt-python

519
%description -n python2-%{srcname}-plugins-runner-vm
520 521 522 523
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.

524 525 526
%files -n python2-%{srcname}-plugins-runner-vm
%{python2_sitelib}/avocado_runner_vm*
%{python2_sitelib}/avocado_framework_plugin_runner_vm*
527

528
%package -n python2-%{srcname}-plugins-runner-docker
529
Summary: Avocado Runner for Execution on Docker Containers
530 531 532
Requires: python2-%{srcname} == %{version}
Requires: python2-%{srcname}-plugins-runner-remote == %{version}
Requires: python2-aexpect
533

534
%description -n python2-%{srcname}-plugins-runner-docker
535 536 537 538
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.

539 540 541
%files -n python2-%{srcname}-plugins-runner-docker
%{python2_sitelib}/avocado_runner_docker*
%{python2_sitelib}/avocado_framework_plugin_runner_docker*
542

543
%package -n python2-%{srcname}-plugins-resultsdb
544
Summary: Avocado plugin to propagate job results to ResultsDB
545 546
Requires: python2-%{srcname} == %{version}
Requires: python2-resultsdb_api
547

548
%description -n python2-%{srcname}-plugins-resultsdb
549 550 551
Allows Avocado to send job results directly to a ResultsDB
server.

552 553 554
%files -n python2-%{srcname}-plugins-resultsdb
%{python2_sitelib}/avocado_resultsdb*
%{python2_sitelib}/avocado_framework_plugin_resultsdb*
555
%config(noreplace)%{_sysconfdir}/avocado/conf.d/resultsdb.conf
556

557
%package -n python2-%{srcname}-plugins-varianter-yaml-to-mux
558 559
Summary: Avocado plugin to generate variants out of yaml files
Requires: %{name} == %{version}
560
%if 0%{?rhel}
561
Requires: PyYAML
562 563 564
%else
Requires: python2-yaml
%endif
565

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

570 571 572
%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*
573

C
Cleber Rosa 已提交
574
%if %{with_python3}
C
Cleber Rosa 已提交
575 576 577 578 579 580 581 582 583 584 585
%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 已提交
586
%endif
C
Cleber Rosa 已提交
587

588
%package -n python2-%{srcname}-plugins-loader-yaml
589 590 591
Summary: Avocado Plugin that loads tests from YAML files
Requires: %{name}-plugins-varianter-yaml-to-mux == %{version}

592
%description -n python2-%{srcname}-plugins-loader-yaml
593 594 595
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.

596 597 598
%files -n python2-%{srcname}-plugins-loader-yaml
%{python2_sitelib}/avocado_loader_yaml*
%{python2_sitelib}/avocado_framework_plugin_loader_yaml*
599

C
Cleber Rosa 已提交
600
%if %{with_python3}
C
Cleber Rosa 已提交
601 602 603 604 605 606 607 608 609 610 611
%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 已提交
612
%endif
C
Cleber Rosa 已提交
613

614
%package -n python2-%{srcname}-plugins-golang
C
Cleber Rosa 已提交
615
Summary: Avocado Plugin for Execution of golang tests
616
Requires: python2-%{srcname} == %{version}
C
Cleber Rosa 已提交
617 618
Requires: golang

619
%description -n python2-%{srcname}-plugins-golang
C
Cleber Rosa 已提交
620 621 622
Allows Avocado to list golang tests, and if golang is installed,
also run them.

623 624 625
%files -n python2-%{srcname}-plugins-golang
%{python2_sitelib}/avocado_golang*
%{python2_sitelib}/avocado_framework_plugin_golang*
C
Cleber Rosa 已提交
626

C
Cleber Rosa 已提交
627
%if %{with_python3}
C
Cleber Rosa 已提交
628 629 630 631 632 633 634 635 636 637 638 639
%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 已提交
640
%endif
C
Cleber Rosa 已提交
641

642
%package -n python2-%{srcname}-plugins-varianter-pict
643
Summary: Varianter with combinatorial capabilities by PICT
644
Requires: python2-%{srcname} == %{version}
645

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

650 651 652
%files -n python2-%{srcname}-plugins-varianter-pict
%{python2_sitelib}/avocado_varianter_pict*
%{python2_sitelib}/avocado_framework_plugin_varianter_pict*
653

C
Cleber Rosa 已提交
654
%if %{with_python3}
C
Cleber Rosa 已提交
655 656 657 658 659 660 661 662 663 664 665
%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 已提交
666
%endif
C
Cleber Rosa 已提交
667

668
%package -n python2-%{srcname}-plugins-result-upload
669
Summary: Avocado Plugin to propagate Job results to a remote host
670
Requires: python2-%{srcname} == %{version}
671

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

676 677 678
%files -n python2-%{srcname}-plugins-result-upload
%{python2_sitelib}/avocado_result_upload*
%{python2_sitelib}/avocado_framework_plugin_result_upload*
679
%config(noreplace)%{_sysconfdir}/avocado/conf.d/result_upload.conf
680

C
Cleber Rosa 已提交
681
%if %{with_python3}
C
Cleber Rosa 已提交
682 683 684 685 686 687 688 689 690 691 692 693
%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 已提交
694
%endif
C
Cleber Rosa 已提交
695

696
%package -n python2-%{srcname}-plugins-glib
C
Cleber Rosa 已提交
697 698 699
Summary: Avocado Plugin for Execution of GLib Test Framework tests
Requires: %{name} == %{version}

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

704 705 706
%files -n python2-%{srcname}-plugins-glib
%{python2_sitelib}/avocado_glib*
%{python2_sitelib}/avocado_framework_plugin_glib*
C
Cleber Rosa 已提交
707

C
Cleber Rosa 已提交
708
%if %{with_python3}
C
Cleber Rosa 已提交
709 710 711 712 713 714 715 716 717 718 719
%package -n python3-%{srcname}-plugins-glib
Summary: Avocado Plugin for Execution of GLib Test Framework tests
Requires: %{name} == %{version}

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

722
%package examples
723
Summary: Avocado Test Framework Example Tests
724
Requires: %{name} == %{version}
725

726 727 728 729
%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.
730

731
%files examples
C
Cleber Rosa 已提交
732 733
%{_datadir}/avocado/gdb-prerun-scripts
%{_datadir}/avocado/plugins
734
%{_datadir}/avocado/tests
735
%{_datadir}/avocado/wrappers
C
Cleber Rosa 已提交
736 737
%{_datadir}/avocado/yaml_to_mux
%{_datadir}/avocado/yaml_to_mux_loader
738
%{_datadir}/avocado/varianter_pict
739

740 741 742 743 744 745 746 747 748
%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
749
%{_libexecdir}/avocado*
750

751
%changelog
752 753 754
* Wed Mar 28 2018 Cleber Rosa <cleber@redhat.com> - 60.0-1
- Moved "common" dep into python2-avocado and python3-avocado

C
Cleber Rosa 已提交
755 756 757
* Wed Mar 28 2018 Cleber Rosa <cleber@redhat.com> - 60.0-0
- New release

758 759
* Mon Mar 19 2018 Cleber Rosa <cleber@redhat.com> - 59.0-2
- Removed backward compatibility with name avocado on plugins
760
- Removed extra dependencies on Fedora 24 for runner-remote
761
- Added python-avocado requirement for golang plugin
C
Cleber Rosa 已提交
762
- Added new common sub-package
763
- Make bash package independent of Python version
764
- Set supported Python major version explicitly to 2
C
Cleber Rosa 已提交
765
- Added Python 3 packages
766

767 768
* Thu Mar  8 2018 Cleber Rosa <cleber@redhat.com> - 59.0-1
- Remove backward compatibility with name avocado
769
- Remove hack to workaround fabric bugs on Fedora 24
770
- Use real package name for python YAML package on EL
771
- Use exact package names on requires
C
Cleber Rosa 已提交
772
- Remove unecessary conditional for kmod
773

C
Cleber Rosa 已提交
774 775 776 777
* Wed Feb 28 2018 Cleber Rosa <cleber@redhat.com> - 59.0-0
- New upstream release
- Added glib plugin subpackage

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

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

784 785
* Sat Jan  6 2018 Cleber Rosa <cleber@redhat.com> - 57.0-3
- Move the avocado package config files to the system location
786
- Add missing configuration files for sub packages
787
- Adapt to change in example file installation
788
- Remove man pages source files from package
789
- Add bash subpackage
790

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

794 795 796
* 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 已提交
797 798 799
* Tue Dec 19 2017 Cleber Rosa <cleber@redhat.com> - 57.0-0
- New upstream release

800 801 802
* Fri Dec 15 2017 Cleber Rosa <cleber@redhat.com> - 56.0-1
- Added result_upload plugin

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

806 807 808
* Thu Nov 16 2017 Cleber Rosa <cleber@redhat.com> - 55.0-1
- Introduced sub-package plugins-varianter-pict

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

812 813
* Mon Oct 16 2017 Cleber Rosa <cleber@redhat.com> - 54.1-3
- Excluded avocado_loader_yaml files from main package
C
Cleber Rosa 已提交
814
- Package recently introduced golang plugin
815 816 817 818

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

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

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

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

828 829
* Tue Aug 22 2017 Cleber Rosa <cleber@redhat.com> - 53.0-1
- Use variable name for configuration dir
830
- Clean up old changelog entries
C
Cleber Rosa 已提交
831
- Include other example files
832

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

836 837 838
* Mon Aug 14 2017 Cleber Rosa <cleber@redhat.com> - 52.0-2
- Add python[2]-yaml requirements

839 840 841
* Tue Jun 27 2017 Cleber Rosa <cleber@redhat.com> - 52.0-1
- Fix python-aexpect depedency on EL7

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