python-m2r: Package init
This commit is contained in:
parent
e4315609f5
commit
053d67a1ef
36
README.en.md
36
README.en.md
@ -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/)
|
||||
37
README.md
37
README.md
@ -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/)
|
||||
BIN
m2r-0.1.15.tar.gz
Normal file
BIN
m2r-0.1.15.tar.gz
Normal file
Binary file not shown.
61
python-m2r.spec
Normal file
61
python-m2r.spec
Normal file
@ -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 <lingyang2@huawei.com> - 0.1.15-3
|
||||
- Package Init
|
||||
Loading…
x
Reference in New Issue
Block a user