From 6d558b7da49dadf91b1433f258cf687768c80919 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Miro=20Hron=C4=8Dok?= Date: Tue, 20 Aug 2019 11:05:42 +0200 Subject: [PATCH] Don't require importlib-metadata on Python 3.8+ --- python-jaraco-packaging.spec | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/python-jaraco-packaging.spec b/python-jaraco-packaging.spec index 6eb87e0..a5247c0 100644 --- a/python-jaraco-packaging.spec +++ b/python-jaraco-packaging.spec @@ -35,12 +35,16 @@ Requires: python3-jaraco Requires: python3dist(rst-linker) Requires: python3dist(six) >= 1.4 Requires: python3dist(setuptools) -Requires: python3dist(importlib-metadata) >= 0.18 BuildRequires: python3dist(setuptools) BuildRequires: python3-setuptools_scm >= 1.15.0 BuildRequires: python3dist(six) >= 1.4 + +%if 0%{python3_version_nodots} < 38 +Requires: python3dist(importlib-metadata) >= 0.18 BuildRequires: python3dist(importlib-metadata) >= 0.18 +%endif + %{?python_provide:%python_provide python3-%{pkg_name}} %description -n python3-%{pkg_name}