diff --git a/0001-downsteam-Fix-build-config-for-setuptools-69.patch b/0001-downsteam-Fix-build-config-for-setuptools-69.patch new file mode 100644 index 0000000000000000000000000000000000000000..6b8c3fd8155ef5c86e431eee23cf8a6b1c9f97b3 --- /dev/null +++ b/0001-downsteam-Fix-build-config-for-setuptools-69.patch @@ -0,0 +1,42 @@ +From 7e82d2fee28d4179ea898b88e0479e4eff0c3d77 Mon Sep 17 00:00:00 2001 +From: Julien Rische +Date: Thu, 13 Nov 2025 14:34:22 +0100 +Subject: [PATCH] [downsteam] Fix build config for setuptools 69 + +setuptools v69 (current version on c9s) does not support the +"project.license" attribute. Classifiers must be used instead. +--- + pyproject.toml | 4 ++-- + 1 file changed, 2 insertions(+), 2 deletions(-) + +diff --git a/pyproject.toml b/pyproject.toml +index d72e47f..8b17974 100644 +--- a/pyproject.toml ++++ b/pyproject.toml +@@ -1,6 +1,6 @@ + [build-system] + requires = [ +- "setuptools >= 77.0.0", # Support for SPDX license expressions ++ "setuptools >= 69.0.0", + ] + build-backend = "setuptools.build_meta" + +@@ -9,7 +9,6 @@ name = "requests-gssapi" + description = "A GSSAPI authentication handler for python-requests" + readme = "README.rst" + requires-python = ">=3.8" +-license = "ISC" + authors = [ + { name = "Robbie Harwood", email = "rharwood@redhat.com" }, + { name = "Ian Cordasco" }, +@@ -18,6 +17,7 @@ authors = [ + ] + keywords = ["gssapi", "requests", "auth"] + classifiers = [ ++ "License :: OSI Approved :: ISC License (ISCL)", + "Programming Language :: Python :: 3", + "Programming Language :: Python :: 3.8", + "Programming Language :: Python :: 3.9", +-- +2.51.1 + diff --git a/python-requests-gssapi.spec b/python-requests-gssapi.spec index 68f6eab316bdc0a5a198e1034abd4be89672fcd6..140e6ed7e9e45f8f972c328295708c7699e872a1 100644 --- a/python-requests-gssapi.spec +++ b/python-requests-gssapi.spec @@ -1,15 +1,17 @@ -%define anolis_release 2 +ExclusiveArch: aarch64 +%define anolis_release 1 %global sname requests-gssapi %global s_name requests_gssapi Name: python-%{sname} -Version: 1.2.3 +Version: 1.4.0 Release: %{anolis_release}%{?dist} Summary: A GSSAPI/SPNEGO authentication handler for python-requests License: ISC URL: https://github.com/pythongssapi/%{sname} Source0: https://github.com/pythongssapi/%{sname}/releases/download/v%{version}/%{sname}-%{version}.tar.gz +Patch1: 0001-downsteam-Fix-build-config-for-setuptools-69.patch BuildArch: noarch @@ -62,6 +64,11 @@ doc files for python3-%{sname} %doc README.rst AUTHORS HISTORY.rst %changelog +* Wed Jan 14 2026 wenjie2025 - 1.4.0-1 +- Sync upstream changes from commit 1f631f4febc4d5c37359a74989a2ed32c0387833 +- Updated to version 1.4.0 +- Added patch to fix build config for setuptools 69 + * Fri Mar 15 2024 Zhao Hang - 1.2.3-2 - Rebuild with python3.11