%global pkg_name sphinx-markdown-tables Name: python-%{pkg_name} Version: 0.0.15 Release: 1%{?dist} Summary: Sphinx extension for rendering markdown tables License: GPLv3 URL: https://github.com/ryanfox/%{pkg_name} Source0: %{pypi_source %pkg_name} BuildArch: noarch # Don't install LICENSE in setup.py Patch0: sphinx-markdown-tables_license.patch BuildRequires: python3-devel %description A Sphinx extension for rendering tables written in markdown. %package -n python3-%{pkg_name} Summary: Sphinx extension for rendering markdown tables %description -n python3-%{pkg_name} A Sphinx extension for rendering tables written in markdown. %prep %autosetup -p1 -n %{pkg_name}-%{version} %generate_buildrequires %pyproject_buildrequires -r %build %pyproject_wheel %install %pyproject_install %pyproject_save_files sphinx_markdown_tables %check %py3_check_import sphinx_markdown_tables %files -n python3-%{pkg_name} -f %{pyproject_files} %license LICENSE %doc README.md %changelog * Sun Nov 14 2021 Sandro Mani - 0.0.15-1 - Initial package