diff --git a/0001-Fix-PyTuple_SET_ITEM-usage-no-return-value.patch b/0001-Fix-PyTuple_SET_ITEM-usage-no-return-value.patch deleted file mode 100644 index cb2bf75..0000000 --- a/0001-Fix-PyTuple_SET_ITEM-usage-no-return-value.patch +++ /dev/null @@ -1,46 +0,0 @@ -From 5ea2f8709b4d091700750661231f8a3ddce0fc7c Mon Sep 17 00:00:00 2001 -From: Jaroslav Kysela -Date: Thu, 10 Dec 2020 16:00:50 +0100 -Subject: [PATCH] Fix PyTuple_SET_ITEM() usage - no return value - -As noted in bpo-30459 (link bellow) the PyTuple_SET_ITEM() macro -has not a return value. Let's make code compatible with python 3.10. - -Link: https://bugs.python.org/issue30459 -BugLink: https://github.com/alsa-project/alsa-python/issues/2 -Signed-off-by: Jaroslav Kysela ---- - pyalsa/alsahcontrol.c | 4 ++-- - pyalsa/alsamixer.c | 4 ++-- - 2 files changed, 4 insertions(+), 4 deletions(-) - -diff --git a/pyalsa/alsahcontrol.c b/pyalsa/alsahcontrol.c -index ebee1b7..7c9321f 100644 ---- a/pyalsa/alsahcontrol.c -+++ b/pyalsa/alsahcontrol.c -@@ -1543,8 +1543,8 @@ static int element_callback(snd_hctl_elem_t *elem, unsigned int mask) - - t = PyTuple_New(2); - if (t) { -- if (PyTuple_SET_ITEM(t, 0, (PyObject *)pyhelem)) -- Py_INCREF(pyhelem); -+ PyTuple_SET_ITEM(t, 0, (PyObject *)pyhelem); -+ Py_INCREF(pyhelem); - PyTuple_SET_ITEM(t, 1, PyInt_FromLong(mask)); - r = PyObject_CallObject(o, t); - Py_DECREF(t); -diff --git a/pyalsa/alsamixer.c b/pyalsa/alsamixer.c -index 39d7387..91fe198 100644 ---- a/pyalsa/alsamixer.c -+++ b/pyalsa/alsamixer.c -@@ -1348,8 +1348,8 @@ static int element_callback(snd_mixer_elem_t *elem, unsigned int mask) - - t = PyTuple_New(2); - if (t) { -- if (PyTuple_SET_ITEM(t, 0, (PyObject *)pyelem)) -- Py_INCREF(pyelem); -+ PyTuple_SET_ITEM(t, 0, (PyObject *)pyelem); -+ Py_INCREF(pyelem); - PyTuple_SET_ITEM(t, 1, PyInt_FromLong(mask)); - r = PyObject_CallObject(o, t); - Py_DECREF(t); diff --git a/pyalsa-1.1.6.tar.bz2 b/pyalsa-1.1.6.tar.bz2 deleted file mode 100644 index 2beb000..0000000 Binary files a/pyalsa-1.1.6.tar.bz2 and /dev/null differ diff --git a/pyalsa-1.2.7.tar.bz2 b/pyalsa-1.2.7.tar.bz2 new file mode 100644 index 0000000..4d700d7 Binary files /dev/null and b/pyalsa-1.2.7.tar.bz2 differ diff --git a/python-alsa.spec b/python-alsa.spec index 5d3943d..ac19eea 100644 --- a/python-alsa.spec +++ b/python-alsa.spec @@ -1,12 +1,11 @@ Name: python-alsa -Version: 1.1.6 -Release: 4 +Version: 1.2.7 +Release: 1 Summary: Python binding for the ALSA library License: LGPLv2+ URL: http://www.alsa-project.org/ -Source0: ftp://ftp.alsa-project.org/pub/pyalsa/pyalsa-%{version}.tar.bz2 +Source0: http://www.alsa-project.org/files/pub/pyalsa/pyalsa-%{version}.tar.bz2 -Patch1: 0001-Fix-PyTuple_SET_ITEM-usage-no-return-value.patch BuildRequires: alsa-lib-devel >= %{version} gcc %description @@ -34,6 +33,9 @@ Python3 bindings for the ALSA library. %{python3_sitearch}/* %changelog +* Mon Apr 03 2023 yaoxin - 1.2.7-1 +- Update to 1.2.7 + * Mon Jun 27 2022 zhouwenpei - 1.1.6-4 - Fix PyTuple_SET_ITEM() usage no return value