diff --git a/python-prettytable.changes b/python-prettytable.changes index 36c571b..7735906 100644 --- a/python-prettytable.changes +++ b/python-prettytable.changes @@ -1,3 +1,8 @@ +------------------------------------------------------------------- +Thu Nov 25 21:15:15 UTC 2021 - Ben Greiner + +- Fix missing importlib-metadata requirement + ------------------------------------------------------------------- Wed Nov 24 07:41:38 UTC 2021 - Matej Cepl diff --git a/python-prettytable.spec b/python-prettytable.spec index e330591..f8a4400 100644 --- a/python-prettytable.spec +++ b/python-prettytable.spec @@ -27,6 +27,7 @@ License: BSD-2-Clause URL: https://github.com/jazzband/prettytable Source0: https://files.pythonhosted.org/packages/source/p/prettytable/prettytable-%{version}.tar.gz BuildRequires: %{python_module dbm} +BuildRequires: %{python_module importlib-metadata if %python-base < 3.8} BuildRequires: %{python_module pytest-lazy-fixture} BuildRequires: %{python_module pytest} BuildRequires: %{python_module setuptools_scm} @@ -34,6 +35,9 @@ BuildRequires: %{python_module setuptools} BuildRequires: python-rpm-macros BuildArch: noarch Requires: python-wcwidth +%if 0%{?python_version_nodots} < 38 +Requires: python-importlib-metadata +%endif Provides: python-PrettyTable = %{version}-%{release} Obsoletes: python-PrettyTable < %{version}-%{release} %python_subpackages