%global pypi_name python-markdown-math %global srcname markdown-math Name: python-%{srcname} Version: 0.6 Release: 1%{?dist} Summary: Math extension for Python-Markdown License: BSD URL: https://github.com/mitya57/python-markdown-math Source0: https://github.com/mitya57/python-markdown-math/archive/%{version}.tar.gz BuildArch: noarch BuildRequires: python3-devel BuildRequires: python3dist(setuptools) %description Extension for Python-Markdown: this extension adds math formulas support to Python-Markdown. %package -n python3-%{srcname} Summary: %{summary} %{?python_provide:%python_provide python3-%{srcname}} Requires: python3dist(setuptools) %description -n python3-%{srcname} Extension for Python-Markdown: this extension adds math formulas support to Python-Markdown. %prep %autosetup -n %{pypi_name}-%{version} # Remove bundled egg-info rm -rf %{pypi_name}.egg-info %build %py3_build %install %py3_install %files -n python3-%{srcname} %license LICENSE %doc README.md %{python3_sitelib}/__pycache__/* %{python3_sitelib}/mdx_math.py %{python3_sitelib}/python_markdown_math-%{version}-py%{python3_version}.egg-info %changelog * Sun May 03 2020 José Abílio Matos - 0.6-1 - Initial package.