File python-markdown-math.spec of Package python-markdown-math

# Created by pyp2rpm-3.3.2
%global pypi_name python-markdown-math
%global srcname markdown-math

Name:           python-%{srcname}
Version:        0.8
Release:        1%{?dist}
Summary:        Math extension for Python-Markdown

License:        BSD
URL:            https://github.com/mitya57/python-markdown-math
Source0:        https://files.pythonhosted.org/packages/source/p/%{pypi_name}/%{pypi_name}-%{version}.tar.gz
BuildArch:      noarch
 
BuildRequires:  python3-devel
BuildRequires:  python3dist(setuptools)
BuildRequires:  python3dist(markdown) >= 3.0

%description
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}
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

%check
%{__python3} test.py

%files -n python3-%{srcname}
%license LICENSE
%doc README.md
%{python3_sitelib}/__pycache__/*
%{python3_sitelib}/mdx_math.py
%{python3_sitelib}/python_markdown_math-%{version}-py*.*.egg-info