Name: python-m2r Version: 0.3.1 Release: 2 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 Patch1: 0002-Bump-mistune-from-0.8.4-to-2.0.x.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-v1 python3-pygments BuildRequires: python3-mock python3-pytest Requires: python3-docutils python3-mistune-v1 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 sed -i 's/mistune/mistune_v1/g' m2r.py %build %py3_build %install %py3_install %check %pytest %files -n python3-m2r %doc LICENSE README.md %{_bindir}/m2r %{python3_sitelib}/{__pycache__/*,m2r.py,m2r-*.egg-info} %changelog * Tue Nov 7 2023 Dongxing Wang - 0.3.1-2 - Bump mistune from 0.8.4 to 2.0.x * Tue Feb 28 2023 lvfei - 0.3.1-1 - upgrade to 0.3.1 * 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