1 Star 0 Fork 21

wangxiao65/python-markdown

加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
文件
该仓库未声明开源许可证文件(LICENSE),使用请关注具体项目描述及其代码上游依赖。
克隆/下载
python-markdown.spec 1.71 KB
一键复制 编辑 原始数据 按行查看 历史
wangxiao65 提交于 2020-10-29 17:13 . remove python2 buildrequires
%{!?python3_version: %global python3_version %(%{__python3} -c "import sys; sys.stdout.write(sys.version[:3])")}
Name: python-markdown
Version: 3.3.1
Release: 2
Summary: A Python implementation of John Gruber’s Markdown
License: BSD
URL: https://pypi.org/project/Markdown/
Source0: https://pypi.python.org/packages/source/M/Markdown/Markdown-%{version}.tar.gz
BuildArch: noarch
BuildRequires: python3-devel >= 3.1 python3-nose python3-pyaml
%description
This is a Python implementation of John Gruber’s Markdown.
It is almost completely compliant with the reference implementation,
though there are a few known issues.
%package -n python3-markdown
Summary: Markdown implementation in Python
Requires: python3 >= 3.1
%description -n python3-markdown
This is a Python implementation of John Gruber’s Markdown.
It is almost completely compliant with the reference implementation,
though there are a few known issues.
%prep
%autosetup -n Markdown-%{version} -p1
find markdown -type f -name '*.py' -exec sed -i -e '/^#!/{1D}' {} \;
find docs -type f -exec sed -i 's/\r//' {} \;
%build
%{__python3} setup.py build
%install
%{__python3} setup.py install -O1 --skip-build --root %{buildroot}
%check
%{__python3} -m unittest discover tests
%files -n python3-markdown
%{python3_sitelib}/*
%{_bindir}/markdown_py
%changelog
* Tue Oct 27 2020 wangxiao <[email protected]> - 3.3.1-2
- remove python2 buildrequires
* Thu Oct 15 2020 Zhipeng Xie <[email protected]> - 3.3.1-1
- upgrade to 3.3.1
* Tue Sep 29 2020 liuweibo <[email protected]> - 2.4.1-14
- Fix Source0
* Tue Nov 26 2019 openEuler Buildteam <[email protected]> - 2.4.1-13
- Package init
Loading...
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化
1
https://gitee.com/wangxiao65/python-markdown.git
[email protected]:wangxiao65/python-markdown.git
wangxiao65
python-markdown
python-markdown
master

搜索帮助