diff --git a/mistune-0.8.4.tar.gz b/mistune-0.8.4.tar.gz new file mode 100644 index 0000000000000000000000000000000000000000..3eceda2120387a38dc4a7350b8ff66ceec1dc6f3 Binary files /dev/null and b/mistune-0.8.4.tar.gz differ diff --git a/python-mistune.spec b/python-mistune.spec index 8d1b975d7de9cf82059de7fae39715e0e8d3ae82..e0dab9f4d565f168168772c06253f224adee4a10 100644 --- a/python-mistune.spec +++ b/python-mistune.spec @@ -1,10 +1,11 @@ Name: python-mistune Version: 2.0.4 -Release: 1 +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 @@ -29,16 +30,38 @@ 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 @@ -46,7 +69,16 @@ rules. %{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 - 2.0.4-2 +- Add v1 package release + * Tue Nov 7 2023 Dongxing Wang - 2.0.4-1 - Upgrade package to version 2.0.4