From d1c83c1bba7b378448d90d9083dcf1f2dd71e395 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Miro=20Hron=C4=8Dok?= Date: Mon, 3 Jul 2023 13:37:53 +0200 Subject: [PATCH] Disable the [curio] extra --- python-dns.spec | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/python-dns.spec b/python-dns.spec index f5c61aa..3f5923d 100644 --- a/python-dns.spec +++ b/python-dns.spec @@ -1,13 +1,13 @@ %global pypi_name dnspython %global rctag %{nil} +# curio is discontinued upstream and not ready for Python 3.12 +%bcond_with curio %if 0%{?rhel} %bcond_with trio -%bcond_with curio %bcond_with doh %else %bcond_without trio -%bcond_without curio %bcond_without doh %endif @@ -41,6 +41,9 @@ manipulation of DNS zones, messages, names, and records. %description %_description %package -n python3-dns Summary: %{summary} +%if %{without curio} && ! 0%{?rhel} +Obsoletes: python3-dns+curio < 2.3.0-6 +%endif %description -n python3-dns %_description