Merged
Remove v1 package release #33
wang--geAdd on Jul 14
Remove v1 package release #33
Merged
Total: 2 files changed+5-32
Binary files do not support preview
| @@ -2,12 +2,11 @@ | |||
| 2 | 2 | ||
| 3 | Name: python-mistune | 3 | Name: python-mistune |
| 4 | Version: 3.3.2 | 4 | Version: 3.3.2 |
| 5 | -Release: 1 | 5 | +Release: 2 |
| 6 | Summary: A Python Markdown Parser | 6 | Summary: A Python Markdown Parser |
| 7 | License: BSD-3-Clause | 7 | License: BSD-3-Clause |
| 8 | URL: https://github.com/lepture/mistune | 8 | URL: https://github.com/lepture/mistune |
| 9 | Source0: %url/archive/v%{version}/%{pypi_name}-%{version}.tar.gz | 9 | Source0: %url/archive/v%{version}/%{pypi_name}-%{version}.tar.gz |
| 10 | -Source1: %url/archive/v%{version}/mistune-0.8.4.tar.gz | ||
| 11 | 10 | ||
| 12 | BuildArch: noarch | 11 | BuildArch: noarch |
| 13 | 12 | ||
| @@ -32,39 +31,16 @@ The python-mistune package is a fast yet powerful Python Markdown | |||
| 32 | parser with renderers and plugins, compatible with sane CommonMark | 31 | parser with renderers and plugins, compatible with sane CommonMark |
| 33 | rules. | 32 | rules. |
| 34 | 33 | ||
| 35 | -%package -n python3-mistune-v1 | ||
| 36 | -Summary: A Python Markdown Parser old version | ||
| 37 | - | ||
| 38 | -%description -n python3-mistune-v1 | ||
| 39 | -V1 version(0.8.4) for python-mistune package | ||
| 40 | - | ||
| 41 | %prep | 34 | %prep |
| 42 | %autosetup -n mistune-%{version} -p1 | 35 | %autosetup -n mistune-%{version} -p1 |
| 43 | -tar xvf %{SOURCE1} -C . | ||
| 44 | -mv mistune-0.8.4 mistune_v1 | ||
| 45 | -mv ./mistune_v1/mistune.py ./mistune_v1/mistune_v1.py | ||
| 46 | -sed -i 's/mistune/mistune_v1/g' ./mistune_v1/*.py | ||
| 47 | -sed -i 's/mistune/mistune_v1/g' ./mistune_v1/*.cfg | ||
| 48 | -sed -i 's/mistune/mistune_v1/g' ./mistune_v1/PKG-INFO | ||
| 49 | -sed -i 's/mistune/mistune_v1/g' ./mistune_v1/README.rst | ||
| 50 | -sed -i 's/mistune/mistune_v1/g' ./mistune_v1/tests/*.py | ||
| 51 | 36 | ||
| 52 | %build | 37 | %build |
| 53 | -mkdir build | ||
| 54 | %pyproject_build | 38 | %pyproject_build |
| 55 | -cd %{_builddir}/mistune-%{version}/mistune_v1 | ||
| 56 | -%pyproject_build | ||
| 57 | -cp ./build/*.whl %{_builddir}/mistune-%{version}/build/ | ||
| 58 | 39 | ||
| 59 | %install | 40 | %install |
| 60 | %pyproject_install | 41 | %pyproject_install |
| 61 | 42 | ||
| 62 | %check | 43 | %check |
| 63 | -sed -i '/filterwarnings/d' pyproject.toml | ||
| 64 | -cd %{_builddir}/mistune-%{version}/mistune_v1 | ||
| 65 | -%pytest | ||
| 66 | -cd %{_builddir}/mistune-%{version} | ||
| 67 | -rm -rf ./mistune_v1/tests | ||
| 68 | %pytest | 44 | %pytest |
| 69 | 45 | ||
| 70 | %files -n python3-mistune | 46 | %files -n python3-mistune |
| @@ -73,14 +49,11 @@ rm -rf ./mistune_v1/tests | |||
| 73 | %{python3_sitelib}/mistune-*.dist-info | 49 | %{python3_sitelib}/mistune-*.dist-info |
| 74 | %{_bindir}/mistune | 50 | %{_bindir}/mistune |
| 75 | 51 | ||
| 76 | -%files -n python3-mistune-v1 | ||
| 77 | -%doc LICENSE README.rst | ||
| 78 | -%{python3_sitelib}/mistune_v1.py | ||
| 79 | -%{python3_sitelib}/__pycache__/mistune_v1.*.pyc | ||
| 80 | -%{python3_sitelib}/mistune_v1-*.dist-info | ||
| 81 | - | ||
| 82 | %changelog | 52 | %changelog |
| 83 | -* Wed Jun 24 2026 guochao <guochao@kylinos.cn> -3.3.2-1 | 53 | +* Tue Jul 14 2026 Ge Wang <wang__ge@126.com> - 3.3.2-2 |
| 54 | +- Remove v1 package release | ||
| 55 | + | ||
| 56 | +* Wed Jun 24 2026 guochao <guochao@kylinos.cn> - 3.3.2-1 | ||
| 84 | - Update version to 3.3.2 | 57 | - Update version to 3.3.2 |
| 85 | *fix(image): validate figure width option | 58 | *fix(image): validate figure width option |
| 86 | *fix(toc): avoid generated id collisions | 59 | *fix(toc): avoid generated id collisions |