diff --git a/aodhclient_pyparsing.patch b/aodhclient_pyparsing.patch new file mode 100644 index 0000000000000000000000000000000000000000..1782f12e6dede6c3c02af4e539c49d2c3f14060a --- /dev/null +++ b/aodhclient_pyparsing.patch @@ -0,0 +1,13 @@ +diff --git a/aodhclient/utils.py b/aodhclient/utils.py +index 8d2fd55..7384326 100644 +--- a/aodhclient/utils.py ++++ b/aodhclient/utils.py +@@ -40,7 +40,7 @@ comparison_term << (null | boolean | uuid | identifier | number | + quoted_string) + condition = pp.Group(comparison_term + operator + comparison_term) + +-expr = pp.operatorPrecedence(condition, [ ++expr = pp.infixNotation(condition, [ + ("not", 1, pp.opAssoc.RIGHT, ), + ("and", 2, pp.opAssoc.LEFT, ), + ("or", 2, pp.opAssoc.LEFT, ), diff --git a/python-aodhclient.spec b/python-aodhclient.spec index 9bcaa707f5120f361f92ac0d196e6a84fde34f75..948e13e2a0be9b99bc2b3bb91d2b52c3d5aaff73 100644 --- a/python-aodhclient.spec +++ b/python-aodhclient.spec @@ -1,12 +1,13 @@ %global _empty_manifest_terminate_build 0 Name: python-aodhclient Version: 1.3.0 -Release: 1 +Release: 2 Summary: Python client library for Aodh License: Apache-2.0 URL: https://docs.openstack.org/python-aodhclient/latest/ Source0: https://files.pythonhosted.org/packages/a0/9c/f70e5760cbf7cf574f80137b75a67ac89613d2d055d26b44ba0cbd89243a/aodhclient-1.3.0.tar.gz BuildArch: noarch +Patch01: aodhclient_pyparsing.patch %description Python client library for Aodh. @@ -66,7 +67,7 @@ Provides: python3-aodhclient-doc Python client library for Aodh. %prep -%autosetup -n aodhclient-%{version} +%autosetup -n aodhclient-%{version} -p1 %build %py3_build @@ -108,6 +109,9 @@ mv %{buildroot}/doclist.lst . %{_docdir}/* %changelog +* Thu Nov 30 2023 zhengting - 1.3.0-2 +- Fix depracted attribute + * Mon Nov 15 2021 OpenStack_SIG - 1.3.0-1 - Downgrade the version to 1.3.0, because of the dependency of openstack