%global _empty_manifest_terminate_build 0 %global pypi_name mistune Name: python-%{pypi_name} Version: 3.0.1 Release: 1 Summary: A Python Markdown Parser License: BSD URL: https://github.com/lepture/mistune Source0: %{url}/archive/%{version}/%{pypi_name}-%{version}.tar.gz BuildRequires: python3-Cython BuildRequires: python3-pip BuildRequires: python3-devel BuildRequires: python3-setuptools BuildRequires: python3-setuptools_scm BuildRequires: python3-wheel %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 %pyproject_build %install %pyproject_install %check %{__python3} setup.py test %files -n python3-mistune %doc README.rst %license LICENSE %{python3_sitelib}/mistune-*.dist-info/ %{python3_sitelib}/mistune/ %changelog * Thu Jul 13 2023 li-miaomiao_zhr - 3.0.1-1 - Update package python-mistune to version 3.0.1 * Thu May 5 2022 caodongxia - 0.8.3-9 - Remove dependency on python-nose * Fri Apr 01 2022 yangping - 0.8.3-8 - Fix build error caused by py3.10+ wildcard * Thu Jul 22 2021 wangyue - 0.8.3-7 - Remove python2-mistune subpackage and remove python2 related buildrequire * Thu Mar 05 2020 Jiangping Hu - 0.8.3-6 - Package init