From 55141fdbdefcb4f5f1f4c59aafcde8501cb4f39f Mon Sep 17 00:00:00 2001 From: rdobuilder Date: Feb 20 2024 17:02:54 +0000 Subject: Update to 0.14.0 Related-to: https://review.rdoproject.org/r/q/Ie590144bd7bbc7dacd1c8ebc20549ae935981f11 --- diff --git a/.python-requests-kerberos.metadata b/.python-requests-kerberos.metadata new file mode 100644 index 0000000..ce02d98 --- /dev/null +++ b/.python-requests-kerberos.metadata @@ -0,0 +1 @@ +7a2e211e947bb76aceaeca909e96a1eab534773d SOURCES/requests-kerberos-0.14.0.tar.gz diff --git a/SOURCES/0001-switch-requirement-from-pykerberos-back-to-kerberos.patch b/SOURCES/0001-switch-requirement-from-pykerberos-back-to-kerberos.patch new file mode 100644 index 0000000..14cda78 --- /dev/null +++ b/SOURCES/0001-switch-requirement-from-pykerberos-back-to-kerberos.patch @@ -0,0 +1,40 @@ +From ce277612b1e262a84a1a97e5084571b66b7dd573 Mon Sep 17 00:00:00 2001 +From: Dan Callaghan +Date: Thu, 11 Feb 2016 10:29:02 +1000 +Subject: [PATCH] switch requirement from pykerberos back to kerberos + +For now, Fedora still has the original "kerberos" module, not the newer +fork "pykerberos". That will work fine too. +--- + requirements.txt | 2 +- + setup.py | 2 +- + 2 files changed, 2 insertions(+), 2 deletions(-) + +diff --git a/requirements.txt b/requirements.txt +index c49add0..98fcbbc 100644 +--- a/requirements.txt ++++ b/requirements.txt +@@ -1,6 +1,6 @@ + requests>=1.1.0 + winkerberos >= 0.5.0; sys.platform == 'win32' +-pykerberos >= 1.1.8, < 2.0.0; sys.platform != 'win32' ++kerberos; sys.platform != 'win32' + cryptography>=1.3 + cryptography>=1.3; python_version!="3.3" + cryptography>=1.3, <2; python_version=="3.3" +diff --git a/setup.py b/setup.py +index 8381ac7..53dafc0 100755 +--- a/setup.py ++++ b/setup.py +@@ -54,7 +54,7 @@ def get_version(): + ], + extras_require={ + ':sys_platform=="win32"': ['winkerberos>=0.5.0'], +- ':sys_platform!="win32"': ['pykerberos>=1.1.8,<2.0.0'], ++ ':sys_platform!="win32"': ['kerberos'], + }, + test_suite='test_requests_kerberos', + tests_require=['mock'], +-- +2.13.6 + diff --git a/SPECS/python-requests-kerberos.spec b/SPECS/python-requests-kerberos.spec new file mode 100644 index 0000000..4351a1d --- /dev/null +++ b/SPECS/python-requests-kerberos.spec @@ -0,0 +1,188 @@ +Name: python-requests-kerberos +Version: 0.14.0 +Release: 1%{?dist} +Summary: A Kerberos authentication handler for python-requests +License: ISC +URL: https://github.com/requests/requests-kerberos +# Upstream considers Github not PyPI to be the authoritative source tarballs: +# https://github.com/requests/requests-kerberos/pull/78 +Source: %{url}/archive/v%{version}/requests-kerberos-%{version}.tar.gz +BuildArch: noarch +BuildRequires: python3-devel +BuildRequires: pyproject-rpm-macros + +%global _description %{expand: +Requests is an HTTP library, written in Python, for human beings. This library +adds optional Kerberos/GSSAPI authentication support and supports mutual +authentication.} + +%description %_description + + +%package -n python3-requests-kerberos +Summary: %{summary} + + +%description -n python3-requests-kerberos %_description + + +%prep +%autosetup -n requests-kerberos-%{version} +# avoid unnecessary coverage dependency +sed -i '/pytest-cov/d' requirements-test.txt + + +%generate_buildrequires +%pyproject_buildrequires requirements-test.txt + + +%build +%pyproject_wheel + + +%install +%pyproject_install +%pyproject_save_files requests_kerberos + + +%check +%pytest -v tests + + +%files -n python3-requests-kerberos -f %{pyproject_files} +%doc README.rst AUTHORS HISTORY.rst + + +%changelog +* Wed Sep 13 2023 Carl George - 0.14.0-1 +- Update to version 0.14.0, resolves rhbz#2018834 +- Convert to pyproject macros + +* Fri Jul 21 2023 Fedora Release Engineering - 0.12.0-21 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_39_Mass_Rebuild + +* Wed Jun 14 2023 Python Maint - 0.12.0-20 +- Rebuilt for Python 3.12 + +* Fri Jan 20 2023 Fedora Release Engineering - 0.12.0-19 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_38_Mass_Rebuild + +* Fri Jul 22 2022 Fedora Release Engineering - 0.12.0-18 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_37_Mass_Rebuild + +* Tue Jun 14 2022 Python Maint - 0.12.0-17 +- Rebuilt for Python 3.11 + +* Fri Jan 21 2022 Fedora Release Engineering - 0.12.0-16 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_36_Mass_Rebuild + +* Wed Jan 12 2022 Carl George - 0.12.0-15 +- Drop build dependency on deprecated python3-mock + +* Fri Jul 23 2021 Fedora Release Engineering - 0.12.0-14 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_35_Mass_Rebuild + +* Thu Jun 03 2021 Python Maint - 0.12.0-13 +- Rebuilt for Python 3.10 + +* Wed Jan 27 2021 Fedora Release Engineering - 0.12.0-12 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_34_Mass_Rebuild + +* Wed Jul 29 2020 Fedora Release Engineering - 0.12.0-11 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_33_Mass_Rebuild + +* Sat May 23 2020 Miro Hrončok - 0.12.0-10 +- Rebuilt for Python 3.9 + +* Thu Jan 30 2020 Fedora Release Engineering - 0.12.0-9 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_32_Mass_Rebuild + +* Mon Sep 09 2019 Miro Hrončok - 0.12.0-8 +- Subpackage python2-requests-kerberos has been removed + See https://fedoraproject.org/wiki/Changes/Mass_Python_2_Package_Removal + +* Fri Aug 16 2019 Miro Hrončok - 0.12.0-7 +- Rebuilt for Python 3.8 + +* Fri Jul 26 2019 Fedora Release Engineering - 0.12.0-6 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_31_Mass_Rebuild + +* Sat Feb 02 2019 Fedora Release Engineering - 0.12.0-5 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_30_Mass_Rebuild + +* Sat Jul 14 2018 Fedora Release Engineering - 0.12.0-4 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_29_Mass_Rebuild + +* Sun Jun 17 2018 Miro Hrončok - 0.12.0-3 +- Rebuilt for Python 3.7 + +* Fri Feb 09 2018 Fedora Release Engineering - 0.12.0-2 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_28_Mass_Rebuild + +* Mon Jan 08 2018 Dan Callaghan 0.12.0-1 +- Upstream release 0.12.0: + https://github.com/requests/requests-kerberos/blob/v0.12.0/HISTORY.rst#0120-2017-12-20 + +* Thu Jul 27 2017 Fedora Release Engineering - 0.10.0-5 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_27_Mass_Rebuild + +* Sat Feb 11 2017 Fedora Release Engineering - 0.10.0-4 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_26_Mass_Rebuild + +* Mon Dec 19 2016 Miro Hrončok - 0.10.0-3 +- Rebuild for Python 3.6 + +* Tue Jul 19 2016 Fedora Release Engineering - 0.10.0-2 +- https://fedoraproject.org/wiki/Changes/Automatic_Provides_for_Python_RPM_Packages + +* Tue Jul 12 2016 Dan Callaghan - 0.10.0-1 +- upstream bug fix release 0.10.0: + https://github.com/requests/requests-kerberos/blob/v0.10.0/HISTORY.rst#0100-2016-05-18 + +* Fri Jul 01 2016 Dan Callaghan - 0.8.0-5 +- add Obsoletes for python -> python2 rename + +* Fri Jul 01 2016 Dan Callaghan - 0.8.0-4 +- build for Python 2 and 3 (RHBZ#1334415) +- use %%license +- run tests in %%check + +* Thu Feb 11 2016 Dan Callaghan - 0.8.0-3 +- really fix requirements for kerberos module (#1305986) + +* Thu Feb 04 2016 Fedora Release Engineering - 0.8.0-2 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_24_Mass_Rebuild + +* Mon Feb 01 2016 Dan Callaghan - 0.8.0-1 +- upstream release 0.8.0 (#1296743) + +* Thu Jun 18 2015 Fedora Release Engineering - 0.7.0-3 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_23_Mass_Rebuild + +* Thu Jun 11 2015 Dan Callaghan - 0.7.0-2 +- relaxed version in kerberos module requirement, to work with + python-kerberos 1.1 (#1215565) + +* Tue May 05 2015 Fedora Release Monitoring - 0.7.0-1 +- Update to 0.7.0 (#1164464) + +* Fri Nov 07 2014 Dan Callaghan - 0.6-1 +- fix for mutual authentication handling (RHBZ#1160545, CVE-2014-8650) + +* Sat Jun 07 2014 Fedora Release Engineering - 0.5-2 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_21_Mass_Rebuild + +* Tue May 27 2014 Dan Callaghan - 0.5-1 +- upstream bug fix release 0.5 + +* Sun Aug 04 2013 Fedora Release Engineering - 0.3-2 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_20_Mass_Rebuild + +* Mon Jun 03 2013 Dan Callaghan - 0.3-1 +- upstream bug fix release 0.3 + +* Mon May 27 2013 Dan Callaghan - 0.2-2 +- require requests >= 1.0 + +* Tue May 14 2013 Dan Callaghan - 0.2-1 +- initial version