commit e7357f544e44e26a5e3f910df45860054988dfb1 Author: Adrian Schröter Date: Thu Oct 19 00:36:35 2023 +0200 Sync from SUSE:ALP:Source:Standard:1.0 python-gssapi revision 7bb3f6b62bce068ea95de39eb2b375a8 diff --git a/.gitattributes b/.gitattributes new file mode 100644 index 0000000..fecc750 --- /dev/null +++ b/.gitattributes @@ -0,0 +1,23 @@ +## Default LFS +*.7z filter=lfs diff=lfs merge=lfs -text +*.bsp filter=lfs diff=lfs merge=lfs -text +*.bz2 filter=lfs diff=lfs merge=lfs -text +*.gem filter=lfs diff=lfs merge=lfs -text +*.gz filter=lfs diff=lfs merge=lfs -text +*.jar filter=lfs diff=lfs merge=lfs -text +*.lz filter=lfs diff=lfs merge=lfs -text +*.lzma filter=lfs diff=lfs merge=lfs -text +*.obscpio filter=lfs diff=lfs merge=lfs -text +*.oxt filter=lfs diff=lfs merge=lfs -text +*.pdf filter=lfs diff=lfs merge=lfs -text +*.png filter=lfs diff=lfs merge=lfs -text +*.rpm filter=lfs diff=lfs merge=lfs -text +*.tbz filter=lfs diff=lfs merge=lfs -text +*.tbz2 filter=lfs diff=lfs merge=lfs -text +*.tgz filter=lfs diff=lfs merge=lfs -text +*.ttf filter=lfs diff=lfs merge=lfs -text +*.txz filter=lfs diff=lfs merge=lfs -text +*.whl filter=lfs diff=lfs merge=lfs -text +*.xz filter=lfs diff=lfs merge=lfs -text +*.zip filter=lfs diff=lfs merge=lfs -text +*.zst filter=lfs diff=lfs merge=lfs -text diff --git a/d9200d1018ac916b30433da23898c8c5fbde0f28.patch b/d9200d1018ac916b30433da23898c8c5fbde0f28.patch new file mode 100644 index 0000000..7805770 --- /dev/null +++ b/d9200d1018ac916b30433da23898c8c5fbde0f28.patch @@ -0,0 +1,53 @@ +From d9200d1018ac916b30433da23898c8c5fbde0f28 Mon Sep 17 00:00:00 2001 +From: Jordan Borean +Date: Tue, 18 Jul 2023 08:57:11 +1000 +Subject: [PATCH] Fix Cython 3 Compatibility + +Fixes compatibility with Cython 3 by fixing up the import so it doesn't +try and do a recursive import. This also increases the upper bound for +Cython to 4.0.0 now that 3.0.0 is compatible. + +Signed-off-by: Jordan Borean +--- + gssapi/raw/_enum_extensions/ext_dce.pyx | 2 +- + pyproject.toml | 2 +- + setup.py | 2 +- + 3 files changed, 3 insertions(+), 3 deletions(-) + +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": +diff --git a/pyproject.toml b/pyproject.toml +index 2f5c208c..5ee26df6 100644 +--- a/pyproject.toml ++++ b/pyproject.toml +@@ -1,6 +1,6 @@ + [build-system] + requires = [ +- "Cython >= 0.29.29, < 3.0.0", # 0.29.29 includes fixes for Python 3.11 ++ "Cython >= 0.29.29, < 4.0.0", # 0.29.29 includes fixes for Python 3.11 + "setuptools >= 40.6.0", # Start of PEP 517 support for setuptools + ] + build-backend = "setuptools.build_meta" +diff --git a/setup.py b/setup.py +index 36c7aafa..881b9f9f 100755 +--- a/setup.py ++++ b/setup.py +@@ -274,7 +274,7 @@ def gssapi_modules(lst): + + setup( + name='gssapi', +- version='1.8.2', ++ version='1.8.3', + author='The Python GSSAPI Team', + author_email='jborean93@gmail.com', + packages=['gssapi', 'gssapi.raw', 'gssapi.raw._enum_extensions', diff --git a/gssapi-1.8.2.tar.gz b/gssapi-1.8.2.tar.gz new file mode 100644 index 0000000..f100f19 --- /dev/null +++ b/gssapi-1.8.2.tar.gz @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:b78e0a021cc91158660e4c5cc9263e07c719346c35a9c0f66725e914b235c89a +size 94305 diff --git a/python-gssapi.changes b/python-gssapi.changes new file mode 100644 index 0000000..d2c6a09 --- /dev/null +++ b/python-gssapi.changes @@ -0,0 +1,125 @@ +------------------------------------------------------------------- +Mon Aug 14 06:41:06 UTC 2023 - Dirk Müller + +- add d9200d1018ac916b30433da23898c8c5fbde0f28.patch to + improve cython 3.x interoperability + +------------------------------------------------------------------- +Fri Apr 21 12:25:54 UTC 2023 - Dirk Müller + +- add sle15_python_module_pythons (jsc#PED-68) + +------------------------------------------------------------------- +Thu Apr 13 22:41:40 UTC 2023 - Matej Cepl + +- Make calling of %{sle15modernpython} optional. + +------------------------------------------------------------------- +Tue Nov 8 16:59:19 UTC 2022 - Yogalakshmi Arunachalam + +- Update to version to 1.8.2 + * Added Python 3.11 wheel - #303 + * Fix up doc link in README + * Use just major version + * Bump GHA actions to latest version + +------------------------------------------------------------------- +Wed Sep 28 23:31:47 UTC 2022 - Yogalakshmi Arunachalam + +- Update to version to 1.8.1 with Python 3.7 requires + * Fix up build problems with latest change + * Change sdist and build to use PEP517 + * Fix up doc references + * More fixes for the release process + +------------------------------------------------------------------- +Sat Sep 17 13:50:48 UTC 2022 - John Vandenberg + +- Move tests out of runtime package +- Enable test suite + +------------------------------------------------------------------- +Tue Feb 22 21:53:06 UTC 2022 - Matej Cepl + +- Update to 1.7.3 + - Fix up sha512sum file generation in the GitHub release asset + - Added Python type annotation to classes and functions +- Update to 1.7.2: + - Fix distutil deprecation on Python 3.10 by using setuptools + instead +- Update to 1.7.0: + - Add Kerberos specific GSS-API Extensions + - Tidy up docs and turn warnings into errors +- Update to 1.6.14: + - Enable specification of krb5-config via environment variable + - Support for GSS_C_CHANNEL_BOUND_FLAG + - Support for docs build with sphinx 4 + - Fix undefined variable in get_all_statuses() + - Add support for str objects in the cred store dict + +------------------------------------------------------------------- +Mon Feb 1 12:46:00 UTC 2021 - Antonio Larrosa + +- Update to 1.6.12: + * Fix GSSAPI detection for macOS Big Sur (#235, #236) + * Clarify how to disable detection (#234) +- Update to 1.6.11: + * Fix build on FreeBSD (#232, #228) + * On FreeBSD, prefer GSSAPI from ports if available (#232) + * Support python >= 3.8 in test suite by dropping dependency on + should_be (#215, #229) + * Fix malformed S4U tests (#220, #229) +- Update to 1.6.10: + * Provide python 3.9 Windows wheels (#226, #227) + * Fix shlex.split on Windows (#223) + * Removed six package and other older py cleanup values + (#221, #222) +- Update to 1.6.9: + * Raise exception on unknown usage (#202, #203) + * Update tutorial to make server_name equal FQDN (#209) + * Handle missing locale.LC_MESSAGES on Windows (#211) +- Update to 1.6.5: + * There were no releases between 1.6.5 and 1.6.9 due to release + pipeline issues with Github Actions. + * Fix python_requires so that python-3.5 users hopefully + don't get a version they can't use (#199, #198) +- Update to 1.6.4: + * There was no v1.6.3 due to an incompatible sphinx extension + change. + * Fix missing substitution in inquire_property (#195, #196) + * Fix DLL handling on Windows with workarounds (#193, #194, #197) + +------------------------------------------------------------------- +Mon Mar 16 10:36:51 UTC 2020 - Tomáš Chvátal + +- Fix build without python2 + +------------------------------------------------------------------- +Wed Mar 4 11:32:53 UTC 2020 - Ondřej Súkup + +- update to 1.6.2 + * docu update + +------------------------------------------------------------------- +Tue Aug 13 12:49:42 UTC 2019 - Ondřej Súkup + +- update to 1.6.1 + * GSSAPI extension rfc4178 (set_neg_mechs) support + * Expose mechanisms in the high-level API + +------------------------------------------------------------------- +Wed Aug 7 14:23:45 UTC 2019 - Ondřej Súkup + +- update to 1.6.0 + * no upstream changelog + +------------------------------------------------------------------- +Fri May 10 09:50:34 UTC 2019 - pgajdos@suse.com + +- version update to 1.5.1 + * Remove warning about collections.abc usage for Python 3.7+ (#154) + +------------------------------------------------------------------- +Mon May 7 15:54:57 UTC 2018 - mimi.vx@gmail.com + +- initial package diff --git a/python-gssapi.spec b/python-gssapi.spec new file mode 100644 index 0000000..ab87512 --- /dev/null +++ b/python-gssapi.spec @@ -0,0 +1,74 @@ +# +# spec file for package python-gssapi +# +# Copyright (c) 2023 SUSE LLC +# +# All modifications and additions to the file contributed by third parties +# remain the property of their copyright owners, unless otherwise agreed +# upon. The license for this file, and modifications and additions to the +# file, is the same license as for the pristine package itself (unless the +# license for the pristine package is not an Open Source License, in which +# case the license is the MIT License). An "Open Source License" is a +# license that conforms to the Open Source Definition (Version 1.9) +# published by the Open Source Initiative. + +# Please submit bugfixes or comments via https://bugs.opensuse.org/ +# + + +%{?!python_module:%define python_module() python-%{**} python3-%{**}} +%define skip_python2 1 +%{?sle15_python_module_pythons} +Name: python-gssapi +Version: 1.8.2 +Release: 0 +Summary: A Python interface to RFC 2743/2744 (plus common extensions) +License: ISC +URL: https://github.com/pythongssapi/python-gssapi +Source: https://files.pythonhosted.org/packages/source/g/gssapi/gssapi-%{version}.tar.gz +Patch1: https://github.com/pythongssapi/python-gssapi/commit/d9200d1018ac916b30433da23898c8c5fbde0f28.patch +BuildRequires: %{python_module Cython} +BuildRequires: %{python_module decorator} +BuildRequires: %{python_module devel} +BuildRequires: %{python_module k5test} +BuildRequires: %{python_module parameterized} +BuildRequires: %{python_module pip} +BuildRequires: %{python_module pytest} +BuildRequires: %{python_module setuptools} +BuildRequires: %{python_module wheel} +BuildRequires: fdupes +BuildRequires: krb5-devel +BuildRequires: python-rpm-macros +Requires: python-decorator +%python_subpackages + +%description +Python-GSSAPI provides both low-level and high level wrappers around the GSSAPI +C libraries. While it focuses on the Kerberos mechanism, it should also be +usable with other GSSAPI mechanisms. + +%prep +%autosetup -p1 -n gssapi-%{version} +sed -i "s/'gssapi.tests'//" setup.py + +mv gssapi/tests . + +%build +export CFLAGS="%{optflags} -DHAS_GSSAPI_EXT_H -fno-strict-aliasing" +%pyproject_wheel + +%install +%pyproject_install +%python_expand %fdupes %{buildroot}%{$python_sitearch} + +%check +mv gssapi gssapi_temp +%pytest_arch tests +mv gssapi_temp gssapi + +%files %{python_files} +%{python_sitearch}/gssapi* +%doc README.rst +%license LICENSE.txt + +%changelog