diff --git a/python-yarl.changes b/python-yarl.changes index ced7ab3..2bafbac 100644 --- a/python-yarl.changes +++ b/python-yarl.changes @@ -1,3 +1,9 @@ +------------------------------------------------------------------- +Sat Mar 20 19:40:32 UTC 2021 - Ben Greiner + +- Unset -Werror=return-type for python39 +- Only install typing_extensions for Python < 3.8 + ------------------------------------------------------------------- Tue Feb 23 17:02:42 UTC 2021 - Matej Cepl diff --git a/python-yarl.spec b/python-yarl.spec index d11c068..3436e58 100644 --- a/python-yarl.spec +++ b/python-yarl.spec @@ -33,6 +33,7 @@ Patch0: tests_overcome_bpo42967.patch BuildRequires: %{python_module Cython} BuildRequires: %{python_module devel} BuildRequires: %{python_module idna >= 2.0} +BuildRequires: %{python_module typing_extensions >= 3.7.4 if %python-base < 3.8} # test requirements BuildRequires: %{python_module multidict >= 4.0} BuildRequires: %{python_module pytest-cov} @@ -43,7 +44,9 @@ BuildRequires: fdupes BuildRequires: python-rpm-macros Requires: python-idna >= 2.0 Requires: python-multidict >= 4.0 +%if 0%{?python_version_nodots} < 38 Requires: python-typing_extensions >= 3.7.4 +%endif %python_subpackages %description @@ -53,7 +56,7 @@ The module provides a URL class for url parsing and changing. %autosetup -p1 -n yarl-%{version} %build -export CFLAGS="%{optflags}" +export CFLAGS="%{optflags} -Wno-return-type" %python_build %install