diff --git a/change-requires-package-version-to-fix-installed-error.patch b/change-requires-package-version-to-fix-installed-error.patch new file mode 100644 index 0000000..86f26c6 --- /dev/null +++ b/change-requires-package-version-to-fix-installed-error.patch @@ -0,0 +1,30 @@ +diff --git a/aiohttp.egg-info/requires.txt b/aiohttp.egg-info/requires.txt +index 746f3f8..bb8fe54 100644 +--- a/aiohttp.egg-info/requires.txt ++++ b/aiohttp.egg-info/requires.txt +@@ -1,7 +1,7 @@ + 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 ++async_timeout<=4.0.2,>=3.0 + yarl<2.0,>=1.0 + typing_extensions>=3.6.5 + +diff --git a/setup.py b/setup.py +index 54462ba..a792d8c 100644 +--- a/setup.py ++++ b/setup.py +@@ -66,9 +66,9 @@ except IndexError: + + 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", ++ "async_timeout>=3.0,<=4.0.2", + "yarl>=1.0,<2.0", + 'idna-ssl>=1.0; python_version<"3.7"', + "typing_extensions>=3.6.5", diff --git a/python-aiohttp.spec b/python-aiohttp.spec index 5fc98e3..99b352c 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: 2 +Release: 3 Summary: Async http client/server framework (asyncio) License: Apache-2.0 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-requires-package-version-to-fix-installed-error.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,6 +77,9 @@ mv %{buildroot}/doclist.lst . %{_docdir}/* %changelog +* Fri Jan 20 2023 xu_ping - 3.7.4-3 +- fix install error + * Fri May 20 2022 liukuo - 3.7.4-2 - License compliance rectification