2020-03-12 10:27:00 +08:00
|
|
|
Name: python-m2r
|
|
|
|
|
Version: 0.1.15
|
2022-05-07 16:00:17 +08:00
|
|
|
Release: 5
|
2020-03-12 10:27:00 +08:00
|
|
|
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
|
2022-05-07 16:00:17 +08:00
|
|
|
#https://github.com/miyakogi/m2r/pull/62
|
|
|
|
|
Patch0: 0001-test_no_file.patch
|
2020-03-12 10:27:00 +08:00
|
|
|
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
|
2022-05-07 16:00:17 +08:00
|
|
|
%autosetup -p1 -n m2r-%{version}
|
2020-03-12 10:27:00 +08:00
|
|
|
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
|
2022-05-07 16:00:17 +08:00
|
|
|
* Sat May 07 2022 yangping <yangping69@h-partners.com> - 0.1.15-5
|
|
|
|
|
- Fix error caused by options arguments
|
|
|
|
|
|
2020-11-11 17:09:03 +08:00
|
|
|
* Mon Oct 12 2020 maminjie <maminjie1@huawei.com> - 0.1.15-4
|
|
|
|
|
* Drop python2 support
|
|
|
|
|
|
2020-03-12 10:27:00 +08:00
|
|
|
* Wed Mar 11 2020 Ling Yang <lingyang2@huawei.com> - 0.1.15-3
|
|
|
|
|
- Package Init
|