This commit is contained in:
Jan Grulich 2023-04-21 11:48:25 +02:00 committed by Stepan Oksanichenko
parent 18c950870f
commit 498fb4bb63
5 changed files with 9 additions and 22 deletions

1
.gitignore vendored
View File

@ -1 +1,2 @@
/PyQt5_sip-12.9.1.tar.gz
/PyQt5_sip-12.11.1.tar.gz

View File

@ -0,0 +1 @@
b60d188655fd161762623c39481a1c0bbaa615f2 PyQt5_sip-12.11.1.tar.gz

View File

@ -1,18 +1,17 @@
%global pkg_name pyqt5-sip
%global pypi_name PyQt5_sip
%global _sip_api_major 12
%global _sip_api_minor 9
%global _sip_api_minor 11
%global _sip_api %{_sip_api_major}.%{_sip_api_minor}
Name: python-%{pkg_name}
Version: 12.9.1
Version: 12.11.1
Release: 1%{?dist}
Summary: The sip module support for PyQt5
License: GPLv2 or GPLv3
URL: https://www.riverbankcomputing.com/software/sip/
Source0: %{pypi_source}
Patch0: python3.11.patch
BuildRequires: gcc
BuildRequires: python3-devel
@ -48,6 +47,10 @@ Provides: python3-pyqt5-sip-api(%{_sip_api_major})%{?_isa} = %{_sip_api}
%{python3_sitearch}/PyQt5/
%changelog
* Fri Apr 21 2023 Jan Grulich <jgrulich@redhat.com> - 12.11.1-1
- 12.11.1
Resolves: bz#2188589
* Thu May 26 2022 Jan Grulich <jgrulich@redhat.com> - 12.9.1-1
- Initial package
Resolves: bz#2090327

View File

@ -1,18 +0,0 @@
diff -up PyQt5_sip-12.9.1/siplib.c.py311 PyQt5_sip-12.9.1/siplib.c
--- PyQt5_sip-12.9.1/siplib.c.py311 2022-02-01 08:29:23.000000000 -0500
+++ PyQt5_sip-12.9.1/siplib.c 2022-03-11 20:46:19.056212494 -0500
@@ -12750,7 +12750,14 @@ static struct _frame *sip_api_get_frame(
while (frame != NULL && depth > 0)
{
+#if PY_VERSION_HEX < 0x03090000
frame = frame->f_back;
+#else
+ frame = PyFrame_GetBack(frame);
+
+ /* Historically we return a borrowed reference. */
+ Py_XDECREF(frame);
+#endif
--depth;
}

View File

@ -1 +1 @@
SHA512 (PyQt5_sip-12.9.1.tar.gz) = b8fbb6123d8ddf604dfa4ff5ae17a79b89cfae08f9320fd8cab223c4186350831ee2445ed6d2a1d920146fcfc927f3df00b616f15fd3bfabca3f094f66e142df
SHA512 (PyQt5_sip-12.11.1.tar.gz) = 9a24b6e8356fdb1070672ee37e5f4259d72a75bb60376ad0946274331ae29a6cceb98a6c5a278bf5e8015a3d493c925bacab8593ef02c310ff3773bd3ee46a5d