# Created by pyp2rpm-3.3.2 %global pypi_name django-contrib-comments Name: python-%{pypi_name} Version: 1.9.2 Release: 1%{?dist} Summary: The code formerly known as django.contrib.comments License: BSD URL: https://github.com/django/django-contrib-comments Source0: https://files.pythonhosted.org/packages/source/d/%{pypi_name}/%{pypi_name}-%{version}.tar.gz BuildArch: noarch BuildRequires: python3-devel BuildRequires: python3dist(django) >= 1.11 BuildRequires: python3dist(setuptools) BuildRequires: python3dist(six) BuildRequires: python3dist(sphinx) %description Django "excontrib" Comments Django used to include a comments framework; since Django 1.6 it's been separated to a separate project. This is that project.This framework can be used to attach comments to any model, so you can use it for comments on blog entries, photos, book chapters, or anything else.For details, consult the documentation__. %package -n python3-%{pypi_name} Summary: %{summary} %{?python_provide:%python_provide python3-%{pypi_name}} Requires: python3dist(django) >= 1.11 Requires: python3dist(six) %description -n python3-%{pypi_name} Django "excontrib" Comments Django used to include a comments framework; since Django 1.6 it's been separated to a separate project. This is that project.This framework can be used to attach comments to any model, so you can use it for comments on blog entries, photos, book chapters, or anything else.For details, consult the documentation__. %package -n python-%{pypi_name}-doc Summary: django-contrib-comments documentation %description -n python-%{pypi_name}-doc Documentation for django-contrib-comments %prep %autosetup -n %{pypi_name}-%{version} # Remove bundled egg-info rm -rf %{pypi_name}.egg-info %build %py3_build # generate html docs PYTHONPATH=${PWD} sphinx-build-3 docs html # remove the sphinx-build leftovers rm -rf html/.{doctrees,buildinfo} %install %py3_install %check %{__python3} setup.py test %files -n python3-%{pypi_name} %license LICENSE.txt %doc README.rst %{python3_sitelib}/django_comments %{python3_sitelib}/django_contrib_comments-%{version}-py?.?.egg-info %files -n python-%{pypi_name}-doc %doc html %license LICENSE.txt %changelog * Wed May 13 2020 mockbuilder - 1.9.2-1 - Initial package.