Name: python-m2r Version: 0.1.15 Release: 5 Summary: A converter for markdown to reStructuredText License: MIT URL: https://github.com/miyakogi/m2r Source0: https://github.com/miyakogi/m2r/archive/v%{version}/m2r-%{version}.tar.gz #https://github.com/miyakogi/m2r/pull/62 Patch0: 0001-test_no_file.patch BuildArch: noarch %description The package converts a markdown file including reStructuredText (rst) markups to a valid rST format. %package -n python3-m2r BuildRequires: python3-devel python3-docutils python3-mistune python3-pygments python3-mock Requires: python3-docutils python3-mistune Summary: A converter for markdown to reStructuredText %{?python_provide:%python_provide python3-m2r} %description -n python3-m2r The package converts a markdown file including reStructuredText (rst) markups to a valid rST format. %prep %autosetup -p1 -n m2r-%{version} rm -rf m2r.egg-info sed -i '1{\@^#!/usr/bin/env python@d}' m2r.py %build %py3_build %install %py3_install %check PYTHONPATH=$(pwd) %{__python3} setup.py test -s tests %files -n python3-m2r %doc LICENSE README.md %{_bindir}/m2r %{python3_sitelib}/{__pycache__/*,m2r.py,m2r-%{version}*-py%{python3_version}.egg-info} %exclude %{python3_sitelib}/tests %changelog * Sat May 07 2022 yangping - 0.1.15-5 - Fix error caused by options arguments * Mon Oct 12 2020 maminjie - 0.1.15-4 * Drop python2 support * Wed Mar 11 2020 Ling Yang - 0.1.15-3 - Package Init