代码拉取完成,页面将自动刷新
同步操作将从 src-openEuler/python-mistune 强制同步,此操作会覆盖自 Fork 仓库以来所做的任何修改,且无法恢复!!!
确定后同步将在后台操作,完成时将刷新页面,请耐心等待。
Name: python-mistune
Version: 2.0.4
Release: 2
Summary: A Python Markdown Parser
License: BSD-3-Clause
URL: https://github.com/lepture/mistune
Source0: %url/archive/v%{version}/mistune-%{version}.tar.gz
Source1: %url/archive/v%{version}/mistune-0.8.4.tar.gz
BuildArch: noarch
BuildRequires: python3-devel
BuildRequires: python3-setuptools
BuildRequires: python3-pbr
BuildRequires: python3-pip
BuildRequires: python3-wheel
BuildRequires: python3-hatchling
BuildRequires: python3-pytest
%description
The python-mistune package is a fast yet powerful Python Markdown
parser with renderers and plugins, compatible with sane CommonMark
rules.
%package -n python3-mistune
Summary: A Python Markdown Parser
%description -n python3-mistune
The python-mistune package is a fast yet powerful Python Markdown
parser with renderers and plugins, compatible with sane CommonMark
rules.
%package -n python3-mistune-v1
Summary: A Python Markdown Parser old version
%description -n python3-mistune-v1
V1 version(0.8.4) for python-mistune package
%prep
%autosetup -n mistune-%{version} -p1
tar xvf %{SOURCE1} -C .
mv mistune-0.8.4 mistune_v1
mv ./mistune_v1/mistune.py ./mistune_v1/mistune_v1.py
sed -i 's/mistune/mistune_v1/g' ./mistune_v1/*.py
sed -i 's/mistune/mistune_v1/g' ./mistune_v1/*.cfg
sed -i 's/mistune/mistune_v1/g' ./mistune_v1/PKG-INFO
sed -i 's/mistune/mistune_v1/g' ./mistune_v1/README.rst
sed -i 's/mistune/mistune_v1/g' ./mistune_v1/tests/*.py
%build
mkdir build
%pyproject_build
cd %{_builddir}/mistune-%{version}/mistune_v1
%pyproject_build
cp ./build/*.whl %{_builddir}/mistune-%{version}/build/
%install
%pyproject_install
%check
cd %{_builddir}/mistune-%{version}/mistune_v1
%pytest
cd %{_builddir}/mistune-%{version}
rm -rf ./mistune_v1/tests
%pytest
%files -n python3-mistune
%doc LICENSE README.rst
%{python3_sitelib}/mistune
%{python3_sitelib}/mistune-*.dist-info
%files -n python3-mistune-v1
%doc LICENSE README.rst
%{python3_sitelib}/mistune_v1.py
%{python3_sitelib}/__pycache__/mistune_v1.*.pyc
%{python3_sitelib}/mistune_v1-*.dist-info
%changelog
* Fri Nov 10 2023 Dongxing Wang <dxwangk@isoftstone.com> - 2.0.4-2
- Add v1 package release
* Tue Nov 7 2023 Dongxing Wang <dxwangk@isoftstone.com> - 2.0.4-1
- Upgrade package to version 2.0.4
* Thu May 5 2022 caodongxia <caodongxia@h-partners.com> - 0.8.3-9
- Remove dependency on python-nose
* Fri Apr 01 2022 yangping <yangping69@huawei.com> - 0.8.3-8
- Fix build error caused by py3.10+ wildcard
* Thu Jul 22 2021 wangyue <wangyue92@huawei.com> - 0.8.3-7
- Remove python2-mistune subpackage and remove python2 related buildrequire
* Thu Mar 05 2020 Jiangping Hu <hujp1985@foxmail.com> - 0.8.3-6
- Package init
此处可能存在不合适展示的内容,页面不予展示。您可通过相关编辑功能自查并修改。
如您确认内容无涉及 不当用语 / 纯广告导流 / 暴力 / 低俗色情 / 侵权 / 盗版 / 虚假 / 无价值内容或违法国家有关法律法规的内容,可点击提交进行申诉,我们将尽快为您处理。