From 2c29798980f326eb5a91e7cb528a83be9ec8e132 Mon Sep 17 00:00:00 2001 From: lyn1001 Date: Mon, 7 Nov 2022 16:11:53 +0800 Subject: [PATCH] change require chardet package version --- change-require-chardet-package-version.patch | 22 ++++++++++++++++++++ python-aiohttp.spec | 8 +++++-- 2 files changed, 28 insertions(+), 2 deletions(-) create mode 100644 change-require-chardet-package-version.patch diff --git a/change-require-chardet-package-version.patch b/change-require-chardet-package-version.patch new file mode 100644 index 0000000..8441513 --- /dev/null +++ b/change-require-chardet-package-version.patch @@ -0,0 +1,22 @@ +diff -Nur a/aiohttp.egg-info/requires.txt b/aiohttp.egg-info/requires.txt +--- a/aiohttp.egg-info/requires.txt 2021-03-07 04:59:20.000000000 +0800 ++++ b/aiohttp.egg-info/requires.txt 2022-11-07 15:55:07.214419948 +0800 +@@ -1,5 +1,5 @@ + attrs>=17.3.0 +-chardet<5.0,>=2.0 ++chardet<=5.0,>=2.0 + multidict<7.0,>=4.5 + async_timeout<4.0,>=3.0 + yarl<2.0,>=1.0 +diff -Nur a/setup.py b/setup.py +--- a/setup.py 2021-03-07 04:59:13.000000000 +0800 ++++ b/setup.py 2022-11-07 15:55:46.671059857 +0800 +@@ -66,7 +66,7 @@ + + install_requires = [ + "attrs>=17.3.0", +- "chardet>=2.0,<5.0", ++ "chardet>=2.0,<=5.0", + "multidict>=4.5,<7.0", + "async_timeout>=3.0,<4.0", + "yarl>=1.0,<2.0", diff --git a/python-aiohttp.spec b/python-aiohttp.spec index a7eff12..fcd8ae5 100644 --- a/python-aiohttp.spec +++ b/python-aiohttp.spec @@ -1,11 +1,12 @@ %global _empty_manifest_terminate_build 0 Name: python-aiohttp Version: 3.7.4 -Release: 1 +Release: 2 Summary: Async http client/server framework (asyncio) License: Apache 2 URL: https://github.com/aio-libs/aiohttp Source0: https://files.pythonhosted.org/packages/99/f5/90ede947a3ce2d6de1614799f5fea4e93c19b6520a59dc5d2f64123b032f/aiohttp-3.7.4.post0.tar.gz +Patch0: change-require-chardet-package-version.patch BuildRequires: python3-attrs BuildRequires: python3-chardet @@ -36,7 +37,7 @@ Provides: python3-aiohttp-doc Development documents and examples for aiohttp. %prep -%autosetup -n aiohttp-3.7.4.post0 +%autosetup -n aiohttp-3.7.4.post0 -p1 %build %py3_build @@ -76,5 +77,8 @@ mv %{buildroot}/doclist.lst . %{_docdir}/* %changelog +* Mon Nov 7 2022 liyanan - 3.7.4-2 +- change chardet version to fix installed error + * Fri Jul 23 2021 wutao - 3.7.4-1 - Package init -- Gitee