commit 09c1dfe04016f736f85e69dff877ecbeb1f8ec5e
Author: Jan Palus <at...@pld-linux.org>
Date:   Wed Jun 12 01:43:54 2024 +0200

    up to 1.2.12

 python-pyalsa.spec |  6 ++++--
 python2.patch      | 13 +++++++++++++
 2 files changed, 17 insertions(+), 2 deletions(-)
---
diff --git a/python-pyalsa.spec b/python-pyalsa.spec
index 1b6b71e..2368926 100644
--- a/python-pyalsa.spec
+++ b/python-pyalsa.spec
@@ -6,12 +6,13 @@
 Summary:       Python 2 binding for the ALSA library
 Summary(pl.UTF-8):     Wiązanie Pythona 2 do biblioteki ALSA
 Name:          python-pyalsa
-Version:       1.2.7
+Version:       1.2.12
 Release:       1
 License:       LGPL v2.1+
 Group:         Libraries/Python
 Source0:       ftp://ftp.alsa-project.org/pub/pyalsa/pyalsa-%{version}.tar.bz2
-# Source0-md5: e151541423ba889624c5d7664bbe795c
+# Source0-md5: 876957bfc35f68e5cc0d32a563f43807
+Patch0:                python2.patch
 URL:           http://www.alsa-project.org/
 BuildRequires: alsa-lib-devel >= 1.0.29
 %if %{with python2}
@@ -49,6 +50,7 @@ Wiązanie Pythona 3 do biblioteki ALSA.
 
 %prep
 %setup -q -n pyalsa-%{version}
+%patch0 -p1
 
 %build
 %if %{with python2}
diff --git a/python2.patch b/python2.patch
new file mode 100644
index 0000000..877f117
--- /dev/null
+++ b/python2.patch
@@ -0,0 +1,13 @@
+--- pyalsa-1.2.12/pyalsa/common.h.orig 2024-06-10 11:18:38.000000000 +0200
++++ pyalsa-1.2.12/pyalsa/common.h      2024-06-12 01:38:26.683769278 +0200
+@@ -85,8 +85,8 @@
+       } while (0)
+   #define CALLBACK_DONE \
+       do { \
+-              PyThreadState_Swap(origstate); \
+-              PyThreadState_Delete(tstate); \
++              PyThreadState_Swap(__origstate); \
++              PyThreadState_Delete(__tstate); \
+       } while (0)
+ #endif
+ 
================================================================

---- gitweb:

http://git.pld-linux.org/gitweb.cgi/packages/python-pyalsa.git/commitdiff/09c1dfe04016f736f85e69dff877ecbeb1f8ec5e

_______________________________________________
pld-cvs-commit mailing list
pld-cvs-commit@lists.pld-linux.org
http://lists.pld-linux.org/mailman/listinfo/pld-cvs-commit

Reply via email to