%global pypi_name crispy-bootstrap5 %global pypi_dist crispy_bootstrap5 Name: python-%{pypi_name} Version: 2026.9 Release: 1%{?dist} Summary: Bootstrap5 template pack for django-crispy-forms License: MIT URL: https://github.com/django-crispy-forms/crispy-bootstrap5 Source0: %{pypi_source %{pypi_dist} %{version}} BuildArch: noarch BuildRequires: python3-devel %global _description %{expand: crispy-bootstrap5 provides a Bootstrap 5 template pack for django-crispy-forms. It is a runtime dependency of TOM Toolkit, and requires django-crispy-forms>=2.3 (packaged in this same COPR repo as a bump past Fedora's 1.14.0 — see python-django-crispy-forms.spec).} %description %{_description} %package -n python3-%{pypi_name} Summary: %{summary} Requires: python3-django >= 4.2 Requires: python3-django-crispy-forms >= 2.3 %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: crispy_bootstrap5 registers a crispy-forms template # pack via a Django AppConfig and touches the app registry at import time, # requiring 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 * Sat Sep 12 2026 Morgan Hough - 2026.9-1 - Update to 2026.9 * Mon Aug 24 2026 Morgan Hough - 2026.3-1 - Initial package. Runtime dependency of TOM Toolkit. Requires the COPR-bumped python3-django-crispy-forms (>=2.3).