From f0c3a19f5db6ad2b78cd5024b0cca275fcc2cd3e Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Tom=C3=A1=C5=A1=20Hrn=C4=8Diar?= Date: Tue, 23 Jun 2026 14:31:04 +0100 Subject: [PATCH] Add BuildRequires and Requires on python3-pkg-resources for setuptools 82 compatibility Setuptools 82 dropped pkg_resources from the setuptools distribution. Add explicit build and runtime dependency on the compat package. Assisted-by: Cursor Signed-off-by: Michel Lind --- python-sphinx-kr-theme.spec | 11 +++++++++-- 1 file changed, 9 insertions(+), 2 deletions(-) diff --git a/python-sphinx-kr-theme.spec b/python-sphinx-kr-theme.spec index dc646e4..a4ccb28 100644 --- a/python-sphinx-kr-theme.spec +++ b/python-sphinx-kr-theme.spec @@ -19,6 +19,9 @@ BuildArch: noarch BuildRequires: python3-devel BuildRequires: python3dist(setuptools) +%if 0%{?python3_version_nodots} >= 315 +BuildRequires: python3-pkg-resources +%endif %if %{with tests} BuildRequires: python3dist(pytest) @@ -32,8 +35,8 @@ Sphinx documentation, originally derived from Mitsuhiko's Flask theme. Summary: %{summary} Requires: python3dist(setuptools) -%if 0%{?fedora} < 33 || 0%{?rhel} < 9 -%py_provides python3-%{pypi_name} +%if 0%{?python3_version_nodots} >= 315 +Requires: python3-pkg-resources %endif %description -n python3-%{pypi_name} @@ -64,6 +67,10 @@ export PYTHONPATH=%{buildroot}%{python3_sitelib} %{python3_sitelib}/sphinx_kr_theme-%{version}-py%{python3_version}.egg-info %changelog +* Tue Jun 23 2026 Tomáš Hrnčiar - 0.2.1-25 +- Add build and runtime requires on python3-pkg-resources, setuptools 82 dropped pkg_resources +- salimma: gate the requirement to Python >= 3.15, drop obsolete conditional py_provides + * Wed Jun 03 2026 Python Maint - 0.2.1-24 - Rebuilt for Python 3.15