diff --git a/python-aiohttp.spec b/python-aiohttp.spec index 1b49421..5fd2192 100644 --- a/python-aiohttp.spec +++ b/python-aiohttp.spec @@ -1,11 +1,4 @@ %bcond_without tests -%if 0%{?el9} -# Please branch and build python-aiodns in epel9 -# https://bugzilla.redhat.com/show_bug.cgi?id=2134149 -%bcond_with speedups -%else -%bcond_without speedups -%endif Name: python-aiohttp Version: 3.8.3 @@ -38,15 +31,11 @@ with middlewares and pluggable routing.} %package -n python3-aiohttp Summary: %{summary} -%if %{with speedups} Recommends: python3-aiohttp+speedups -%endif %description -n python3-aiohttp %{common_description} -%if %{with speedups} %pyproject_extras_subpkg -n python3-aiohttp speedups -%endif %prep %autosetup -p 1 -n aiohttp-%{version} @@ -85,14 +74,11 @@ sed -r -i 's/^[[:blank:]]*cchardet;/# &/' setup.cfg requirements/*.txt # https://bugzilla.redhat.com/show_bug.cgi?id=2134229 sed -r -i 's/^[[:blank:]]*re.assert/# &/' requirements/*.txt %endif -%if %{without speedups} -sed -r -i 's/^[[:blank:]]*aiodns;/# &/' setup.cfg requirements/*.txt -%endif # Remove files generated by Cython to regenerate them grep -rl '/\* Generated by Cython' | xargs -r rm -v %generate_buildrequires -%{pyproject_buildrequires %{?with_speedups:-x speedups} \ +%{pyproject_buildrequires \ requirements/base.txt %{?with_tests:requirements/test.txt -t}} %build