From de59afa749d4d9baacd4c261666f86c905e8a21458d0c43d2e1d9e0fbfea99aa Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Mark=C3=A9ta=20Machov=C3=A1?= Date: Wed, 7 Jul 2021 09:59:54 +0000 Subject: [PATCH] Accepting request 904566 from M17N:l10n.opensuse.org:Django-3.2 - Adjust requirements to work also on Leap OBS-URL: https://build.opensuse.org/request/show/904566 OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-asgiref?expand=0&rev=10 --- python-asgiref.changes | 5 +++++ python-asgiref.spec | 8 ++++++-- 2 files changed, 11 insertions(+), 2 deletions(-) diff --git a/python-asgiref.changes b/python-asgiref.changes index 5384ad3..a161d9c 100644 --- a/python-asgiref.changes +++ b/python-asgiref.changes @@ -1,3 +1,8 @@ +------------------------------------------------------------------- +Wed Jul 7 09:46:52 UTC 2021 - Markéta Machová + +- Adjust requirements to work also on Leap + ------------------------------------------------------------------- Wed May 5 17:30:59 UTC 2021 - Ben Greiner diff --git a/python-asgiref.spec b/python-asgiref.spec index 1fa6d6f..018525f 100644 --- a/python-asgiref.spec +++ b/python-asgiref.spec @@ -29,13 +29,17 @@ BuildRequires: %{python_module base >= 3.6} BuildRequires: %{python_module pytest-asyncio} BuildRequires: %{python_module pytest} BuildRequires: %{python_module setuptools} -BuildRequires: %{python_module typing_extensions if %python-base < 3.8} BuildRequires: fdupes BuildRequires: python-rpm-macros +BuildArch: noarch +%if %{?suse_version} < 1540 +BuildRequires: %{python_module typing_extensions} +%else +BuildRequires: %{python_module typing_extensions if %python-base < 3.8} +%endif %if 0%{python_version_nodots} < 38 Requires: python-typing_extensions %endif -BuildArch: noarch %python_subpackages %description