python-mistune/python-mistune.spec

56 lines
1.6 KiB
RPMSpec
Raw Normal View History

2020-03-06 18:29:06 +08:00
Name: python-mistune
Version: 0.8.3
2022-05-05 11:25:43 +08:00
Release: 9
2020-03-06 18:29:06 +08:00
Summary: A Python Markdown Parser
License: BSD
URL: https://github.com/lepture/mistune
Source0: https://github.com/lepture/mistune/archive/v%{version}.tar.gz
2022-05-05 11:25:43 +08:00
BuildRequires: python3-Cython python3-devel python3-pytest python3-setuptools
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
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.
%prep
%autosetup -n mistune-%{version} -p1
find -name '*.py' | xargs sed -i '1s|^#!python|#!%{__python3}|'
%build
CFLAGS="$RPM_OPT_FLAGS" %{__python3} setup.py build
%install
%{__python3} setup.py install --skip-build --root %{buildroot}
%{_fixperms} %{buildroot}/*
%check
2022-05-05 11:25:43 +08:00
/usr/bin/pytest
2020-03-06 18:29:06 +08:00
%files -n python3-mistune
%doc LICENSE README.rst
%{python3_sitearch}/mistune.*
%{python3_sitearch}/mistune-%{version}-py%{python3_version}.egg-info
2020-03-06 18:29:06 +08:00
%{python3_sitearch}/__pycache__/mistune*
%changelog
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
* 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
2020-03-06 18:29:06 +08:00
* Thu Mar 05 2020 Jiangping Hu <hujp1985@foxmail.com> - 0.8.3-6
- Package init