diff --git a/python-pdm.changes b/python-pdm.changes index b09b3fb..36a540f 100644 --- a/python-pdm.changes +++ b/python-pdm.changes @@ -1,3 +1,8 @@ +------------------------------------------------------------------- +Thu Jun 22 07:41:39 UTC 2023 - Andreas Schneider + +- Fix building with Python 3.9 + ------------------------------------------------------------------- Mon Jun 19 14:02:16 UTC 2023 - Dirk Müller diff --git a/python-pdm.spec b/python-pdm.spec index e563056..086f3a7 100644 --- a/python-pdm.spec +++ b/python-pdm.spec @@ -34,6 +34,7 @@ License: MIT URL: https://github.com/pdm-project/pdm/ Source0: https://files.pythonhosted.org/packages/source/p/pdm/pdm-%{version}.tar.gz BuildRequires: %{python_module base >= 3.7} +BuildRequires: %{python_module importlib-metadata if %python-base <= 3.9} BuildRequires: %{python_module pdm-backend} BuildRequires: %{python_module pdm-pep517 >= 1.0} BuildRequires: %{python_module pip} @@ -61,7 +62,7 @@ Requires: python-lockfile >= 0.9 %if 0%{?python_version_nodots} < 311 Requires: python-tomli >= 1.1.0 %endif -%if 0%{?python_version_nodots} < 38 +%if 0%{?python_version_nodots} <= 39 Requires: python-importlib-metadata Requires: python-typing-extensions %endif