From 1f631f4febc4d5c37359a74989a2ed32c0387833 Mon Sep 17 00:00:00 2001 From: Julien Rische Date: Thu, 13 Nov 2025 14:51:34 +0100 Subject: [PATCH] python-requests-gssapi-1.4.0-1 - New upstream release (1.4.0) Resolves: RHEL-103408 Signed-off-by: Julien Rische --- .gitignore | 1 + ...m-Fix-build-config-for-setuptools-69.patch | 42 +++++++++++++++++++ python-requests-gssapi.spec | 39 +++++++++-------- sources | 2 +- 4 files changed, 66 insertions(+), 18 deletions(-) create mode 100644 0001-downsteam-Fix-build-config-for-setuptools-69.patch diff --git a/.gitignore b/.gitignore index 387d231..7f36ca1 100644 --- a/.gitignore +++ b/.gitignore @@ -5,3 +5,4 @@ /requests-gssapi-1.2.1.tar.gz /requests-gssapi-1.2.2.tar.gz /requests-gssapi-1.2.3.tar.gz +/requests-gssapi-1.4.0.tar.gz 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 0000000..6b8c3fd --- /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 e860a07..deca7e5 100644 --- a/python-requests-gssapi.spec +++ b/python-requests-gssapi.spec @@ -2,33 +2,35 @@ %global s_name requests_gssapi Name: python-%{sname} -Version: 1.2.3 -Release: 13%{?dist} +Version: 1.4.0 +Release: 1%{?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 +Source0: https://github.com/pythongssapi/%{sname}/archive/v%{version}/%{sname}-%{version}.tar.gz BuildArch: noarch # Patches +Patch0001: 0001-downsteam-Fix-build-config-for-setuptools-69.patch BuildRequires: git-core -BuildRequires: python3-devel -BuildRequires: python3-gssapi -BuildRequires: python3-requests -BuildRequires: python3-setuptools +BuildRequires: python3dist(pytest) -%global _description\ +%generate_buildrequires +%pyproject_buildrequires + +%global _description %{expand: Requests is an HTTP library, written in Python, for human beings. This\ library adds optional GSSAPI authentication support and supports\ mutual authentication. It includes a fully backward-compatible shim\ for requests-kerberos. +} -%description %_description +%description %{_description} %package -n python3-%{sname} -Summary: %summary +Summary: %{summary} Requires: python3-gssapi Requires: python3-requests %{?python_provide:%python_provide python3-%{sname}} @@ -38,22 +40,25 @@ Requires: python3-requests %autosetup -S git_am -n %{sname}-%{version} %build - -%py3_build +%pyproject_wheel %install -%py3_install +%pyproject_install +%pyproject_save_files %{s_name} %check -%{__python3} -m unittest +%pyproject_check_import +%pytest -%files -n python3-%{sname} +%files -n python%{python3_pkgversion}-%{sname} -f %{pyproject_files} %doc README.rst AUTHORS HISTORY.rst %license LICENSE -%{python3_sitelib}/%{s_name}* - %changelog +* Thu Nov 13 2025 Julien Rische - 1.4.0-1 +- New upstream release (1.4.0) + Resolves: RHEL-103408 + * Tue Oct 29 2024 Troy Dawson - 1.2.3-13 - Bump release for October 2024 mass rebuild: Resolves: RHEL-64018 diff --git a/sources b/sources index 2223791..67fecef 100644 --- a/sources +++ b/sources @@ -1 +1 @@ -SHA512 (requests-gssapi-1.2.3.tar.gz) = 5645785e4d96e935fde73395386f3622b1463e91cafddc07e9b55a990c977b136ccd440cbc190801b966e9c0ec083d2a270f06cb6e4f754093cc7343b0935994 +SHA512 (requests-gssapi-1.4.0.tar.gz) = 7ac3f467de888fd75e9dbc1533ab75ff2690ed236425999a1bdee82ee799b256f14ecb0dd661d8d655b10bbdac4a68f0faeffc5468dcef758fa5220694c59080