diff --git a/python-sniffio.changes b/python-sniffio.changes index d035c1e..e49f233 100644 --- a/python-sniffio.changes +++ b/python-sniffio.changes @@ -1,3 +1,8 @@ +------------------------------------------------------------------- +Sun Jan 31 13:35:33 UTC 2021 - Benjamin Greiner + +- Fix the contextvars requirement for python36 + ------------------------------------------------------------------- Wed Dec 9 22:59:17 UTC 2020 - Benjamin Greiner diff --git a/python-sniffio.spec b/python-sniffio.spec index a0da5c8..51eb385 100644 --- a/python-sniffio.spec +++ b/python-sniffio.spec @@ -1,7 +1,7 @@ # # spec file for package python-sniffio # -# Copyright (c) 2020 SUSE LLC +# Copyright (c) 2021 SUSE LLC # # All modifications and additions to the file contributed by third parties # remain the property of their copyright owners, unless otherwise agreed @@ -26,11 +26,13 @@ License: MIT OR Apache-2.0 Group: Development/Languages/Python URL: https://github.com/python-trio/sniffio Source: https://github.com/python-trio/sniffio/archive/v%{version}.tar.gz#/sniffio-%{version}.tar.gz -BuildRequires: %{python_module contextvars >= 2.1} +BuildRequires: %{python_module contextvars >= 2.1 if %python-base < 3.7} BuildRequires: %{python_module setuptools} BuildRequires: fdupes -BuildRequires: python-rpm-macros -Suggests: python-contextvars >= 2.1 +BuildRequires: python-rpm-macros >= 20210127.3a18043 +%if 0%{?python_version_nodots} < 37 +Requires: python-contextvars >= 2.1 +%endif BuildArch: noarch # SECTION test requirements BuildRequires: %{python_module curio}