From c739065304d6994251df58d16741e6ac6221103f Mon Sep 17 00:00:00 2001 From: Accessac Date: Wed, 17 Apr 2024 20:13:36 +0800 Subject: [PATCH] Use the %{python3_version} macro instead of '?.?' to adapt to Python3.11 (cherry picked from commit 2edd5d08b445930a5c35bec4e455bafa2cafcfeb) --- python-os-resource-classes.spec | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/python-os-resource-classes.spec b/python-os-resource-classes.spec index 4043981..476638a 100644 --- a/python-os-resource-classes.spec +++ b/python-os-resource-classes.spec @@ -4,7 +4,7 @@ Name: python-os-resource-classes Version: 1.0.0 -Release: 1%{?dist} +Release: 2%{?dist} Summary: A library containing standardized resource class names in the Placement service. License: Apache-2.0 URL: https://opendev.org/openstack/os-resource-classes @@ -85,7 +85,7 @@ rm -rf doc/build/html/.{doctrees,buildinfo} %license LICENSE %doc README.rst %{python3_sitelib}/os_resource_classes -%{python3_sitelib}/os_resource_classes-1.0.0-py?.?.egg-info +%{python3_sitelib}/os_resource_classes-1.0.0-py%{python3_version}.egg-info %exclude %{python3_sitelib}/os_resource_classes/tests %files -n python3-os-resource-classes-tests @@ -93,6 +93,9 @@ rm -rf doc/build/html/.{doctrees,buildinfo} %changelog +* Wed Apr 17 2024 OpenStack_SIG - 1.0.0-2 +- Use the %{python3_version} macro instead of '?.?' to adapt to Python3.11 + * Tue Jan 12 2021 zhangy 2021.1.12 - Update to 2021.1.12 -- Gitee