Sync from SUSE:ALP:Source:Standard:1.0 python-requests revision 57955e90c62b2ced36acd687e9cd68fe

This commit is contained in:
2025-06-30 14:17:25 +02:00
parent 3c49bc0287
commit a3a4b0a365
3 changed files with 47 additions and 4 deletions

View File

@@ -1,7 +1,7 @@
#
# spec file for package python-requests
#
# Copyright (c) 2024 SUSE LLC
# Copyright (c) 2025 SUSE LLC
#
# All modifications and additions to the file contributed by third parties
# remain the property of their copyright owners, unless otherwise agreed
@@ -34,8 +34,12 @@ URL: https://docs.python-requests.org/
Source: https://files.pythonhosted.org/packages/source/r/requests/requests-%{version}.tar.gz
# PATCH-FIX-UPSTREAM gh#psf/requests#6731
Patch0: inject-default-ca-bundles.patch
# PATCH-FIX-UPSTREAM CVE-2024-47081.patch gh#psf/requests#6965, bsc#1244039
Patch1: CVE-2024-47081.patch
BuildRequires: %{python_module base >= 3.7}
BuildRequires: %{python_module pip}
BuildRequires: %{python_module setuptools}
BuildRequires: %{python_module wheel}
BuildRequires: fdupes
BuildRequires: python-rpm-macros
Requires: ca-certificates
@@ -95,11 +99,11 @@ Features of Requests:
sed -i "s#\(httpbin.*\), 'never'#\1#" tests/test_requests.py
%build
%python_build
%pyproject_wheel
%install
%if !%{with test}
%python_install
%pyproject_install
# check that urllib3 is not installed
test ! -e %{buildroot}%{python3_sitelib}/requests/packages/urllib3
%python_expand %fdupes %{buildroot}%{$python_sitelib}
@@ -120,7 +124,7 @@ touch Pipfile
%license LICENSE
%doc HISTORY.md README.md
%{python_sitelib}/requests
%{python_sitelib}/requests-%{version}*.egg-info
%{python_sitelib}/requests-%{version}.dist-info
%endif
%changelog