diff --git a/python-ncclient.changes b/python-ncclient.changes index 8664a4f..589247d 100644 --- a/python-ncclient.changes +++ b/python-ncclient.changes @@ -1,3 +1,8 @@ +------------------------------------------------------------------- +Tue Jan 11 20:42:01 UTC 2022 - Ben Greiner + +- python-selectors2 is only required for python <= 3.4 + ------------------------------------------------------------------- Thu Oct 7 01:52:08 UTC 2021 - Steve Kowalik diff --git a/python-ncclient.spec b/python-ncclient.spec index 72c4ef8..07c1435 100644 --- a/python-ncclient.spec +++ b/python-ncclient.spec @@ -17,13 +17,14 @@ %{?!python_module:%define python_module() python-%{**} python3-%{**}} +%bcond_without python2 Name: python-ncclient Version: 0.6.12 Release: 0 Summary: Python library for NETCONF clients License: Apache-2.0 Group: Development/Languages/Python -URL: http://ncclient.org +URL: https://ncclient.readthedocs.io/en/latest/ Source: https://github.com/ncclient/ncclient/archive/v%{version}.tar.gz#/ncclient-%{version}.tar.gz # PATCH-FIX-OPENSUSE allow_old_sphinx.patch mcepl@suse.com # Allow build with old Sphinx (< 2.0) on Leap @@ -33,7 +34,7 @@ BuildRequires: fdupes BuildRequires: python-rpm-macros Requires: python-lxml >= 3.3.0 Requires: python-paramiko >= 1.15.0 -%ifpython2 +%if 0%{?python_version_nodots} <= 34 Requires: python-selectors2 >= 2.0.1 %endif Requires: python-setuptools > 0.6 @@ -43,7 +44,12 @@ BuildRequires: %{python_module lxml >= 3.3.0} BuildRequires: %{python_module mock} BuildRequires: %{python_module paramiko >= 1.15.0} BuildRequires: %{python_module pytest} -BuildRequires: %{python_module selectors2} +%if %{with python2} +BuildRequires: python2-selectors2 >= 2.0.1 +%endif +%if 0%{?python3_version_nodots} <= 34 +BuildRequires: python3-selectors2 >= 2.0.1 +%endif BuildRequires: %{python_module six} %python_subpackages