%global srcname requests_ntlm # EPEL 10 is missing flask at the moment %if 0%{?rhel} >= 10 %bcond_with flask %else %bcond_without flask %endif Name: python-%{srcname} Version: 1.3.0 Release: 2%{?dist} Summary: NTLM module for python requests (requires md4, thus legacy OpenSSL settings) License: ISC URL: https://pypi.python.org/pypi/requests_ntlm Source0: https://github.com/requests/requests-ntlm/archive/v%{version}/%{srcname}-%{version}.tar.gz BuildArch: noarch %global _description %{expand: This package allows Python clients running on any operating system to provide NTLM authentication to a supporting server. With OpenSSL 3 or above, this needs to set the legacy OpenSSL provider in order to support md4 in Python.} %description %{_description} %package -n python3-%{srcname} Summary: %{summary} BuildRequires: python3-devel # For tests BuildRequires: python3dist(pytest) %if %{with flask} BuildRequires: python3dist(flask) %endif %description -n python3-%{srcname} %{_description} Python 3 version. %prep %autosetup -n requests-ntlm-%{version} %generate_buildrequires %pyproject_buildrequires %build %pyproject_wheel %install %pyproject_install %pyproject_save_files -l %{srcname} %check %python3 -m pytest --ignore=tests/functional/test_functional.py --ignore=tests/test_server.py -vv -k 'not (TestRequestsNtlm and not username)' %if %{with flask} # see https://github.com/jborean93/ntlm-auth/issues/22 cat > openssl.cnf << EOF openssl_conf = openssl_init [openssl_init] providers = provider_sect [provider_sect] default = default_sect legacy = legacy_sect [default_sect] activate = 1 [legacy_sect] activate = 1 EOF export OPENSSL_CONF=${PWD}/openssl.cnf %python3 -m tests.test_server & %python3 -m pytest --ignore=tests/functional/test_functional.py --ignore=tests/test_server.py -vv -k '(TestRequestsNtlm and not username)' %endif %files -n python3-%{srcname} -f %{pyproject_files} %doc CONTRIBUTORS.rst README.rst %changelog * Mon Nov 11 2024 Orion Poplawski - 1.3.0-2 - Use pyproject macros - Build without flask in epel10 * Tue Aug 13 2024 Orion Poplawski - 1.3.0-1 - Update to 1.3.0 * Fri Jul 19 2024 Fedora Release Engineering - 1.2.0-5 - Rebuilt for https://fedoraproject.org/wiki/Fedora_41_Mass_Rebuild * Sun Jun 09 2024 Python Maint - 1.2.0-4 - Rebuilt for Python 3.13 * Fri Jan 26 2024 Fedora Release Engineering - 1.2.0-3 - Rebuilt for https://fedoraproject.org/wiki/Fedora_40_Mass_Rebuild * Mon Jan 22 2024 Fedora Release Engineering - 1.2.0-2 - Rebuilt for https://fedoraproject.org/wiki/Fedora_40_Mass_Rebuild * Sun Aug 13 2023 Orion Poplawski - 1.2.0-1 - Update to 1.2.0 * Fri Jul 21 2023 Fedora Release Engineering - 1.1.0-22 - Rebuilt for https://fedoraproject.org/wiki/Fedora_39_Mass_Rebuild * Fri Jun 16 2023 Python Maint - 1.1.0-21 - Rebuilt for Python 3.12 * Fri Jan 20 2023 Fedora Release Engineering - 1.1.0-20 - Rebuilt for https://fedoraproject.org/wiki/Fedora_38_Mass_Rebuild * Fri Jul 22 2022 Fedora Release Engineering - 1.1.0-19 - Rebuilt for https://fedoraproject.org/wiki/Fedora_37_Mass_Rebuild * Thu Jun 16 2022 Python Maint - 1.1.0-18 - Rebuilt for Python 3.11 * Fri Jan 21 2022 Fedora Release Engineering - 1.1.0-17 - Rebuilt for https://fedoraproject.org/wiki/Fedora_36_Mass_Rebuild * Fri Jul 23 2021 Fedora Release Engineering - 1.1.0-16 - Rebuilt for https://fedoraproject.org/wiki/Fedora_35_Mass_Rebuild * Fri Jun 04 2021 Python Maint - 1.1.0-15 - Rebuilt for Python 3.10 * Wed Jan 27 2021 Fedora Release Engineering - 1.1.0-14 - Rebuilt for https://fedoraproject.org/wiki/Fedora_34_Mass_Rebuild * Mon Jan 11 2021 Igor Raits - 1.1.0-13 - Update spec * Wed Jul 29 2020 Fedora Release Engineering - 1.1.0-12 - Rebuilt for https://fedoraproject.org/wiki/Fedora_33_Mass_Rebuild * Tue May 26 2020 Miro Hrončok - 1.1.0-11 - Rebuilt for Python 3.9 * Thu Jan 30 2020 Fedora Release Engineering - 1.1.0-10 - Rebuilt for https://fedoraproject.org/wiki/Fedora_32_Mass_Rebuild * Thu Oct 03 2019 Miro Hrončok - 1.1.0-9 - Rebuilt for Python 3.8.0rc1 (#1748018) * Mon Aug 19 2019 Miro Hrončok - 1.1.0-8 - Rebuilt for Python 3.8 * Tue Aug 13 2019 Igor Gnatenko - 1.1.0-7 - Refactor packaging * Fri Jul 26 2019 Fedora Release Engineering - 1.1.0-6 - Rebuilt for https://fedoraproject.org/wiki/Fedora_31_Mass_Rebuild * Wed Mar 27 2019 Miro Hrončok - 1.1.0-5 - Subpackage python2-requests_ntlm has been removed See https://fedoraproject.org/wiki/Changes/Mass_Python_2_Package_Removal * Sat Feb 02 2019 Fedora Release Engineering - 1.1.0-4 - Rebuilt for https://fedoraproject.org/wiki/Fedora_30_Mass_Rebuild * Sat Jul 14 2018 Fedora Release Engineering - 1.1.0-3 - Rebuilt for https://fedoraproject.org/wiki/Fedora_29_Mass_Rebuild * Tue Jun 19 2018 Miro Hrončok - 1.1.0-2 - Rebuilt for Python 3.7 - Add missing BR python3-cryptography * Tue Apr 17 2018 James Hogarth - 1.1.0-1 - Upstream release 1.1.0 * Wed Feb 28 2018 Iryna Shcherbina - 0.3.0-6 - Update Python 2 dependency declarations to new packaging standards (See https://fedoraproject.org/wiki/FinalizingFedoraSwitchtoPython3) * Fri Feb 09 2018 Fedora Release Engineering - 0.3.0-5 - Rebuilt for https://fedoraproject.org/wiki/Fedora_28_Mass_Rebuild * Thu Jul 27 2017 Fedora Release Engineering - 0.3.0-4 - Rebuilt for https://fedoraproject.org/wiki/Fedora_27_Mass_Rebuild * Sat Feb 11 2017 Fedora Release Engineering - 0.3.0-3 - Rebuilt for https://fedoraproject.org/wiki/Fedora_26_Mass_Rebuild * Mon Dec 19 2016 Miro Hrončok - 0.3.0-2 - Rebuild for Python 3.6 * Mon Oct 10 2016 James Hogarth - 0.3.0-1 - Initial package.