Fix build with Cython 3

This upstream commit should be included with 1.8.3.
This commit is contained in:
Yaakov Selkowitz 2023-07-26 14:38:18 -04:00
parent 8f7c1b6912
commit 4f8977b956
2 changed files with 16 additions and 0 deletions

14
cython3.patch Normal file
View File

@ -0,0 +1,14 @@
Backport of https://github.com/pythongssapi/python-gssapi/pull/321
diff --git a/gssapi/raw/_enum_extensions/ext_dce.pyx b/gssapi/raw/_enum_extensions/ext_dce.pyx
index fd2989ae..190c8285 100644
--- a/gssapi/raw/_enum_extensions/ext_dce.pyx
+++ b/gssapi/raw/_enum_extensions/ext_dce.pyx
@@ -1,6 +1,6 @@
from gssapi.raw.cython_types cimport OM_uint32
-import gssapi.raw._enum_extensions as ext_registry
+from gssapi.raw import _enum_extensions as ext_registry
cdef extern from "python_gssapi_ext.h":

View File

@ -8,6 +8,8 @@ Summary: Python Bindings for GSSAPI (RFC 2743/2744 and extensions)
License: ISC License: ISC
URL: https://github.com/pythongssapi/python-gssapi URL: https://github.com/pythongssapi/python-gssapi
Source0: https://github.com/pythongssapi/%{name}/releases/download/v%{version}/%{name}-%{version}.tar.gz Source0: https://github.com/pythongssapi/%{name}/releases/download/v%{version}/%{name}-%{version}.tar.gz
# https://github.com/pythongssapi/python-gssapi/pull/321
Patch0: cython3.patch
BuildRequires: krb5-devel >= 1.19 BuildRequires: krb5-devel >= 1.19
BuildRequires: gcc BuildRequires: gcc