diff --git a/python-requests.spec b/python-requests.spec index eaeeea1..4797e8a 100644 --- a/python-requests.spec +++ b/python-requests.spec @@ -1,7 +1,7 @@ # When bootstrapping Python, we cannot test this yet # RHEL does not include the test dependencies %bcond tests %{undefined rhel} -# The extras are disabled on RHEL to avoid pysocks and deprecated requests[security] +# The extras are disabled on RHEL to avoid pysocks, chardet, and deprecated requests[security] %bcond extras %[%{undefined rhel} || %{defined eln}] %bcond extradeps %{undefined rhel} @@ -57,12 +57,12 @@ designed to make HTTP requests easy for developers. %if %{with extras} -%pyproject_extras_subpkg -n python%{python3_pkgversion}-requests security socks +%pyproject_extras_subpkg -n python%{python3_pkgversion}-requests security socks use_chardet_on_py3 %endif %generate_buildrequires -%pyproject_buildrequires %{?with_extradeps:-x security,socks} +%pyproject_buildrequires %{?with_extradeps:-x security,socks,use_chardet_on_py3} %prep