%global pypi_name django-bootstrap5 %global pypi_dist django_bootstrap5 Name: python-%{pypi_name} Version: 26.2 Release: 1%{?dist} Summary: Bootstrap 5 template tags and filters for Django License: BSD-3-Clause URL: https://github.com/zostera/django-bootstrap5 Source0: %{pypi_source %{pypi_dist} %{version}} BuildArch: noarch BuildRequires: python3-devel %global _description %{expand: django-bootstrap5 provides template tags and filters to render Django forms and other content in Bootstrap 5 style. It is a runtime dependency of TOM Toolkit; not part of the originally requested package list, but discovered as a missing dependency of tomtoolkit itself while packaging the final package in the chain.} %description %{_description} %package -n python3-%{pypi_name} Summary: %{summary} Requires: python3-django >= 4.2 %description -n python3-%{pypi_name} %{_description} %prep %autosetup -n %{pypi_dist}-%{version} %generate_buildrequires %pyproject_buildrequires -r %build %pyproject_wheel %install %pyproject_install %pyproject_save_files %{pypi_dist} # No %%check import: django_bootstrap5.templatetags touches the Django app # registry at import time and requires a configured DJANGO_SETTINGS_MODULE, # unavailable in the plain rpmbuild %%check sandbox. %files -n python3-%{pypi_name} -f %{pyproject_files} %license LICENSE %doc README.md %changelog * Mon Aug 24 2026 Morgan Hough - 26.2-1 - Initial package. Missing runtime dependency of tomtoolkit, discovered while packaging the final package in the TOM Toolkit chain.