diff --git a/python-mistune.spec b/python-mistune.spec index 727def494d3ed28c14d5a53246a61ebcf57d6e2a..a0bb1563974e0bdd7b571e0f5d6b4c071035db82 100644 --- a/python-mistune.spec +++ b/python-mistune.spec @@ -1,12 +1,13 @@ +%define debug_package %{nil} Name: python-mistune -Version: 0.8.3 -Release: 8 +Version: 2.0.2 +Release: 1 Summary: A Python Markdown Parser License: BSD URL: https://github.com/lepture/mistune -Source0: https://github.com/lepture/mistune/archive/v%{version}.tar.gz +Source0: https://github.com/lepture/mistune/archive/refs/tags/v%{version}.tar.gz -BuildRequires: python3-Cython python3-devel python3-nose python3-setuptools +BuildRequires: python3-devel python3-pytest python3-setuptools python3-wheel python3-pip %description The python-mistune package is a fast yet powerful Python Markdown @@ -23,25 +24,26 @@ 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 +CFLAGS="$RPM_OPT_FLAGS" python3 -mpip wheel --no-deps --disable-pip-version-check --no-build-isolation --progress-bar off --verbose . -w build/ %install -%{__python3} setup.py install --skip-build --root %{buildroot} +python3 -mpip install --root %{buildroot} --disable-pip-version-check --no-compile --no-deps --progress-bar off build/mistune-2.0.2-py2.py3-none-any.whl %{_fixperms} %{buildroot}/* %check -%{__python3} setup.py test +/usr/bin/pytest %files -n python3-mistune %doc LICENSE README.rst -%{python3_sitearch}/mistune.* -%{python3_sitearch}/mistune-%{version}-py%{python3_version}.egg-info -%{python3_sitearch}/__pycache__/mistune* +%{python3_sitelib}/mistune +%{python3_sitelib}/mistune-%{version}*-info %changelog +* Fri Apr 29 2022 caodongxia - 2.0.2-1 +- update to 2.0.2 + * Fri Apr 01 2022 yangping - 0.8.3-8 - Fix build error caused by py3.10+ wildcard diff --git a/v0.8.3.tar.gz b/v0.8.3.tar.gz deleted file mode 100644 index 4f7273ee4437229297563399c0db756fd14670d5..0000000000000000000000000000000000000000 Binary files a/v0.8.3.tar.gz and /dev/null differ diff --git a/v2.0.2.tar.gz b/v2.0.2.tar.gz new file mode 100644 index 0000000000000000000000000000000000000000..5b8dd52c2eee8d8cb808dad53ca282b83c4242f9 Binary files /dev/null and b/v2.0.2.tar.gz differ