Drop conditionals for “speedups” extra

- These are not needed now that EPEL9 has python-aiodns
This commit is contained in:
Benjamin A. Beasley 2022-10-29 11:22:22 -04:00
parent 5781864988
commit 993a206d6d
1 changed files with 1 additions and 15 deletions

View File

@ -1,11 +1,4 @@
%bcond_without tests %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 Name: python-aiohttp
Version: 3.8.3 Version: 3.8.3
@ -38,15 +31,11 @@ with middlewares and pluggable routing.}
%package -n python3-aiohttp %package -n python3-aiohttp
Summary: %{summary} Summary: %{summary}
%if %{with speedups}
Recommends: python3-aiohttp+speedups Recommends: python3-aiohttp+speedups
%endif
%description -n python3-aiohttp %{common_description} %description -n python3-aiohttp %{common_description}
%if %{with speedups}
%pyproject_extras_subpkg -n python3-aiohttp speedups %pyproject_extras_subpkg -n python3-aiohttp speedups
%endif
%prep %prep
%autosetup -p 1 -n aiohttp-%{version} %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 # https://bugzilla.redhat.com/show_bug.cgi?id=2134229
sed -r -i 's/^[[:blank:]]*re.assert/# &/' requirements/*.txt sed -r -i 's/^[[:blank:]]*re.assert/# &/' requirements/*.txt
%endif %endif
%if %{without speedups}
sed -r -i 's/^[[:blank:]]*aiodns;/# &/' setup.cfg requirements/*.txt
%endif
# Remove files generated by Cython to regenerate them # Remove files generated by Cython to regenerate them
grep -rl '/\* Generated by Cython' | xargs -r rm -v grep -rl '/\* Generated by Cython' | xargs -r rm -v
%generate_buildrequires %generate_buildrequires
%{pyproject_buildrequires %{?with_speedups:-x speedups} \ %{pyproject_buildrequires \
requirements/base.txt %{?with_tests:requirements/test.txt -t}} requirements/base.txt %{?with_tests:requirements/test.txt -t}}
%build %build