2020-03-12 10:27:00 +08:00
|
|
|
Name: python-m2r
|
2023-02-28 04:32:36 -05:00
|
|
|
Version: 0.3.1
|
2023-11-07 16:59:43 +08:00
|
|
|
Release: 2
|
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
|
2023-11-07 16:59:43 +08:00
|
|
|
Patch0: 0001-test_no_file.patch
|
|
|
|
|
Patch1: 0002-Bump-mistune-from-0.8.4-to-2.0.x.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
|
2023-11-07 16:59:43 +08:00
|
|
|
BuildRequires: python3-devel python3-docutils python3-mistune-v1 python3-pygments
|
|
|
|
|
BuildRequires: python3-mock python3-pytest
|
|
|
|
|
Requires: python3-docutils python3-mistune-v1
|
2020-03-12 10:27:00 +08:00
|
|
|
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
|
2023-11-07 16:59:43 +08:00
|
|
|
sed -i 's/mistune/mistune_v1/g' m2r.py
|
2020-03-12 10:27:00 +08:00
|
|
|
|
|
|
|
|
%build
|
|
|
|
|
%py3_build
|
|
|
|
|
|
|
|
|
|
%install
|
|
|
|
|
%py3_install
|
|
|
|
|
|
|
|
|
|
%check
|
2023-11-07 16:59:43 +08:00
|
|
|
%pytest
|
2020-03-12 10:27:00 +08:00
|
|
|
|
|
|
|
|
%files -n python3-m2r
|
|
|
|
|
%doc LICENSE README.md
|
|
|
|
|
%{_bindir}/m2r
|
2023-11-07 16:59:43 +08:00
|
|
|
%{python3_sitelib}/{__pycache__/*,m2r.py,m2r-*.egg-info}
|
2020-03-12 10:27:00 +08:00
|
|
|
|
|
|
|
|
%changelog
|
2023-11-07 16:59:43 +08:00
|
|
|
* Tue Nov 7 2023 Dongxing Wang <dxwangk@isoftstone.com> - 0.3.1-2
|
|
|
|
|
- Bump mistune from 0.8.4 to 2.0.x
|
|
|
|
|
|
2023-02-28 04:32:36 -05:00
|
|
|
* Tue Feb 28 2023 lvfei <lvfei@kylinos.cn> - 0.3.1-1
|
|
|
|
|
- upgrade to 0.3.1
|
|
|
|
|
|
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
|