diff --git a/.gitignore b/.gitignore index d6c6804..68afb41 100644 --- a/.gitignore +++ b/.gitignore @@ -4,3 +4,4 @@ pyalsa-1.0.22.tar.bz2 /pyalsa-1.0.26.tar.bz2 /pyalsa-1.0.29.tar.bz2 /pyalsa-1.1.6.tar.bz2 +/pyalsa-1.2.6.tar.bz2 diff --git a/5ea2f8709b4d091700750661231f8a3ddce0fc7c.patch b/5ea2f8709b4d091700750661231f8a3ddce0fc7c.patch deleted file mode 100644 index cb2bf75..0000000 --- a/5ea2f8709b4d091700750661231f8a3ddce0fc7c.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/python-alsa.spec b/python-alsa.spec index f093533..f88573f 100644 --- a/python-alsa.spec +++ b/python-alsa.spec @@ -1,19 +1,17 @@ -%define baseversion 1.1.6 +%define baseversion 1.2.6 Summary: Python binding for the ALSA library Name: python-alsa Version: %{baseversion} -Release: 17%{?dist} +Release: 1%{?dist} License: LGPLv2+ Source0: ftp://ftp.alsa-project.org/pub/pyalsa/pyalsa-%{version}.tar.bz2 URL: http://www.alsa-project.org/ BuildRequires: alsa-lib-devel >= %{version} BuildRequires: python3-devel -BuildRequires: python3-setuptools +BuildRequires: python3-setuptools BuildRequires: gcc -Patch0: 5ea2f8709b4d091700750661231f8a3ddce0fc7c.patch - # Filter private shared library provides %global __provides_exclude_from ^(%{python2_sitearch}|%{python3_sitearch})/.*\\.so$ @@ -41,6 +39,9 @@ Summary: %summary %{python3_sitearch}/* %changelog +* Mon Dec 06 2021 Jaroslav Kysela - 1.2.6-1 +- Updated to 1.2.6 + * Fri Jul 23 2021 Fedora Release Engineering - 1.1.6-17 - Rebuilt for https://fedoraproject.org/wiki/Fedora_35_Mass_Rebuild diff --git a/sources b/sources index 0c86466..03fcec6 100644 --- a/sources +++ b/sources @@ -1 +1 @@ -SHA512 (pyalsa-1.1.6.tar.bz2) = 6c6aee1ad32c2208ab3f91defee5651cca8bb414479ff80e8a1bd6791ec1df2218a61dd8e7c01f95bd5d51807776034ff96cca2b935e9e4e23d13b6c3c40a0dd +SHA512 (pyalsa-1.2.6.tar.bz2) = 11b8eed822e0f8acc96ff0e10eeec0ba26b2997c7a0000b1d82561661f59931cd6b6aa6397b46c5944a0853344517878ede6c9ba13bea241cefc72b72bf1d9ff