Projects
openEuler:22.03:LTS:LoongArch
python-urllib3
_service:tar_scm_kernel_repo:python-urllib3.spec
Sign Up
Log In
Username
Password
Overview
Repositories
Revisions
Requests
Users
Attributes
Meta
File _service:tar_scm_kernel_repo:python-urllib3.spec of Package python-urllib3
%global srcname urllib3 %bcond_without tests Name: python-%{srcname} Version: 1.26.7 Release: 8 Summary: Sanity-friendly HTTP client for Python License: MIT URL: https://urllib3.readthedocs.io Source0: https://github.com/urllib3/urllib3/archive/%{version}/%{version}.tar.gz Source1: ssl_match_hostname_py3.py Patch0001: remove_mock.patch Patch6000: backport-CVE-2021-28363.patch Patch6001: backport-add-server_hostname-to-SSL_KEYWORDS.patch Patch6002: backport-avoid-socket-leak-if-HTTPSConnection.connect-fails.patch Patch6003: backport-strip-leading-zeros-form-ports.patch Patch6004: backport-fixed-issue-with-port-0-returning-None.patch Patch6005: backport-Fix-socket-timeout-value-when-HTTPConnection-is-reused.patch Patch6006: backport-Remove-Exclamation-mark-character-from-the-unreserved-characters.patch Patch6007: backport-Fix-_idna_encode-handling-of-x80.patch Patch6008: backport-CVE-2023-43804-added-the-Cookie-to-the-list-of-headers.patch Patch6009: backport-CVE-2023-45803-Made-body-stripped-from-HTTP-requests.patch BuildArch: noarch %description HTTP library with thread-safe connection pooling, file post support, sanity friendly, and more. %package -n python3-%{srcname} Summary: Python3 HTTP library with thread-safe connection pooling and file post BuildRequires: python3-devel BuildRequires: python3-setuptools %if %{with tests} BuildRequires: python3-cryptography python3-mock python3-six python-idna python-dateutil BuildRequires: python3-pysocks python3-pytest python3-tornado python-trustme %endif Requires: ca-certificates python3-idna python3-six python3-pysocks %description -n python3-urllib3 Python3 HTTP module with connection pooling and file POST abilities. %prep %autosetup -n %{srcname}-%{version} -p1 recent_date=$(date --date "7 month ago" +"%Y, %_m, %_d") sed -i "s/^RECENT_DATE = datetime.date(.*)/RECENT_DATE = datetime.date($recent_date)/" src/urllib3/connection.py #Failure use case circumvention rm -rf test/with_dummyserver/ rm -rf test/appengine/ rm -rf test/contrib/ rm -rf test/test_no_ssl.py %build %py3_build %install %py3_install rm -rf %{buildroot}%{python3_sitelib}/urllib3/packages/six.py rm -rf %{buildroot}%{python3_sitelib}/urllib3/packages/__pycache__/six.* rm -rf %{buildroot}%{python3_sitelib}/urllib3/packages/ssl_match_hostname/ mkdir -p %{buildroot}/%{python3_sitelib}/urllib3/packages/ cp -a %{SOURCE1} %{buildroot}/%{python3_sitelib}/urllib3/packages/ssl_match_hostname.py ln -s %{python3_sitelib}/six.py %{buildroot}/%{python3_sitelib}/urllib3/packages/six.py ln -s %{python3_sitelib}/__pycache__/six.cpython-%{python3_version_nodots}.opt-1.pyc %{buildroot}/%{python3_sitelib}/urllib3/packages/__pycache__/ ln -s %{python3_sitelib}/__pycache__/six.cpython-%{python3_version_nodots}.pyc %{buildroot}/%{python3_sitelib}/urllib3/packages/__pycache__/ %if %{with tests} %check # skip some failing tests skiplist+="test_retry_deprecated or test_retry" PYTHONPATH=%{buildroot}%{python3_sitelib}:%{python3_sitelib} %{__python3} -m pytest -v -k "not (${skiplist})" %endif %files -n python3-urllib3 %defattr(-,root,root) %license LICENSE.txt %doc CHANGES.rst README.rst %{python3_sitelib}/urllib3/ %{python3_sitelib}/urllib3-*.egg-info %changelog * Thu Nov 02 2023 chengyechun <chengyehcun1@huawei.com> - 1.26.7-8 - Type:CVE - CVE:CVE-2023-45803 - SUG:NA - DESC:fix CVE-2023-45803 Made body stripped from HTTP requests * Wed Oct 04 2023 Funda Wang <fundawang@yeah.net> - 1.26.7-7 - Type:CVE - CVE:CVE-2023-43804 - SUG:NA - DESC:fix CVE-2023-43804 added the Cookie to the list of headers * Tue Mar 21 2023 chenhaixing <chenhaixing@huawei.com> - 1.26.7-6 - Type:bugfix - CVE:NA - SUG:NA - DESC:fix socket timeout value when HTTPConnect is reused remove Exclamation mark character from the unreserved characters fix _idna_encode handling of x80 * Fri Feb 10 2023 chenhaixing <chenhaixing@huawei.com> - 1.26.7-5 - Type:bugfix - CVE:NA - SUG:NA - DESC:change _HOST_PORT_PAT to fix port is 0 but return None * Sat Dec 17 2022 chenhaixing <chenhaixing@huawei.com> - 1.26.7-4 - DESC:backport some patches * Tue Aug 09 2022 chenhaixing <chenhaixing@huawei.com> - 1.26.7-3 - modify RECENT_DATE in python-urllib3.spec to adapt time change * Fri Jan 07 2022 zhanzhimin <zhanzhimin@huawei.com> - 1.26.7-2 - remove python-nose dependency * Sat Nov 27 2021 zhanzhimin <zhanzhimin@huawei.com> - 1.26.7-1 - update to 1.26.7 * Mon Jul 5 2021 zhanzhimin <zhanzhimin@huawei.com> - 1.26.3-3 - fix CVE-2021-33503 * Tue Jun 1 2021 hanhui <hanhui15@huawei.com> - 1.26.3-2 - fix CVE-2021-28363 * Wed Feb 3 2021 chengguipeng <chengguipeng@huawei.com> - 1.26.3-1 - upgrade to 1.26.3 * Tue Jul 28 2020 chengguipeng<chengguipeng@huawei.com> - 1.25.9-1 - upgrade to 1.25.9 * Sat Oct 26 2019 openEuler Buildteam <buildteam@openeuler.org> - 1.24.3-2 - optimize spec file. * Mon Sep 16 2019 openEuler Buildteam <buildteam@openeuler.org> - 1.24.3-1 - Package init
Locations
Projects
Search
Status Monitor
Help
Open Build Service
OBS Manuals
API Documentation
OBS Portal
Reporting a Bug
Contact
Mailing List
Forums
Chat (IRC)
Twitter
Open Build Service (OBS)
is an
openSUSE project
.