python-avocado.spec 27.2 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 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 128
Requires: python
Requires: python-setuptools
Requires: python-stevedore
129 130 131 132 133 134 135
Requires: python2-requests
%else
Requires: python2
Requires: python2-requests
Requires: python2-setuptools
Requires: python2-stevedore
%endif
136 137 138 139 140 141
%{?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 已提交
142
%if %{with_python3}
C
Cleber Rosa 已提交
143 144
%package -n python3-%{srcname}
Summary: %{summary}
145 146 147 148 149
Requires: %{name}-common == %{version}
Requires: gdb
Requires: gdb-gdbserver
Requires: procps-ng
Requires: pyliblzma
C
Cleber Rosa 已提交
150 151 152 153 154
Requires: python3
Requires: python3-requests
Requires: python3-setuptools
Requires: python3-six
Requires: python3-stevedore
155
%{?python_provide:%python_provide python3-%{srcname}}
C
Cleber Rosa 已提交
156 157 158 159

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

162
%prep
163 164 165
%if 0%{?rel_build}
%setup -q -n %{srcname}-%{version}
%else
166
%setup -q -n %{srcname}-%{commit}
167
%endif
168 169 170 171
# 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
172 173

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

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

330
%check
331
%if %{with_tests}
332
%{__python2} setup.py develop --user
333
pushd optional_plugins/html
334
%{__python2} setup.py develop --user
335 336
popd
pushd optional_plugins/runner_remote
337
%{__python2} setup.py develop --user
338 339
popd
pushd optional_plugins/runner_vm
340
%{__python2} setup.py develop --user
341 342
popd
pushd optional_plugins/runner_docker
343
%{__python2} setup.py develop --user
344
popd
C
Cleber Rosa 已提交
345
# no resultsdb plugin on Python 3 due to missing resultsdb_api package
346
pushd optional_plugins/resultsdb
347
%{__python2} setup.py develop --user
348
popd
349
pushd optional_plugins/varianter_yaml_to_mux
350
%{__python2} setup.py develop --user
351
popd
352
pushd optional_plugins/loader_yaml
353
%{__python2} setup.py develop --user
354
popd
C
Cleber Rosa 已提交
355
pushd optional_plugins/golang
356
%{__python2} setup.py develop --user
C
Cleber Rosa 已提交
357
popd
358
pushd optional_plugins/varianter_pict
359
%{__python2} setup.py develop --user
360
popd
361
pushd optional_plugins/result_upload
362
%{__python2} setup.py develop --user
363
popd
C
Cleber Rosa 已提交
364
pushd optional_plugins/glib
365
%{__python2} setup.py develop --user
C
Cleber Rosa 已提交
366
popd
367 368 369
# 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
370
AVOCADO_CHECK_LEVEL=0 %{__python2} selftests/run
C
Cleber Rosa 已提交
371 372 373 374 375 376 377 378 379 380 381 382 383 384 385 386 387 388 389 390 391 392 393 394 395 396 397 398
%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
399
%endif
400

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

C
Cleber Rosa 已提交
435
%if %{with_python3}
C
Cleber Rosa 已提交
436 437 438 439 440 441 442 443 444 445 446 447 448 449 450 451 452 453 454 455
%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 已提交
456
%endif
C
Cleber Rosa 已提交
457

C
Cleber Rosa 已提交
458 459 460 461 462 463 464 465 466 467 468 469 470 471 472 473 474 475 476 477 478 479 480
%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

481
%package -n python2-%{srcname}-plugins-output-html
482
Summary: Avocado HTML report plugin
483
Requires: python2-%{srcname} == %{version}, pystache
484

485
%description -n python2-%{srcname}-plugins-output-html
486 487 488 489
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.

490 491 492
%files -n python2-%{srcname}-plugins-output-html
%{python2_sitelib}/avocado_result_html*
%{python2_sitelib}/avocado_framework_plugin_result_html*
493

C
Cleber Rosa 已提交
494
%if %{with_python3}
C
Cleber Rosa 已提交
495 496 497 498 499 500 501 502 503 504 505 506
%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 已提交
507
%endif
C
Cleber Rosa 已提交
508

509
%package -n python2-%{srcname}-plugins-runner-remote
510
Summary: Avocado Runner for Remote Execution
511
Requires: python2-%{srcname} == %{version}
512
Requires: fabric
513

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

518 519 520
%files -n python2-%{srcname}-plugins-runner-remote
%{python2_sitelib}/avocado_runner_remote*
%{python2_sitelib}/avocado_framework_plugin_runner_remote*
521

522
%package -n python2-%{srcname}-plugins-runner-vm
523
Summary: Avocado Runner for libvirt VM Execution
524 525
Requires: python2-%{srcname} == %{version}
Requires: python2-%{srcname}-plugins-runner-remote == %{version}
526 527
Requires: libvirt-python

528
%description -n python2-%{srcname}-plugins-runner-vm
529 530 531 532
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.

533 534 535
%files -n python2-%{srcname}-plugins-runner-vm
%{python2_sitelib}/avocado_runner_vm*
%{python2_sitelib}/avocado_framework_plugin_runner_vm*
536

537
%package -n python2-%{srcname}-plugins-runner-docker
538
Summary: Avocado Runner for Execution on Docker Containers
539 540 541
Requires: python2-%{srcname} == %{version}
Requires: python2-%{srcname}-plugins-runner-remote == %{version}
Requires: python2-aexpect
542

543
%description -n python2-%{srcname}-plugins-runner-docker
544 545 546 547
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.

548 549 550
%files -n python2-%{srcname}-plugins-runner-docker
%{python2_sitelib}/avocado_runner_docker*
%{python2_sitelib}/avocado_framework_plugin_runner_docker*
551

552
%package -n python2-%{srcname}-plugins-resultsdb
553
Summary: Avocado plugin to propagate job results to ResultsDB
554 555
Requires: python2-%{srcname} == %{version}
Requires: python2-resultsdb_api
556

557
%description -n python2-%{srcname}-plugins-resultsdb
558 559 560
Allows Avocado to send job results directly to a ResultsDB
server.

561 562 563
%files -n python2-%{srcname}-plugins-resultsdb
%{python2_sitelib}/avocado_resultsdb*
%{python2_sitelib}/avocado_framework_plugin_resultsdb*
564
%config(noreplace)%{_sysconfdir}/avocado/conf.d/resultsdb.conf
565

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

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

579 580 581
%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*
582

C
Cleber Rosa 已提交
583
%if %{with_python3}
C
Cleber Rosa 已提交
584 585 586 587 588 589 590 591 592 593 594
%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 已提交
595
%endif
C
Cleber Rosa 已提交
596

597
%package -n python2-%{srcname}-plugins-loader-yaml
598 599 600
Summary: Avocado Plugin that loads tests from YAML files
Requires: %{name}-plugins-varianter-yaml-to-mux == %{version}

601
%description -n python2-%{srcname}-plugins-loader-yaml
602 603 604
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.

605 606 607
%files -n python2-%{srcname}-plugins-loader-yaml
%{python2_sitelib}/avocado_loader_yaml*
%{python2_sitelib}/avocado_framework_plugin_loader_yaml*
608

C
Cleber Rosa 已提交
609
%if %{with_python3}
C
Cleber Rosa 已提交
610 611 612 613 614 615 616 617 618 619 620
%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 已提交
621
%endif
C
Cleber Rosa 已提交
622

623
%package -n python2-%{srcname}-plugins-golang
C
Cleber Rosa 已提交
624
Summary: Avocado Plugin for Execution of golang tests
625
Requires: python2-%{srcname} == %{version}
C
Cleber Rosa 已提交
626 627
Requires: golang

628
%description -n python2-%{srcname}-plugins-golang
C
Cleber Rosa 已提交
629 630 631
Allows Avocado to list golang tests, and if golang is installed,
also run them.

632 633 634
%files -n python2-%{srcname}-plugins-golang
%{python2_sitelib}/avocado_golang*
%{python2_sitelib}/avocado_framework_plugin_golang*
C
Cleber Rosa 已提交
635

C
Cleber Rosa 已提交
636
%if %{with_python3}
C
Cleber Rosa 已提交
637 638 639 640 641 642 643 644 645 646 647 648
%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 已提交
649
%endif
C
Cleber Rosa 已提交
650

651
%package -n python2-%{srcname}-plugins-varianter-pict
652
Summary: Varianter with combinatorial capabilities by PICT
653
Requires: python2-%{srcname} == %{version}
654

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

659 660 661
%files -n python2-%{srcname}-plugins-varianter-pict
%{python2_sitelib}/avocado_varianter_pict*
%{python2_sitelib}/avocado_framework_plugin_varianter_pict*
662

C
Cleber Rosa 已提交
663
%if %{with_python3}
C
Cleber Rosa 已提交
664 665 666 667 668 669 670 671 672 673 674
%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 已提交
675
%endif
C
Cleber Rosa 已提交
676

677
%package -n python2-%{srcname}-plugins-result-upload
678
Summary: Avocado Plugin to propagate Job results to a remote host
679
Requires: python2-%{srcname} == %{version}
680

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

685 686 687
%files -n python2-%{srcname}-plugins-result-upload
%{python2_sitelib}/avocado_result_upload*
%{python2_sitelib}/avocado_framework_plugin_result_upload*
688
%config(noreplace)%{_sysconfdir}/avocado/conf.d/result_upload.conf
689

C
Cleber Rosa 已提交
690
%if %{with_python3}
C
Cleber Rosa 已提交
691 692 693 694 695 696 697 698 699 700 701 702
%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 已提交
703
%endif
C
Cleber Rosa 已提交
704

705
%package -n python2-%{srcname}-plugins-glib
C
Cleber Rosa 已提交
706 707 708
Summary: Avocado Plugin for Execution of GLib Test Framework tests
Requires: %{name} == %{version}

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

713 714 715
%files -n python2-%{srcname}-plugins-glib
%{python2_sitelib}/avocado_glib*
%{python2_sitelib}/avocado_framework_plugin_glib*
C
Cleber Rosa 已提交
716

C
Cleber Rosa 已提交
717
%if %{with_python3}
C
Cleber Rosa 已提交
718 719 720 721 722 723 724 725 726 727 728
%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 已提交
729
%endif
C
Cleber Rosa 已提交
730

731
%package examples
732
Summary: Avocado Test Framework Example Tests
733
Requires: %{name} == %{version}
734

735 736 737 738
%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.
739

740
%files examples
C
Cleber Rosa 已提交
741 742
%{_datadir}/avocado/gdb-prerun-scripts
%{_datadir}/avocado/plugins
743
%{_datadir}/avocado/tests
744
%{_datadir}/avocado/wrappers
C
Cleber Rosa 已提交
745 746
%{_datadir}/avocado/yaml_to_mux
%{_datadir}/avocado/yaml_to_mux_loader
747
%{_datadir}/avocado/varianter_pict
748

749 750 751 752 753 754 755 756 757
%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
758
%{_libexecdir}/avocado*
759

760
%changelog
761 762
* Wed Apr  4 2018 Cleber Rosa <cleber@redhat.com> - 60.0-2
- Moved all requirements to python2-avocado and python3-avocado
763
- Added python_provides macro on Python 3 package
764
- Filter out python binaries from requirements
765

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

C
Cleber Rosa 已提交
769 770 771
* Wed Mar 28 2018 Cleber Rosa <cleber@redhat.com> - 60.0-0
- New release

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

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

C
Cleber Rosa 已提交
788 789 790 791
* Wed Feb 28 2018 Cleber Rosa <cleber@redhat.com> - 59.0-0
- New upstream release
- Added glib plugin subpackage

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

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

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

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

808 809 810
* 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 已提交
811 812 813
* Tue Dec 19 2017 Cleber Rosa <cleber@redhat.com> - 57.0-0
- New upstream release

814 815 816
* Fri Dec 15 2017 Cleber Rosa <cleber@redhat.com> - 56.0-1
- Added result_upload plugin

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

820 821 822
* Thu Nov 16 2017 Cleber Rosa <cleber@redhat.com> - 55.0-1
- Introduced sub-package plugins-varianter-pict

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

826 827
* Mon Oct 16 2017 Cleber Rosa <cleber@redhat.com> - 54.1-3
- Excluded avocado_loader_yaml files from main package
C
Cleber Rosa 已提交
828
- Package recently introduced golang plugin
829 830 831 832

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

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

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

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

842 843
* Tue Aug 22 2017 Cleber Rosa <cleber@redhat.com> - 53.0-1
- Use variable name for configuration dir
844
- Clean up old changelog entries
C
Cleber Rosa 已提交
845
- Include other example files
846

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

850 851 852
* Mon Aug 14 2017 Cleber Rosa <cleber@redhat.com> - 52.0-2
- Add python[2]-yaml requirements

853 854 855
* Tue Jun 27 2017 Cleber Rosa <cleber@redhat.com> - 52.0-1
- Fix python-aexpect depedency on EL7

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