%global pypi_name pytest_checkdocs Name: python-pytest-checkdocs Version: 2.13.0 Release: 1%{?dist} Summary: A pytest plugin to ensure the long description of a project renders correctly License: MIT URL: https://github.com/jaraco/pytest-checkdocs Source0: %pypi_source Patch1: 0001-Remove-the-pytest-enabler-dependency.patch BuildArch: noarch BuildRequires: python3-devel %global _description %{expand: A pytest plugin that checks the long description of the project to ensure it renders properly.} %description %_description %package -n python3-pytest-checkdocs Summary: %{summary} %description -n python3-pytest-checkdocs %_description %generate_buildrequires %pyproject_buildrequires -t %prep %autosetup -n %{pypi_name}-%{version} rm -rf pytest_checkdocs.egg-info %build %pyproject_wheel %install %pyproject_install %pyproject_save_files -L pytest_checkdocs %check # jaraco-packaging uses an isolated environment by default, which will install packages from the network # set $BUILD_ENVIRONMENT to something other than "isolated" to disable this behavior BUILD_ENVIRONMENT=. %tox %files -n python3-pytest-checkdocs -f %{pyproject_files} %doc NEWS.rst README.rst %changelog * Mon Jul 8 2024 David Shea - 2.13.0-1 - Initial package