%global pypi_name django-contrib-comments %global modname django_comments Name: python-%{pypi_name} Version: 2.2.0 Release: 1%{?dist} Summary: The code formerly known as django.contrib.comments License: BSD-3-Clause URL: https://github.com/django/django-contrib-comments Source0: %{pypi_source %{pypi_name}} BuildArch: noarch # Legacy setup.py/setup.cfg project with no pyproject.toml: use the # manual BuildRequires + %%pyproject_wheel flow (setuptools legacy # PEP 517 backend) rather than %%generate_buildrequires. BuildRequires: python3-devel BuildRequires: python3-setuptools BuildRequires: python3-pip BuildRequires: python3-wheel %global _description %{expand: django-contrib-comments is the comments framework formerly known as django.contrib.comments, extracted to a standalone reusable app when it was removed from Django core. It is a runtime dependency of TOM Toolkit.} %description %{_description} %package -n python3-%{pypi_name} Summary: %{summary} Requires: python3-django >= 2.2 %description -n python3-%{pypi_name} %{_description} %prep %autosetup -n %{pypi_name}-%{version} %build %pyproject_wheel %install %pyproject_install %pyproject_save_files %{modname} # No %%check import: django_comments.apps / models require a configured # Django app registry (INSTALLED_APPS) to import cleanly, since it's a # reusable Django app rather than a standalone library. %files -n python3-%{pypi_name} -f %{pyproject_files} %license LICENSE.txt %doc README.rst HISTORY.rst %changelog * Mon Aug 24 2026 Morgan Hough - 2.2.0-1 - Initial package. Runtime dependency of TOM Toolkit.