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}