python-avocado.spec 23.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     c4320e3f4066205a2efd1c90fdf5109592344013
14 15
    %endif
    %if ! 0%{?commit_date:1}
C
Cleber Rosa 已提交
16
        %global commit_date 20181217
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

29 30 31 32 33 34 35 36
# Avocado is currently incompatible with the Fabric API in Fedora 31 and later
# https://github.com/avocado-framework/avocado/issues/3125
%if 0%{?fedora} >= 31
%global with_fabric 0
%else
%global with_fabric 1
%endif

37
# Python 3 version of Fabric package is new starting with Fedora 29
C
Cleber Rosa 已提交
38
%if 0%{?fedora} >= 29
39 40 41 42 43
%global with_python3_fabric 1
%else
%global with_python3_fabric 0
%endif

44 45 46 47 48
# 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]$

49
Summary: Framework with tools and libraries for Automated Testing
50
Name: python-%{srcname}
C
Cleber Rosa 已提交
51
Version: 69.0
52
Release: 1%{?gitrel}%{?dist}
53 54
License: GPLv2
Group: Development/Tools
55
URL: http://avocado-framework.github.io/
56 57 58 59 60
%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
61
BuildArch: noarch
62
BuildRequires: procps-ng
C
Cleber Rosa 已提交
63
BuildRequires: kmod
64
%if %{with_fabric}
65 66 67
%if %{with_python3_fabric}
BuildRequires: python3-fabric3
%endif
68
%endif # with_fabric
C
Cleber Rosa 已提交
69 70 71
%if 0%{?fedora} >= 30
BuildRequires: glibc-all-langpacks
%endif
72

73
BuildRequires: python3-jinja2
C
Cleber Rosa 已提交
74 75 76 77 78
BuildRequires: python3-aexpect
BuildRequires: python3-devel
BuildRequires: python3-docutils
BuildRequires: python3-lxml
BuildRequires: python3-psutil
79
BuildRequires: python3-resultsdb_api
C
Cleber Rosa 已提交
80 81 82
BuildRequires: python3-setuptools
BuildRequires: python3-sphinx
BuildRequires: python3-stevedore
C
Cleber Rosa 已提交
83
BuildRequires: python3-pycdlib
C
Cleber Rosa 已提交
84

85
%if %{with_tests}
86 87
BuildRequires: genisoimage
BuildRequires: libcdio
88 89
BuildRequires: libvirt-python
BuildRequires: perl-Test-Harness
90
BuildRequires: psmisc
91
BuildRequires: python3-libvirt
C
Cleber Rosa 已提交
92
BuildRequires: python3-yaml
93
BuildRequires: python3-netifaces
C
Cleber Rosa 已提交
94
%endif
95

96 97 98 99
%description
Avocado is a set of tools and libraries (what people call
these days a framework) to perform automated testing.

C
Cleber Rosa 已提交
100 101
%package -n python3-%{srcname}
Summary: %{summary}
C
Cleber Rosa 已提交
102
Requires: python3-%{srcname}-common == %{version}
103 104 105
Requires: gdb
Requires: gdb-gdbserver
Requires: procps-ng
C
Cleber Rosa 已提交
106 107 108
Requires: python3
Requires: python3-setuptools
Requires: python3-stevedore
C
Cleber Rosa 已提交
109
Requires: python3-pycdlib
C
Cleber Rosa 已提交
110 111 112 113 114

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

115
%prep
116 117 118
%if 0%{?rel_build}
%setup -q -n %{srcname}-%{version}
%else
119
%setup -q -n %{srcname}-%{commit}
120
%endif
121 122 123 124
# 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
125 126

%build
127 128
%if 0%{?fedora} && 0%{?fedora} < 29
sed -e "s/'PyYAML>=4.2b2'/'PyYAML>=3.12'/" -i optional_plugins/varianter_yaml_to_mux/setup.py
129
%endif
C
Cleber Rosa 已提交
130
%py3_build
131
pushd optional_plugins/html
C
Cleber Rosa 已提交
132
%py3_build
133 134
popd
pushd optional_plugins/runner_remote
135
%if %{with_fabric}
136 137 138
%if %{with_python3_fabric}
%py3_build
%endif
139
%endif # with_fabric
140 141
popd
pushd optional_plugins/runner_vm
142
%if %{with_fabric}
143 144 145
%if %{with_python3_fabric}
%py3_build
%endif
146
%endif # with_fabric
147 148
popd
pushd optional_plugins/runner_docker
149
%if %{with_fabric}
150 151 152
%if %{with_python3_fabric}
%py3_build
%endif
153
%endif # with_fabric
154
popd
155
pushd optional_plugins/resultsdb
156
%py3_build
157
popd
158
pushd optional_plugins/varianter_yaml_to_mux
C
Cleber Rosa 已提交
159
%py3_build
160
popd
161
pushd optional_plugins/loader_yaml
C
Cleber Rosa 已提交
162
%py3_build
163
popd
C
Cleber Rosa 已提交
164
pushd optional_plugins/golang
C
Cleber Rosa 已提交
165
%py3_build
C
Cleber Rosa 已提交
166
popd
167
pushd optional_plugins/varianter_pict
C
Cleber Rosa 已提交
168
%py3_build
169
popd
C
Cleber Rosa 已提交
170 171 172
pushd optional_plugins/varianter_cit
%py3_build
popd
173
pushd optional_plugins/result_upload
C
Cleber Rosa 已提交
174
%py3_build
175
popd
C
Cleber Rosa 已提交
176
pushd optional_plugins/glib
C
Cleber Rosa 已提交
177
%py3_build
C
Cleber Rosa 已提交
178
popd
C
Cleber Rosa 已提交
179 180 181 182
# python3-docutils on Fedora 28 uses a rst2man binary with -3 prefix
%if 0%{?fedora} == 28
/usr/bin/rst2man-3 man/avocado.rst man/avocado.1
%else
183
%{__make} man
C
Cleber Rosa 已提交
184
%endif
185 186

%install
C
Cleber Rosa 已提交
187
%py3_install
C
Cleber Rosa 已提交
188
%{__mv} %{buildroot}%{python3_sitelib}/avocado/etc %{buildroot}
189
pushd optional_plugins/html
C
Cleber Rosa 已提交
190
%py3_install
191 192
popd
pushd optional_plugins/runner_remote
193
%if %{with_fabric}
194 195 196
%if %{with_python3_fabric}
%py3_install
%endif
197
%endif # with_fabric
198 199
popd
pushd optional_plugins/runner_vm
200
%if %{with_fabric}
201 202 203
%if %{with_python3_fabric}
%py3_install
%endif
204
%endif # with_fabric
205 206
popd
pushd optional_plugins/runner_docker
207
%if %{with_fabric}
208 209 210
%if %{with_python3_fabric}
%py3_install
%endif
211
%endif # with_fabric
212
popd
213
pushd optional_plugins/resultsdb
214
%py3_install
215
popd
216
pushd optional_plugins/varianter_yaml_to_mux
C
Cleber Rosa 已提交
217
%py3_install
218
popd
219
pushd optional_plugins/loader_yaml
C
Cleber Rosa 已提交
220
%py3_install
221
popd
C
Cleber Rosa 已提交
222
pushd optional_plugins/golang
C
Cleber Rosa 已提交
223
%py3_install
C
Cleber Rosa 已提交
224
popd
225
pushd optional_plugins/varianter_pict
C
Cleber Rosa 已提交
226
%py3_install
227
popd
C
Cleber Rosa 已提交
228 229 230
pushd optional_plugins/varianter_cit
%py3_install
popd
231
pushd optional_plugins/result_upload
C
Cleber Rosa 已提交
232
%py3_install
233
popd
C
Cleber Rosa 已提交
234
pushd optional_plugins/glib
C
Cleber Rosa 已提交
235
%py3_install
C
Cleber Rosa 已提交
236
popd
C
Cleber Rosa 已提交
237 238
%{__mkdir} -p %{buildroot}%{_mandir}/man1
%{__install} -m 0644 man/avocado.1 %{buildroot}%{_mandir}/man1/avocado.1
239
%{__install} -d -m 0755 %{buildroot}%{_sharedstatedir}/avocado/data
240 241 242 243 244 245 246 247
%{__install} -d -m 0755 %{buildroot}%{_docdir}/avocado
%{__cp} -r examples/gdb-prerun-scripts %{buildroot}%{_docdir}/avocado
%{__cp} -r examples/plugins %{buildroot}%{_docdir}/avocado
%{__cp} -r examples/tests %{buildroot}%{_docdir}/avocado
%{__cp} -r examples/wrappers %{buildroot}%{_docdir}/avocado
%{__cp} -r examples/yaml_to_mux %{buildroot}%{_docdir}/avocado
%{__cp} -r examples/yaml_to_mux_loader %{buildroot}%{_docdir}/avocado
%{__cp} -r examples/varianter_pict %{buildroot}%{_docdir}/avocado
C
Cleber Rosa 已提交
248
%{__cp} -r examples/varianter_cit %{buildroot}%{_docdir}/avocado
249
find %{buildroot}%{_docdir}/avocado -type f -name '*.py' -exec %{__chmod} -c -x {} ';'
250
%{__mkdir} -p %{buildroot}%{_libexecdir}/avocado
C
Cleber Rosa 已提交
251
%{__mv} %{buildroot}%{python3_sitelib}/avocado/libexec/* %{buildroot}%{_libexecdir}/avocado
252

253
%check
254
%if %{with_tests}
C
Cleber Rosa 已提交
255 256 257 258
%{__python3} setup.py develop --user
pushd optional_plugins/html
%{__python3} setup.py develop --user
popd
259
%if %{with_fabric}
260 261 262 263 264 265 266 267 268 269
%if %{with_python3_fabric}
pushd optional_plugins/runner_remote
%{__python3} setup.py develop --user
popd
pushd optional_plugins/runner_vm
%{__python3} setup.py develop --user
popd
pushd optional_plugins/runner_docker
%{__python3} setup.py develop --user
popd
270 271
%endif # with_python3_fabric
%endif # with_fabric
272 273 274
pushd optional_plugins/resultsdb
%{__python3} setup.py develop --user
popd
C
Cleber Rosa 已提交
275 276 277 278 279 280 281 282 283 284 285 286
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
C
Cleber Rosa 已提交
287 288 289
pushd optional_plugins/varianter_cit
%{__python3} setup.py develop --user
popd
C
Cleber Rosa 已提交
290 291 292 293 294 295
pushd optional_plugins/result_upload
%{__python3} setup.py develop --user
popd
pushd optional_plugins/glib
%{__python3} setup.py develop --user
popd
C
Cleber Rosa 已提交
296 297 298 299 300 301 302 303 304
# LANG: to make the results predictable, we pin the language
# that is used during test execution.
# AVOCADO_CHECK_LEVEL: package build environments have the least
# amount of resources we have observed so far.  Let's avoid tests that
# require too much resources or are time sensitive
# UNITTEST_AVOCADO_CMD: the "avocado" command to be run during
# unittests needs to be a Python specific one on Fedora >= 28.  Let's
# use the one that was setup in the source tree by the "setup.py
# develop --user" step and is guaranteed to be version specific.
305
LANG=en_US.UTF-8 AVOCADO_CHECK_LEVEL=0 UNITTEST_AVOCADO_CMD=$HOME/.local/bin/avocado %{__python3} selftests/run
C
Cleber Rosa 已提交
306
%endif
307

C
Cleber Rosa 已提交
308
%files -n python3-%{srcname}
309 310 311
%defattr(-,root,root,-)
%doc README.rst LICENSE
%{_bindir}/avocado
C
Cleber Rosa 已提交
312 313
%{python3_sitelib}/avocado*
%exclude %{python3_sitelib}/avocado_result_html*
314 315 316 317
%exclude %{python3_sitelib}/avocado_runner_remote*
%exclude %{python3_sitelib}/avocado_runner_vm*
%exclude %{python3_sitelib}/avocado_runner_docker*
%exclude %{python3_sitelib}/avocado_resultsdb*
C
Cleber Rosa 已提交
318 319 320 321
%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*
C
Cleber Rosa 已提交
322
%exclude %{python3_sitelib}/avocado_varianter_cit*
C
Cleber Rosa 已提交
323 324 325
%exclude %{python3_sitelib}/avocado_result_upload*
%exclude %{python3_sitelib}/avocado_glib*
%exclude %{python3_sitelib}/avocado_framework_plugin_result_html*
326 327 328 329
%exclude %{python3_sitelib}/avocado_framework_plugin_runner_remote*
%exclude %{python3_sitelib}/avocado_framework_plugin_runner_vm*
%exclude %{python3_sitelib}/avocado_framework_plugin_runner_docker*
%exclude %{python3_sitelib}/avocado_framework_plugin_resultsdb*
C
Cleber Rosa 已提交
330 331
%exclude %{python3_sitelib}/avocado_framework_plugin_varianter_yaml_to_mux*
%exclude %{python3_sitelib}/avocado_framework_plugin_varianter_pict*
C
Cleber Rosa 已提交
332
%exclude %{python3_sitelib}/avocado_framework_plugin_varianter_cit*
C
Cleber Rosa 已提交
333 334 335 336
%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*
337
%exclude %{python3_sitelib}/tests*
C
Cleber Rosa 已提交
338

C
Cleber Rosa 已提交
339
%package -n python3-%{srcname}-common
C
Cleber Rosa 已提交
340 341
Summary: Avocado common files

C
Cleber Rosa 已提交
342
%description -n python3-%{srcname}-common
C
Cleber Rosa 已提交
343 344
Common files (such as configuration) for the Avocado Testing Framework.

C
Cleber Rosa 已提交
345
%files -n python3-%{srcname}-common
M
Merlin Mathesius 已提交
346
%{_mandir}/man1/avocado.1.gz
C
Cleber Rosa 已提交
347 348 349
%dir %{_sysconfdir}/avocado
%dir %{_sysconfdir}/avocado/conf.d
%dir %{_sysconfdir}/avocado/sysinfo
M
Merlin Mathesius 已提交
350 351
%dir %{_sysconfdir}/avocado/scripts
%dir %{_sysconfdir}/avocado/scripts/job
C
Cleber Rosa 已提交
352 353 354 355 356 357 358 359 360 361 362 363 364
%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

C
Cleber Rosa 已提交
365 366
%package -n python3-%{srcname}-plugins-output-html
Summary: Avocado HTML report plugin
367
Requires: python3-%{srcname} == %{version}, python3-jinja2
C
Cleber Rosa 已提交
368 369 370 371 372 373 374 375 376

%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*
377

378
%if %{with_fabric}
379 380 381 382 383 384 385 386 387 388 389 390 391
%if %{with_python3_fabric}
%package -n python3-%{srcname}-plugins-runner-remote
Summary: Avocado Runner for Remote Execution
Requires: python3-%{srcname} == %{version}
Requires: python3-fabric3

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

%files -n python3-%{srcname}-plugins-runner-remote
%{python3_sitelib}/avocado_runner_remote*
%{python3_sitelib}/avocado_framework_plugin_runner_remote*
392 393
%endif # with_python3_fabric
%endif # with_fabric
394

395
%if %{with_fabric}
396 397 398 399 400 401 402 403 404 405 406 407 408 409 410
%if %{with_python3_fabric}
%package -n python3-%{srcname}-plugins-runner-vm
Summary: Avocado Runner for libvirt VM Execution
Requires: python3-%{srcname} == %{version}
Requires: python3-%{srcname}-plugins-runner-remote == %{version}
Requires: python3-libvirt

%description -n python3-%{srcname}-plugins-runner-vm
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.

%files -n python3-%{srcname}-plugins-runner-vm
%{python3_sitelib}/avocado_runner_vm*
%{python3_sitelib}/avocado_framework_plugin_runner_vm*
411 412
%endif # with_python3_fabric
%endif # with_fabric
413

414
%if %{with_fabric}
415 416 417 418 419 420 421 422 423 424 425 426 427 428 429
%if %{with_python3_fabric}
%package -n python3-%{srcname}-plugins-runner-docker
Summary: Avocado Runner for Execution on Docker Containers
Requires: python3-%{srcname} == %{version}
Requires: python3-%{srcname}-plugins-runner-remote == %{version}
Requires: python3-aexpect

%description -n python3-%{srcname}-plugins-runner-docker
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.

%files -n python3-%{srcname}-plugins-runner-docker
%{python3_sitelib}/avocado_runner_docker*
%{python3_sitelib}/avocado_framework_plugin_runner_docker*
430 431
%endif # with_python3_fabric
%endif # with_fabric
432 433 434 435 436 437 438 439 440 441 442 443 444 445

%package -n python3-%{srcname}-plugins-resultsdb
Summary: Avocado plugin to propagate job results to ResultsDB
Requires: python3-%{srcname} == %{version}
Requires: python3-resultsdb_api

%description -n python3-%{srcname}-plugins-resultsdb
Allows Avocado to send job results directly to a ResultsDB
server.

%files -n python3-%{srcname}-plugins-resultsdb
%{python3_sitelib}/avocado_resultsdb*
%{python3_sitelib}/avocado_framework_plugin_resultsdb*
%config(noreplace)%{_sysconfdir}/avocado/conf.d/resultsdb.conf
446

C
Cleber Rosa 已提交
447 448 449
%package -n python3-%{srcname}-plugins-varianter-yaml-to-mux
Summary: Avocado plugin to generate variants out of yaml files
Requires: python3-%{srcname} == %{version}
C
Cleber Rosa 已提交
450
Requires: python3-yaml
C
Cleber Rosa 已提交
451 452 453 454 455 456 457 458 459 460 461 462 463 464 465 466 467 468 469 470

%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*

%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 已提交
471

C
Cleber Rosa 已提交
472 473 474 475 476 477 478 479 480 481 482 483 484 485 486 487 488 489 490 491 492 493 494 495 496
%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*

%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 已提交
497 498 499 500 501 502 503 504 505 506 507 508
%package -n python3-%{srcname}-plugins-varianter-cit
Summary: Varianter with Combinatorial Independent Testing capabilities
Requires: python3-%{srcname} == %{version}

%description -n python3-%{srcname}-plugins-varianter-cit
A varianter plugin that generates variants using Combinatorial
Independent Testing (AKA Pair-Wise) algorithm developed in
collaboration with CVUT Prague.

%files -n python3-%{srcname}-plugins-varianter-cit
%{python3_sitelib}/avocado_varianter_cit*
%{python3_sitelib}/avocado_framework_plugin_varianter_cit*
509

C
Cleber Rosa 已提交
510 511 512 513 514 515 516 517 518 519 520 521
%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 已提交
522

C
Cleber Rosa 已提交
523 524
%package -n python3-%{srcname}-plugins-glib
Summary: Avocado Plugin for Execution of GLib Test Framework tests
525
Requires: python3-%{srcname} == %{version}
C
Cleber Rosa 已提交
526 527 528 529 530 531 532 533 534

%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 已提交
535
%package -n python3-%{srcname}-examples
536
Summary: Avocado Test Framework Example Tests
C
Cleber Rosa 已提交
537
Requires: python3-%{srcname} == %{version}
538

C
Cleber Rosa 已提交
539
%description -n python3-%{srcname}-examples
540 541 542
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.
543

C
Cleber Rosa 已提交
544
%files -n python3-%{srcname}-examples
545 546 547 548 549 550 551 552
%dir %{_docdir}/avocado
%{_docdir}/avocado/gdb-prerun-scripts
%{_docdir}/avocado/plugins
%{_docdir}/avocado/tests
%{_docdir}/avocado/wrappers
%{_docdir}/avocado/yaml_to_mux
%{_docdir}/avocado/yaml_to_mux_loader
%{_docdir}/avocado/varianter_pict
C
Cleber Rosa 已提交
553
%{_docdir}/avocado/varianter_cit
554

C
Cleber Rosa 已提交
555
%package -n python3-%{srcname}-bash
556
Summary: Avocado Test Framework Bash Utilities
C
Cleber Rosa 已提交
557
Requires: python3-%{srcname} == %{version}
558

C
Cleber Rosa 已提交
559
%description -n python3-%{srcname}-bash
560 561 562
A small set of utilities to interact with Avocado from the Bourne
Again Shell code (and possibly other similar shells).

C
Cleber Rosa 已提交
563
%files -n python3-%{srcname}-bash
564
%{_libexecdir}/avocado*
565

566
%changelog
567 568 569 570 571 572
* Tue May 28 2019 Merlin Mathesius <mmathesi@redhat.com> - 69.0-1
- Disable components dependent upon Fiber in Fedora 31 and later,
  since avocado is currently incompatible with the new Fiber API.
- Remove pyliblzma as it has always been Python 2-only, and it is
  no longer available as of F31.

C
Cleber Rosa 已提交
573 574 575
* Tue Feb 26 2019 Cleber Rosa <cleber@redhat.com> - 69.0-0
- New release

C
Cleber Rosa 已提交
576 577 578
* Wed Feb 13 2019 Cleber Rosa <cleber@redhat.com> - 68.0-0
- New release

579 580 581 582
* Mon Feb  4 2019 Cleber Rosa <cleber@redhat.com> - 67.0-1
- python2-resultsdb_api package has been removed in F30 so
  python2-avocado-plugins-resultsdb was also disabled.

C
Cleber Rosa 已提交
583 584 585
* Mon Dec 17 2018 Cleber Rosa <cleber@redhat.com> - 67.0-0
- New release

586 587 588
* Mon Dec 17 2018 Cleber Rosa <cleber@redhat.com> - 66.0-3
- Use proper name of Python netifaces module package on EL7

589 590 591
* Mon Dec 10 2018 Cleber Rosa <cleber@redhat.com> - 66.0-2
- Replaced pystache requirement for jinja2

592 593 594
* Wed Dec  5 2018 Cleber Rosa <cleber@redhat.com> - 66.0-1
- Added libcdio, genisoimage and psmisc as build deps

C
Cleber Rosa 已提交
595 596 597
* Tue Nov 20 2018 Cleber Rosa <cleber@redhat.com> - 66.0-0
- New release

C
Cleber Rosa 已提交
598 599 600
* Tue Oct  2 2018 Cleber Rosa <cleber@redhat.com> - 65.0-0
- New release

C
Cleber Rosa 已提交
601 602 603 604
* Mon Aug 27 2018 Cleber Rosa <cleber@redhat.com> - 64.0-0
- Added pycdlib as requirements
- New release

C
Cleber Rosa 已提交
605 606 607
* Wed Jul 25 2018 Cleber Rosa <cleber@redhat.com> - 63.0-2
- Added CIT varianter plugin sub-packages

608 609 610 611
* Mon Jul 23 2018 Merlin Mathesius <mmathesi@redhat.com> - 63.0-1
- Enable python3 versions of runner and resultsdb plugins when
  package dependencies are available.

C
Cleber Rosa 已提交
612 613 614
* Tue Jul 17 2018 Cleber Rosa <cleber@redhat.com> - 63.0-0
- New release

615 616 617
* Wed Jun 20 2018 Cleber Rosa <cleber@redhat.com> - 62.0-1
- Added new python[2]-enum34 requirement

C
Cleber Rosa 已提交
618 619 620
* Tue Jun 12 2018 Cleber Rosa <cleber@redhat.com> - 62.0-0
- New release

621 622 623
* Tue May  1 2018 Cleber Rosa <cleber@redhat.com> - 61.0-1
- Use Python version specific "avocado" scripts on tests

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

629 630
* Wed Apr  4 2018 Cleber Rosa <cleber@redhat.com> - 60.0-2
- Moved all requirements to python2-avocado and python3-avocado
631
- Added python_provides macro on Python 3 package
632
- Filter out python binaries from requirements
633
- Added explicit six requirement on Python 2 packages
634

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

C
Cleber Rosa 已提交
638 639 640
* Wed Mar 28 2018 Cleber Rosa <cleber@redhat.com> - 60.0-0
- New release

641 642
* Mon Mar 19 2018 Cleber Rosa <cleber@redhat.com> - 59.0-2
- Removed backward compatibility with name avocado on plugins
643
- Removed extra dependencies on Fedora 24 for runner-remote
644
- Added python-avocado requirement for golang plugin
C
Cleber Rosa 已提交
645
- Added new common sub-package
646
- Make bash package independent of Python version
647
- Set supported Python major version explicitly to 2
C
Cleber Rosa 已提交
648
- Added Python 3 packages
649

650 651
* Thu Mar  8 2018 Cleber Rosa <cleber@redhat.com> - 59.0-1
- Remove backward compatibility with name avocado
652
- Remove hack to workaround fabric bugs on Fedora 24
653
- Use real package name for python YAML package on EL
654
- Use exact package names on requires
C
Cleber Rosa 已提交
655
- Remove unecessary conditional for kmod
656

C
Cleber Rosa 已提交
657 658 659 660
* Wed Feb 28 2018 Cleber Rosa <cleber@redhat.com> - 59.0-0
- New upstream release
- Added glib plugin subpackage

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

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

667 668
* Sat Jan  6 2018 Cleber Rosa <cleber@redhat.com> - 57.0-3
- Move the avocado package config files to the system location
669
- Add missing configuration files for sub packages
670
- Adapt to change in example file installation
671
- Remove man pages source files from package
672
- Add bash subpackage
673

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

677 678 679
* 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 已提交
680 681 682
* Tue Dec 19 2017 Cleber Rosa <cleber@redhat.com> - 57.0-0
- New upstream release

683 684 685
* Fri Dec 15 2017 Cleber Rosa <cleber@redhat.com> - 56.0-1
- Added result_upload plugin

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

689 690 691
* Thu Nov 16 2017 Cleber Rosa <cleber@redhat.com> - 55.0-1
- Introduced sub-package plugins-varianter-pict

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

695 696
* Mon Oct 16 2017 Cleber Rosa <cleber@redhat.com> - 54.1-3
- Excluded avocado_loader_yaml files from main package
C
Cleber Rosa 已提交
697
- Package recently introduced golang plugin
698 699 700 701

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

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

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

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

711 712
* Tue Aug 22 2017 Cleber Rosa <cleber@redhat.com> - 53.0-1
- Use variable name for configuration dir
713
- Clean up old changelog entries
C
Cleber Rosa 已提交
714
- Include other example files
715

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

719 720 721
* Mon Aug 14 2017 Cleber Rosa <cleber@redhat.com> - 52.0-2
- Add python[2]-yaml requirements

722 723 724
* Tue Jun 27 2017 Cleber Rosa <cleber@redhat.com> - 52.0-1
- Fix python-aexpect depedency on EL7

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