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
This commit is contained in:
Tomáš Hrnčiar 2026-05-04 11:16:10 +02:00
commit 3f98476962

View file

@ -4,7 +4,7 @@
Name: python-%{pypi_name}
Version: 0.2.1
Release: 23%{?dist}
Release: 24%{?dist}
Summary: Kenneth Reitz's krTheme for Sphinx
# Automatically converted from old format: BSD - review is highly recommended.
@ -19,6 +19,7 @@ BuildArch: noarch
BuildRequires: python3-devel
BuildRequires: python3dist(setuptools)
BuildRequires: python3-pkg-resources
%if %{with tests}
BuildRequires: python3dist(pytest)
@ -32,6 +33,7 @@ Sphinx documentation, originally derived from Mitsuhiko's Flask theme.
Summary: %{summary}
Requires: python3dist(setuptools)
Requires: python3-pkg-resources
%if 0%{?fedora} < 33 || 0%{?rhel} < 9
%py_provides python3-%{pypi_name}
%endif
@ -64,6 +66,9 @@ export PYTHONPATH=%{buildroot}%{python3_sitelib}
%{python3_sitelib}/sphinx_kr_theme-%{version}-py%{python3_version}.egg-info
%changelog
* Thu May 07 2026 Tomáš Hrnčiar <thrnciar@redhat.com> - 0.2.1-24
- Add build and runtime requires on python3-pkg-resources, setuptools 82 dropped pkg_resources
* Sat Jan 17 2026 Fedora Release Engineering <releng@fedoraproject.org> - 0.2.1-23
- Rebuilt for https://fedoraproject.org/wiki/Fedora_44_Mass_Rebuild