diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..717d61b --- /dev/null +++ b/.gitignore @@ -0,0 +1,2 @@ +clog +/0.6.tar.gz diff --git a/python-markdown-math.spec b/python-markdown-math.spec new file mode 100644 index 0000000..d100650 --- /dev/null +++ b/python-markdown-math.spec @@ -0,0 +1,54 @@ +%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: %{url}/archive/%{version}/%{pypi_name}-%{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 + +%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%{python3_version}.egg-info + +%changelog +* Sun May 03 2020 José Abílio Matos - 0.6-1 +- Initial package. diff --git a/sources b/sources new file mode 100644 index 0000000..d790a75 --- /dev/null +++ b/sources @@ -0,0 +1 @@ +SHA512 (0.6.tar.gz) = 7246ff0b236f95a5eba2485758e426f10040caa59ceb8bb7bf47b8b6174e058069320afc756175dce2a8d52a9ee8c021ddc9eb84923d67ad2c058bae9533d252