未验证 提交 c33fb88e 编写于 作者: C Cleber Rosa

Merge remote-tracking branch 'clebergnu/rpm_python3_prep'

Signed-off-by: NCleber Rosa <crosa@redhat.com>
...@@ -29,7 +29,7 @@ ...@@ -29,7 +29,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: 59.0 Version: 59.0
Release: 0%{?gitrel}%{?dist} Release: 1%{?gitrel}%{?dist}
License: GPLv2 License: GPLv2
Group: Development/Tools Group: Development/Tools
URL: http://avocado-framework.github.io/ URL: http://avocado-framework.github.io/
...@@ -41,26 +41,43 @@ Source0: https://github.com/avocado-framework/%{srcname}/archive/%{commit}.tar.g ...@@ -41,26 +41,43 @@ Source0: https://github.com/avocado-framework/%{srcname}/archive/%{commit}.tar.g
BuildArch: noarch BuildArch: noarch
BuildRequires: fabric BuildRequires: fabric
BuildRequires: procps-ng BuildRequires: procps-ng
BuildRequires: kmod
%if 0%{?rhel} == 7
BuildRequires: pystache BuildRequires: pystache
BuildRequires: python-docutils
BuildRequires: python-lxml BuildRequires: python-lxml
BuildRequires: python-mock
BuildRequires: python-psutil
BuildRequires: python-requests
BuildRequires: python-resultsdb_api
BuildRequires: python-setuptools BuildRequires: python-setuptools
BuildRequires: python-sphinx
BuildRequires: python-six
BuildRequires: python-stevedore BuildRequires: python-stevedore
BuildRequires: python2-aexpect
BuildRequires: python2-devel BuildRequires: python2-devel
BuildRequires: python2-docutils
BuildRequires: python2-mock
BuildRequires: python2-psutil
BuildRequires: python2-requests
BuildRequires: python2-resultsdb_api
BuildRequires: python2-six
BuildRequires: python2-sphinx
BuildRequires: yum BuildRequires: yum
BuildRequires: python-aexpect %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
%if %{with_tests} %if %{with_tests}
BuildRequires: libvirt-python BuildRequires: libvirt-python
BuildRequires: perl-Test-Harness BuildRequires: perl-Test-Harness
%if 0%{?rhel} %if 0%{?rhel}
BuildRequires: python-yaml BuildRequires: PyYAML
%else %else
BuildRequires: python2-yaml BuildRequires: python2-yaml
%endif %endif
...@@ -70,34 +87,16 @@ Requires: gdb ...@@ -70,34 +87,16 @@ Requires: gdb
Requires: gdb-gdbserver Requires: gdb-gdbserver
Requires: procps-ng Requires: procps-ng
Requires: pyliblzma Requires: pyliblzma
%if 0%{?rhel} == 7
Requires: python Requires: python
Requires: python-requests
Requires: python-setuptools Requires: python-setuptools
Requires: python-stevedore Requires: python-stevedore
Requires: python2-requests
# For compatibility reasons, let's mark this package as one that %else
# provides the same functionality as the old package name and also Requires: python2
# one that obsoletes the old package name, so that the new name is Requires: python2-requests
# favored. These could (and should) be removed in the future. Requires: python2-setuptools
# These changes are backed by the following guidelines: Requires: python2-stevedore
# https://fedoraproject.org/wiki/Upgrade_paths_%E2%80%94_renaming_or_splitting_packages
Obsoletes: %{srcname} < 47.0-1
Provides: %{srcname} = %{version}-%{release}
# For some strange reason, fabric on Fedora 24 does not require the
# python-crypto package, but the fabric code always imports it. Newer
# fabric versions, such from Fedora 25 do conditional imports (try:
# from Crypto import Random; except: Random = None) and thus do not
# need this requirement.
%if 0%{?fedora} == 24
BuildRequires: python-crypto
%endif
%if 0%{?fedora} >= 25
BuildRequires: kmod
%endif
%if 0%{?rhel} >= 7
BuildRequires: kmod
%endif %endif
%description %description
...@@ -381,7 +380,7 @@ server. ...@@ -381,7 +380,7 @@ server.
Summary: Avocado plugin to generate variants out of yaml files Summary: Avocado plugin to generate variants out of yaml files
Requires: %{name} == %{version} Requires: %{name} == %{version}
%if 0%{?rhel} %if 0%{?rhel}
Requires: python-yaml Requires: PyYAML
%else %else
Requires: python2-yaml Requires: python2-yaml
%endif %endif
...@@ -486,6 +485,13 @@ Again Shell code (and possibly other similar shells). ...@@ -486,6 +485,13 @@ Again Shell code (and possibly other similar shells).
%{_libexecdir}/avocado* %{_libexecdir}/avocado*
%changelog %changelog
* Thu Mar 8 2018 Cleber Rosa <cleber@redhat.com> - 59.0-1
- Remove backward compatibility with name avocado
- Remove hack to workaround fabric bugs on Fedora 24
- Use real package name for python YAML package on EL
- Use exact package names on requires
- Remove unecessary conditional for kmod
* Wed Feb 28 2018 Cleber Rosa <cleber@redhat.com> - 59.0-0 * Wed Feb 28 2018 Cleber Rosa <cleber@redhat.com> - 59.0-0
- New upstream release - New upstream release
- Added glib plugin subpackage - Added glib plugin subpackage
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册