From 872522d03c3428a604e033ca878ae66e3635b3f7 Mon Sep 17 00:00:00 2001 From: "Benjamin A. Beasley" Date: Wed, 3 May 2023 09:04:48 -0400 Subject: [PATCH] Fix upper-bounded Python interpreter version for ruamel.yaml.clib dependency --- python-ruamel-yaml.spec | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/python-ruamel-yaml.spec b/python-ruamel-yaml.spec index 2378fd8..b403561 100644 --- a/python-ruamel-yaml.spec +++ b/python-ruamel-yaml.spec @@ -29,13 +29,16 @@ BuildRequires: python3-pytest %py_provides python3-ruamel.yaml -Requires: python3-ruamel-yaml-clib Requires: python3-setuptools %description -n python3-ruamel-yaml %{_description} %prep -%autosetup -n ruamel-yaml-code-%{commit} -p1 +%autosetup -n ruamel-yaml-code-%{commit} +# Upstream upper-bounds the Python interpeter versions with which the C +# implementation (ruamel.yaml.clib dependency) may be used. Patch this out. +sed -r -i 's/( and python_version<"[^"]+")(.*ruamel\.yaml\.clib)/\2/' \ + __init__.py rm -rf ruamel.yaml.egg-info %build @@ -59,6 +62,7 @@ rm -rf ruamel.yaml.egg-info - Reduce macro indirection and drop ancient constructs and conditionals - Update description from upstream - Make the package noarch (python-ruamel-yaml-clib contains the compiled code) +- Fix upper-bounded Python interpreter version for ruamel.yaml.clib dependency * Wed May 03 2023 Maxwell G - 0.17.22-1 - Update to 0.17.22. Fixes rhbz#2192464.