diff --git a/Fix-typos-in-method-name-string-use-in-errors.patch b/Fix-typos-in-method-name-string-use-in-errors.patch new file mode 100644 index 0000000000000000000000000000000000000000..5f9b98a0ee352025054513b273e7e0f98978f135 --- /dev/null +++ b/Fix-typos-in-method-name-string-use-in-errors.patch @@ -0,0 +1,29 @@ +From bc2decfbd9e9273d17c56ca49f273e794e612a07 Mon Sep 17 00:00:00 2001 +From: Graham Dumpleton +Date: Thu, 6 Jul 2023 17:28:05 +1000 +Subject: [PATCH] Fix typos in method name string use in errors. + +--- + src/wrapt/_wrappers.c | 4 ++-- + 1 file changed, 2 insertions(+), 2 deletions(-) + +diff --git a/src/wrapt/_wrappers.c b/src/wrapt/_wrappers.c +index fe1a7cc..e0e1b5b 100644 +--- a/src/wrapt/_wrappers.c ++++ b/src/wrapt/_wrappers.c +@@ -1146,10 +1146,10 @@ static PyObject *WraptObjectProxy_self_setattr( + PyObject *value = NULL; + + #if PY_MAJOR_VERSION >= 3 +- if (!PyArg_ParseTuple(args, "UO:__self_gsetattr__", &name, &value)) ++ if (!PyArg_ParseTuple(args, "UO:__self_setattr__", &name, &value)) + return NULL; + #else +- if (!PyArg_ParseTuple(args, "SO:___self_setattr__", &name, &value)) ++ if (!PyArg_ParseTuple(args, "SO:__self_setattr__", &name, &value)) + return NULL; + #endif + +-- +2.27.0 + diff --git a/python-wrapt.spec b/python-wrapt.spec index d24bb71f5c6a015ac982032a4fde86e31a943efa..df241110b88d69b5b709dc6b897ae6e86bda986e 100644 --- a/python-wrapt.spec +++ b/python-wrapt.spec @@ -1,11 +1,12 @@ %global _empty_manifest_terminate_build 0 Name: python-wrapt Version: 1.15.0 -Release: 1 +Release: 2 Summary: A Python module for decorators, wrappers and monkey patching License: BSD-2-Clause URL: https://github.com/GrahamDumpleton/wrapt Source0: https://github.com/GrahamDumpleton/wrapt/archive/refs/tags/%{version}.tar.gz +Patch0: Fix-typos-in-method-name-string-use-in-errors.patch %description The aim of the wrapt module is to provide a transparent object proxy for Python, @@ -60,6 +61,9 @@ popd %doc docs/build/html %changelog +* Fri May 10 2024 lilu - 1.15.0-2 +- Fix typos in method name string use in errors + * Tue Apr 04 2023 xu_ping - 1.15.0-1 - Upgrade version to 1.15.0