diff --git a/python-black.changes b/python-black.changes index c465d41..fc0be1e 100644 --- a/python-black.changes +++ b/python-black.changes @@ -1,3 +1,10 @@ +------------------------------------------------------------------- +Sat Dec 5 23:44:07 UTC 2020 - Benjamin Greiner + +- Fix Python 3.6 for Leap 15.2 and for the upcoming python36 flavor + in Tumbleweed: Requires python-dataclasses + gh#openSUSE/python-rpm-macros#66 + ------------------------------------------------------------------- Fri Sep 4 12:19:10 UTC 2020 - John Vandenberg diff --git a/python-black.spec b/python-black.spec index 84c5d68..faecea7 100644 --- a/python-black.spec +++ b/python-black.spec @@ -40,6 +40,8 @@ BuildRequires: %{python_module setuptools} BuildRequires: %{python_module toml >= 0.10.1} BuildRequires: %{python_module typed-ast >= 1.4.0} BuildRequires: %{python_module typing_extensions} +BuildRequires: (python36-dataclasses if python36-base) +BuildRequires: (python3-dataclasses if python3-base < 3.7) BuildRequires: fdupes BuildRequires: python-rpm-macros Requires: python-aiohttp >= 3.3.2 @@ -53,6 +55,9 @@ Requires: python-regex >= 2020.1.8 Requires: python-toml >= 0.10.1 Requires: python-typed-ast >= 1.4.0 Requires: python-typing_extensions +%if 0%{?python_version_nodots} == 36 +Requires: python-dataclasses +%endif Requires(post): update-alternatives Requires(postun): update-alternatives BuildArch: noarch