diff --git a/README.en.md b/README.en.md deleted file mode 100644 index de0023914c59fb2b49df87313c9737908be5c2db..0000000000000000000000000000000000000000 --- a/README.en.md +++ /dev/null @@ -1,36 +0,0 @@ -# python-m2r - -#### Description -Converts markdown files including rst to a valid rst format. - -#### Software Architecture -Software architecture description - -#### Installation - -1. xxxx -2. xxxx -3. xxxx - -#### Instructions - -1. xxxx -2. xxxx -3. xxxx - -#### Contribution - -1. Fork the repository -2. Create Feat_xxx branch -3. Commit your code -4. Create Pull Request - - -#### Gitee Feature - -1. You can use Readme\_XXX.md to support different languages, such as Readme\_en.md, Readme\_zh.md -2. Gitee blog [blog.gitee.com](https://blog.gitee.com) -3. Explore open source project [https://gitee.com/explore](https://gitee.com/explore) -4. The most valuable open source project [GVP](https://gitee.com/gvp) -5. The manual of Gitee [https://gitee.com/help](https://gitee.com/help) -6. The most popular members [https://gitee.com/gitee-stars/](https://gitee.com/gitee-stars/) diff --git a/README.md b/README.md deleted file mode 100644 index 97e78a1c54d542a7c98cae17add956c4c37dd9b7..0000000000000000000000000000000000000000 --- a/README.md +++ /dev/null @@ -1,37 +0,0 @@ -# python-m2r - -#### 介绍 -Converts markdown files including rst to a valid rst format. - -#### 软件架构 -软件架构说明 - - -#### 安装教程 - -1. xxxx -2. xxxx -3. xxxx - -#### 使用说明 - -1. xxxx -2. xxxx -3. xxxx - -#### 参与贡献 - -1. Fork 本仓库 -2. 新建 Feat_xxx 分支 -3. 提交代码 -4. 新建 Pull Request - - -#### 码云特技 - -1. 使用 Readme\_XXX.md 来支持不同的语言,例如 Readme\_en.md, Readme\_zh.md -2. 码云官方博客 [blog.gitee.com](https://blog.gitee.com) -3. 你可以 [https://gitee.com/explore](https://gitee.com/explore) 这个地址来了解码云上的优秀开源项目 -4. [GVP](https://gitee.com/gvp) 全称是码云最有价值开源项目,是码云综合评定出的优秀开源项目 -5. 码云官方提供的使用手册 [https://gitee.com/help](https://gitee.com/help) -6. 码云封面人物是一档用来展示码云会员风采的栏目 [https://gitee.com/gitee-stars/](https://gitee.com/gitee-stars/) diff --git a/m2r-0.1.15.tar.gz b/m2r-0.1.15.tar.gz new file mode 100644 index 0000000000000000000000000000000000000000..7eb5b821c61520a924122406c0ec180be5f31887 Binary files /dev/null and b/m2r-0.1.15.tar.gz differ diff --git a/python-m2r.spec b/python-m2r.spec new file mode 100644 index 0000000000000000000000000000000000000000..1f3fa701c2d9214e57766c296d4155c828bb698a --- /dev/null +++ b/python-m2r.spec @@ -0,0 +1,61 @@ +Name: python-m2r +Version: 0.1.15 +Release: 3 +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 +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 +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 -n m2r-%{version} +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 +%{python3_sitelib}/{__pycache__/*,m2r.py,m2r-%{version}*-py%{python3_version}.egg-info} +%exclude %{python3_sitelib}/tests + +%changelog +* Wed Mar 11 2020 Ling Yang - 0.1.15-3 +- Package Init