Merged
Remove v1 package release #33
Remove v1 package release #33
Merged
wang--geAdd on Jul 14
Total: 2 files changed+5-32
Binary files do not support preview
@@ -2,12 +2,11 @@
2 2 
3Name: python-mistune3Name: python-mistune
4Version: 3.3.24Version: 3.3.2
5-Release: 15+Release: 2
6Summary: A Python Markdown Parser6Summary: A Python Markdown Parser
7License: BSD-3-Clause7License: BSD-3-Clause
8URL: https://github.com/lepture/mistune8URL: https://github.com/lepture/mistune
9Source0: %url/archive/v%{version}/%{pypi_name}-%{version}.tar.gz9Source0: %url/archive/v%{version}/%{pypi_name}-%{version}.tar.gz
10-Source1: %url/archive/v%{version}/mistune-0.8.4.tar.gz
11 10
12BuildArch: noarch11BuildArch: noarch
13 12 
@@ -32,39 +31,16 @@ The python-mistune package is a fast yet powerful Python Markdown
32parser with renderers and plugins, compatible with sane CommonMark31parser with renderers and plugins, compatible with sane CommonMark
33rules.32rules.
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%prep34%prep
42%autosetup -n mistune-%{version} -p135%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%build37%build
53-mkdir build
54%pyproject_build38%pyproject_build
55-cd %{_builddir}/mistune-%{version}/mistune_v1
56-%pyproject_build
57-cp ./build/*.whl %{_builddir}/mistune-%{version}/build/
58 39 
59%install40%install
60%pyproject_install41%pyproject_install
61 42 
62%check43%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%pytest44%pytest
69 45 
70%files -n python3-mistune46%files -n python3-mistune
@@ -73,14 +49,11 @@ rm -rf ./mistune_v1/tests
73%{python3_sitelib}/mistune-*.dist-info49%{python3_sitelib}/mistune-*.dist-info
74%{_bindir}/mistune50%{_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%changelog52%changelog
83-* Wed Jun 24 2026 guochao <guochao@kylinos.cn> -3.3.2-153+* 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.257- Update version to 3.3.2
85 *fix(image): validate figure width option58 *fix(image): validate figure width option
86 *fix(toc): avoid generated id collisions59 *fix(toc): avoid generated id collisions