From 2a5b8730c538087332a51ca75a71a22c72e1bc20 Mon Sep 17 00:00:00 2001 From: chenhaxing Date: Thu, 5 Jan 2023 20:37:36 +0800 Subject: [PATCH] modify RECENT_DATE in python-urllib3.spec to adapt time change --- python-urllib3.spec | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/python-urllib3.spec b/python-urllib3.spec index 60f5ab9..dc52a2a 100644 --- a/python-urllib3.spec +++ b/python-urllib3.spec @@ -3,7 +3,7 @@ Name: python-%{srcname} Version: 1.25.9 -Release: 4 +Release: 5 Summary: Sanity-friendly HTTP client for Python License: MIT URL: https://urllib3.readthedocs.io @@ -57,6 +57,10 @@ Python3 %_description %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/ @@ -112,6 +116,9 @@ PYTHONPATH=%{buildroot}%{python3_sitelib}:%{python3_sitelib} %{__python3} -m pyt %{python3_sitelib}/urllib3-*.egg-info %changelog +* Thu Jun 5 2023 chenhaixing - 1.25.9-5 +- DESC:modify RECENT_DATE in python-urllib3.spec to adapt time change + * Fri Nov 26 2021 seuzw - 1.25.9-4 - Type:bugfix - CVE:NA -- Gitee