提交 5b03c82e 编写于 作者: C Cleber Rosa

SPEC: put all requirements in the versioned sub-packages

As it has been done with python-avocado-common in 18d21873,
the requirements should really be in the versioned sub-packages.
Signed-off-by: NCleber Rosa <crosa@redhat.com>
上级 95bcd56d
...@@ -35,7 +35,7 @@ ...@@ -35,7 +35,7 @@
Summary: Framework with tools and libraries for Automated Testing Summary: Framework with tools and libraries for Automated Testing
Name: python-%{srcname} Name: python-%{srcname}
Version: 60.0 Version: 60.0
Release: 1%{?gitrel}%{?dist} Release: 2%{?gitrel}%{?dist}
License: GPLv2 License: GPLv2
Group: Development/Tools Group: Development/Tools
URL: http://avocado-framework.github.io/ URL: http://avocado-framework.github.io/
...@@ -106,6 +106,13 @@ BuildRequires: python3-yaml ...@@ -106,6 +106,13 @@ BuildRequires: python3-yaml
%endif %endif
%endif %endif
%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}
Requires: gdb Requires: gdb
Requires: gdb-gdbserver Requires: gdb-gdbserver
Requires: procps-ng Requires: procps-ng
...@@ -121,14 +128,6 @@ Requires: python2-requests ...@@ -121,14 +128,6 @@ Requires: python2-requests
Requires: python2-setuptools Requires: python2-setuptools
Requires: python2-stevedore Requires: python2-stevedore
%endif %endif
%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}
%{?python_provide:%python_provide python2-%{srcname}} %{?python_provide:%python_provide python2-%{srcname}}
%description -n python2-%{srcname} %description -n python2-%{srcname}
...@@ -138,12 +137,16 @@ these days a framework) to perform automated testing. ...@@ -138,12 +137,16 @@ these days a framework) to perform automated testing.
%if %{with_python3} %if %{with_python3}
%package -n python3-%{srcname} %package -n python3-%{srcname}
Summary: %{summary} Summary: %{summary}
Requires: %{name}-common == %{version}
Requires: gdb
Requires: gdb-gdbserver
Requires: procps-ng
Requires: pyliblzma
Requires: python3 Requires: python3
Requires: python3-requests Requires: python3-requests
Requires: python3-setuptools Requires: python3-setuptools
Requires: python3-six Requires: python3-six
Requires: python3-stevedore Requires: python3-stevedore
Requires: %{name}-common == %{version}
%description -n python3-%{srcname} %description -n python3-%{srcname}
Avocado is a set of tools and libraries (what people call Avocado is a set of tools and libraries (what people call
...@@ -749,6 +752,9 @@ Again Shell code (and possibly other similar shells). ...@@ -749,6 +752,9 @@ Again Shell code (and possibly other similar shells).
%{_libexecdir}/avocado* %{_libexecdir}/avocado*
%changelog %changelog
* Wed Apr 4 2018 Cleber Rosa <cleber@redhat.com> - 60.0-2
- Moved all requirements to python2-avocado and python3-avocado
* Wed Mar 28 2018 Cleber Rosa <cleber@redhat.com> - 60.0-1 * Wed Mar 28 2018 Cleber Rosa <cleber@redhat.com> - 60.0-1
- Moved "common" dep into python2-avocado and python3-avocado - Moved "common" dep into python2-avocado and python3-avocado
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册