2023-07-13 14:29:41 +08:00
|
|
|
%global _empty_manifest_terminate_build 0
|
|
|
|
|
%global pypi_name mistune
|
|
|
|
|
|
|
|
|
|
Name: python-%{pypi_name}
|
|
|
|
|
Version: 3.0.1
|
|
|
|
|
Release: 1
|
2023-01-29 03:03:47 +00:00
|
|
|
Summary: A Python Markdown Parser
|
|
|
|
|
License: BSD
|
|
|
|
|
URL: https://github.com/lepture/mistune
|
2023-07-13 14:29:41 +08:00
|
|
|
Source0: %{url}/archive/%{version}/%{pypi_name}-%{version}.tar.gz
|
2020-03-06 18:29:06 +08:00
|
|
|
|
2023-07-13 14:29:41 +08:00
|
|
|
BuildRequires: python3-Cython
|
|
|
|
|
BuildRequires: python3-pip
|
|
|
|
|
BuildRequires: python3-devel
|
|
|
|
|
BuildRequires: python3-setuptools
|
|
|
|
|
BuildRequires: python3-setuptools_scm
|
|
|
|
|
BuildRequires: python3-wheel
|
2020-03-06 18:29:06 +08:00
|
|
|
|
|
|
|
|
%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
|
2023-01-29 03:03:47 +00:00
|
|
|
Summary: A Python Markdown Parser
|
|
|
|
|
|
2020-03-06 18:29:06 +08:00
|
|
|
%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.
|
|
|
|
|
|
|
|
|
|
%prep
|
2023-01-29 03:03:47 +00:00
|
|
|
%autosetup -n mistune-%{version} -p1
|
|
|
|
|
find -name '*.py' | xargs sed -i '1s|^#!python|#!%{__python3}|'
|
2020-03-06 18:29:06 +08:00
|
|
|
|
|
|
|
|
%build
|
2023-07-13 14:29:41 +08:00
|
|
|
%pyproject_build
|
2020-03-06 18:29:06 +08:00
|
|
|
|
|
|
|
|
%install
|
2023-07-13 14:29:41 +08:00
|
|
|
%pyproject_install
|
2020-03-06 18:29:06 +08:00
|
|
|
|
2023-01-29 03:03:47 +00:00
|
|
|
%check
|
2023-07-13 14:29:41 +08:00
|
|
|
%{__python3} setup.py test
|
2020-03-06 18:29:06 +08:00
|
|
|
|
2023-01-29 03:03:47 +00:00
|
|
|
%files -n python3-mistune
|
2023-07-13 14:29:41 +08:00
|
|
|
%doc README.rst
|
|
|
|
|
%license LICENSE
|
|
|
|
|
%{python3_sitelib}/mistune-*.dist-info/
|
|
|
|
|
%{python3_sitelib}/mistune/
|
2020-03-06 18:29:06 +08:00
|
|
|
|
|
|
|
|
%changelog
|
2023-07-13 14:29:41 +08:00
|
|
|
* Thu Jul 13 2023 li-miaomiao_zhr <mmlidc@isoftstone.com> - 3.0.1-1
|
|
|
|
|
- Update package python-mistune to version 3.0.1
|
|
|
|
|
|
2022-05-05 11:25:43 +08:00
|
|
|
* Thu May 5 2022 caodongxia <caodongxia@h-partners.com> - 0.8.3-9
|
|
|
|
|
- Remove dependency on python-nose
|
|
|
|
|
|
2022-04-01 17:15:31 +08:00
|
|
|
* Fri Apr 01 2022 yangping <yangping69@huawei.com> - 0.8.3-8
|
|
|
|
|
- Fix build error caused by py3.10+ wildcard
|
|
|
|
|
|
2021-07-22 14:16:06 +08:00
|
|
|
* Thu Jul 22 2021 wangyue <wangyue92@huawei.com> - 0.8.3-7
|
|
|
|
|
- Remove python2-mistune subpackage and remove python2 related buildrequire
|
|
|
|
|
|
2020-03-06 18:29:06 +08:00
|
|
|
* Thu Mar 05 2020 Jiangping Hu <hujp1985@foxmail.com> - 0.8.3-6
|
|
|
|
|
- Package init
|