diff --git a/python-m2r.spec b/python-m2r.spec index 1f3fa701c2d9214e57766c296d4155c828bb698a..30e94634d664c7925f1361b2171da87cc6118fd2 100644 --- a/python-m2r.spec +++ b/python-m2r.spec @@ -1,6 +1,6 @@ Name: python-m2r Version: 0.1.15 -Release: 3 +Release: 4 Summary: A converter for markdown to reStructuredText License: MIT URL: https://github.com/miyakogi/m2r @@ -10,15 +10,6 @@ BuildArch: noarch %description The package converts a markdown file including reStructuredText (rst) markups to a valid rST format. -%package -n python2-m2r -BuildRequires: python2-devel python2-docutils python2-mistune python2-pygments python2-mock -Requires: python2-docutils python2-mistune -Summary: A converter for markdown to reStructuredText -%{?python_provide:%python_provide python2-m2r} - -%description -n python2-m2r -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 @@ -34,22 +25,14 @@ rm -rf m2r.egg-info sed -i '1{\@^#!/usr/bin/env python@d}' m2r.py %build -%py2_build %py3_build %install -%py2_install %py3_install %check -PYTHONPATH=$(pwd) %{__python2} setup.py test -s tests PYTHONPATH=$(pwd) %{__python3} setup.py test -s tests -%files -n python2-m2r -%doc LICENSE README.md -%{python2_sitelib}/{m2r.py{,c,o},m2r-%{version}*-py%{python2_version}.egg-info} -%exclude %{python2_sitelib}/tests - %files -n python3-m2r %doc LICENSE README.md %{_bindir}/m2r @@ -57,5 +40,8 @@ PYTHONPATH=$(pwd) %{__python3} setup.py test -s tests %exclude %{python3_sitelib}/tests %changelog +* Mon Oct 12 2020 maminjie - 0.1.15-4 +* Drop python2 support + * Wed Mar 11 2020 Ling Yang - 0.1.15-3 - Package Init diff --git a/python-m2r.yaml b/python-m2r.yaml new file mode 100644 index 0000000000000000000000000000000000000000..0a5e29f90910449c1eb1f985e1c0c020079d4a9e --- /dev/null +++ b/python-m2r.yaml @@ -0,0 +1,4 @@ +version_control: github +src_repo: miyakogi/m2r +tag_prefix: "^v" +seperator: "."