From d00d21d2142ee481098d5a0ea5f11ce3e2815fd7 Mon Sep 17 00:00:00 2001 From: Accessac Date: Wed, 17 Apr 2024 20:10:44 +0800 Subject: [PATCH] Use the %{python3_version} macro instead of '?.?' to adapt to Python3.11 (cherry picked from commit 2a2a1e98ead9fa1a4911845b882ff752640520b4) --- python-ruamel-yaml.spec | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) diff --git a/python-ruamel-yaml.spec b/python-ruamel-yaml.spec index 74b4221..1c55482 100644 --- a/python-ruamel-yaml.spec +++ b/python-ruamel-yaml.spec @@ -5,7 +5,7 @@ Name: python-%{pname} Version: 0.17.7 -Release: 2 +Release: 3 Summary: YAML 1.2 loader/dumper package for Python License: MIT URL: https://bitbucket.org/ruamel/yaml @@ -45,14 +45,17 @@ It is a derivative of Kirill Simonov’s PyYAML 3.11 %files -n python3-%{pname} %license LICENSE %{python3_sitelib}/ruamel -%{python3_sitelib}/%{pypi_name}-%{version}-py?.?-*.pth -%{python3_sitelib}/%{pypi_name}-%{version}-py?.?.egg-info +%{python3_sitelib}/%{pypi_name}-%{version}-py%{python3_version}-*.pth +%{python3_sitelib}/%{pypi_name}-%{version}-py%{python3_version}.egg-info %files help %defattr(-,root,root) %doc README.rst %changelog +* Wed Apr 17 2024 OpenStack_SIG - 0.17.7-3 +- Use the %{python3_version} macro instead of '?.?' to adapt to Python3.11 + * Thu Jun 01 2023 Han Guangyu - 0.17.7-2 - Provide python3-ruamel-yaml - Remove unused BuildRequires: python3-ruamel-yaml-clib -- Gitee