Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
openeuler
avocado
提交
dfcdc8b6
A
avocado
项目概览
openeuler
/
avocado
通知
0
Star
0
Fork
0
代码
文件
提交
分支
Tags
贡献者
分支图
Diff
Issue
0
列表
看板
标记
里程碑
合并请求
0
Wiki
0
Wiki
分析
仓库
DevOps
项目成员
Pages
A
avocado
项目概览
项目概览
详情
发布
仓库
仓库
文件
提交
分支
标签
贡献者
分支图
比较
Issue
0
Issue
0
列表
看板
标记
里程碑
合并请求
0
合并请求
0
Pages
分析
分析
仓库分析
DevOps
Wiki
0
Wiki
成员
成员
收起侧边栏
关闭侧边栏
动态
分支图
创建新Issue
提交
Issue看板
体验新版 GitCode,发现更多精彩内容 >>
未验证
提交
dfcdc8b6
编写于
4月 03, 2017
作者:
A
Amador Pahim
浏览文件
操作
浏览文件
下载
差异文件
Merge branch 'clebergnu-spec_downstream_sync_2nd_batch'
Signed-off-by:
N
Amador Pahim
<
apahim@redhat.com
>
上级
f3a19b0b
ccad44c7
变更
1
隐藏空白更改
内联
并排
Showing
1 changed file
with
74 addition
and
21 deletion
+74
-21
python-avocado.spec
python-avocado.spec
+74
-21
未找到文件。
python-avocado.spec
浏览文件 @
dfcdc8b6
...
...
@@ -4,17 +4,51 @@
%endif
%global shortcommit %(c=%{commit}; echo ${c:0:7})
# selftests are provided but may need to skipped because many of
# functional tests are time and resource sensitive and can
# cause race conditions and random build failures. they are
# enabled by default.
%global with_tests 1
Summary: Framework with tools and libraries for Automated Testing
Name: python-%{srcname}
Version: 47.0
Release:
1
%{?dist}
Release:
2
%{?dist}
License: GPLv2
Group: Development/Tools
URL: http://avocado-framework.github.io/
Source0: https://github.com/avocado-framework/%{srcname}/archive/%{commit}/%{srcname}-%{version}-%{shortcommit}.tar.gz
BuildArch: noarch
Requires: python, python-requests, python-setuptools, pyliblzma, gdb, gdb-gdbserver, python-stevedore, python-yaml, procps-ng
BuildRequires: python2-devel, python-setuptools, python-docutils, python-mock, python-psutil, python-sphinx, python-requests, pystache, yum, python-stevedore, python-lxml, perl-Test-Harness, fabric, python-flexmock, libvirt-python, python-yaml, procps-ng
BuildRequires: fabric
BuildRequires: procps-ng
BuildRequires: pystache
BuildRequires: python-docutils
BuildRequires: python-flexmock
BuildRequires: python-lxml
BuildRequires: python-mock
BuildRequires: python-psutil
BuildRequires: python-requests
BuildRequires: python-setuptools
BuildRequires: python-sphinx
BuildRequires: python-stevedore
BuildRequires: python-yaml
BuildRequires: python2-devel
BuildRequires: yum
%if %{with_tests}
BuildRequires: libvirt-python
BuildRequires: perl-Test-Harness
%endif
Requires: gdb
Requires: gdb-gdbserver
Requires: procps-ng
Requires: pyliblzma
Requires: python
Requires: python-requests
Requires: python-setuptools
Requires: python-stevedore
Requires: python-yaml
%if 0%{?fedora}
BuildRequires: python-aexpect
%else
...
...
@@ -59,44 +93,55 @@ sed -e "s/'libvirt-python'//" -i optional_plugins/runner_vm/setup.py
%build
%{__python} setup.py build
c
d optional_plugins/html
push
d optional_plugins/html
%{__python} setup.py build
cd ../runner_remote
popd
pushd optional_plugins/runner_remote
%{__python} setup.py build
cd ../runner_vm
popd
pushd optional_plugins/runner_vm
%{__python} setup.py build
cd ../runner_docker
popd
pushd optional_plugins/runner_docker
%{__python} setup.py build
cd ../../
popd
%{__make} man
%install
%{__python} setup.py install --root %{buildroot} --skip-build
c
d optional_plugins/html
push
d optional_plugins/html
%{__python} setup.py install --root %{buildroot} --skip-build
cd ../runner_remote
popd
pushd optional_plugins/runner_remote
%{__python} setup.py install --root %{buildroot} --skip-build
cd ../runner_vm
popd
pushd optional_plugins/runner_vm
%{__python} setup.py install --root %{buildroot} --skip-build
cd ../runner_docker
popd
pushd optional_plugins/runner_docker
%{__python} setup.py install --root %{buildroot} --skip-build
cd ../../
popd
%{__mkdir} -p %{buildroot}%{_mandir}/man1
%{__install} -m 0644 man/avocado.1 %{buildroot}%{_mandir}/man1/avocado.1
%{__install} -m 0644 man/avocado-rest-client.1 %{buildroot}%{_mandir}/man1/avocado-rest-client.1
%check
%if %{with_tests}
%{__python} setup.py develop --user
c
d optional_plugins/html
push
d optional_plugins/html
%{__python} setup.py develop --user
cd ../runner_remote
popd
pushd optional_plugins/runner_remote
%{__python} setup.py develop --user
cd ../runner_vm
popd
pushd optional_plugins/runner_vm
%{__python} setup.py develop --user
cd ../runner_docker
popd
pushd optional_plugins/runner_docker
%{__python} setup.py develop --user
cd ../../
popd
selftests/run
%endif
%files
%defattr(-,root,root,-)
...
...
@@ -147,7 +192,8 @@ arbitrary filesystem location.
%package plugins-runner-remote
Summary: Avocado Runner for Remote Execution
Requires: %{name} == %{version}, fabric
Requires: %{name} == %{version}
Requires: fabric
%if 0%{?fedora} == 24
Requires: python-crypto
BuildRequires: python-crypto
...
...
@@ -164,7 +210,8 @@ connection. Avocado must be previously installed on the remote machine.
%package plugins-runner-vm
Summary: Avocado Runner for libvirt VM Execution
Requires: %{name} == %{version}, %{name}-plugins-runner-remote == %{version}
Requires: %{name} == %{version}
Requires: %{name}-plugins-runner-remote == %{version}
Requires: libvirt-python
Obsoletes: %{srcname}-plugins-runner-vm < 47.0-1
Provides: %{srcname}-plugins-runner-vm = %{version}-%{release}
...
...
@@ -179,7 +226,8 @@ itself. Avocado must be previously installed on the VM.
%package plugins-runner-docker
Summary: Avocado Runner for Execution on Docker Containers
Requires: %{name} == %{version}, %{name}-plugins-runner-remote == %{version}
Requires: %{name} == %{version}
Requires: %{name}-plugins-runner-remote == %{version}
%if 0%{?fedora}
Requires: python-aexpect
%else
...
...
@@ -211,6 +259,11 @@ examples of how to write tests on your own.
%{_datadir}/avocado/wrappers
%changelog
* Fri Mar 31 2017 Cleber Rosa <cleber@redhat.com> - 47.0-2
- Switch directory change statements to match downstream
- Change requirements style to one per line
- Add conditional execution of selftests
* Wed Mar 8 2017 Cleber Rosa <cleber@redhat.com> - 47.0-1
- Rename package to python-avocado and subpackges accordingly
...
...
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录