From 9a1255e8768429bbf14e5a4aff144da662b580a96d232a40f57d45f65ea94059 Mon Sep 17 00:00:00 2001 From: Matej Cepl Date: Thu, 25 Nov 2021 22:35:22 +0000 Subject: [PATCH] Accepting request 933921 from home:bnavigator:branches:devel:languages:python:numeric - Fix missing importlib-metadata requirement OBS-URL: https://build.opensuse.org/request/show/933921 OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-prettytable?expand=0&rev=8 --- python-prettytable.changes | 5 +++++ python-prettytable.spec | 4 ++++ 2 files changed, 9 insertions(+) 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