Compare commits

...

10 Commits

Author SHA1 Message Date
openeuler-ci-bot
38d57b48de
!16 Add v1 package version release for m2r support
From: @desert-sailor 
Reviewed-by: @yangzhao_kl 
Signed-off-by: @yangzhao_kl
2023-11-10 02:39:07 +00:00
desert-sailor
5825835ba6 Add v1 package version release 2023-11-10 10:00:45 +08:00
openeuler-ci-bot
7c26685129
!15 Upgrade package to version 2.0.4
From: @desert-sailor 
Reviewed-by: @yangzhao_kl 
Signed-off-by: @yangzhao_kl
2023-11-07 09:35:31 +00:00
desert-sailor
404ebae9a5 Upgrade package to version 2.0.4 2023-11-07 17:16:48 +08:00
openeuler-ci-bot
4534a37903
!13 回退 'Pull Request !12 : upgrade python-mistune to 3.0.1'
From: @cherry530 
Reviewed-by: @caodongxia 
Signed-off-by: @caodongxia
2023-08-04 02:46:42 +00:00
xu_ping
3e7aaa66c8
回退 'Pull Request !12 : upgrade python-mistune to 3.0.1' 2023-08-04 02:11:59 +00:00
openeuler-ci-bot
f370d76cf6
!12 upgrade python-mistune to 3.0.1
From: @li-miaomiao_zhr 
Reviewed-by: @shinwell_hu 
Signed-off-by: @shinwell_hu
2023-07-31 06:58:46 +00:00
li-miaomiao_zhr
22c3f53856 Update package python-mistune to version 3.0.1 2023-07-13 15:08:17 +08:00
openeuler-ci-bot
6bfbaeec2a
!10 回退 'Pull Request !9 : Update package'
From: @cherry530 
Reviewed-by: @caodongxia 
Signed-off-by: @caodongxia
2023-01-29 03:11:59 +00:00
xu_ping
c6ab796da1
回退 'Pull Request !9 : Update package' 2023-01-29 03:03:47 +00:00
2 changed files with 59 additions and 52 deletions

BIN
mistune-0.8.4.tar.gz Normal file

Binary file not shown.

View File

@ -1,13 +1,21 @@
%global _empty_manifest_terminate_build 0
Name: python-mistune
Version: 2.0.4
Release: 1
Summary: A sane Markdown parser with useful plugins and renderers
License: BSD-3-Clause
URL: https://github.com/lepture/mistune
Source0: https://files.pythonhosted.org/packages/cd/9b/0f98334812f548a5ee4399b76e33752a74fc7bb976f5efb34d962f03d585/mistune-2.0.4.tar.gz
BuildArch: noarch
Name: python-mistune
Version: 2.0.4
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
BuildRequires: python3-devel
BuildRequires: python3-setuptools
BuildRequires: python3-pbr
BuildRequires: python3-pip
BuildRequires: python3-wheel
BuildRequires: python3-hatchling
BuildRequires: python3-pytest
%description
The python-mistune package is a fast yet powerful Python Markdown
@ -15,65 +23,64 @@ parser with renderers and plugins, compatible with sane CommonMark
rules.
%package -n python3-mistune
Summary: A Python Markdown Parser
Provides: python-mistune
BuildRequires: python3-devel
BuildRequires: python3-setuptools
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.
%package -n python3-mistune-v1
Summary: A Python Markdown Parser old version
%package help
Summary: Development documents and examples for mistune
Provides: python3-mistune-doc
%description help
A fast yet powerful Python Markdown parser with renderers and plugins.
%description -n python3-mistune-v1
V1 version(0.8.4) for python-mistune package
%prep
%autosetup -n mistune-%{version}
%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
%py3_build
mkdir build
%pyproject_build
cd %{_builddir}/mistune-%{version}/mistune_v1
%pyproject_build
cp ./build/*.whl %{_builddir}/mistune-%{version}/build/
%install
%py3_install
install -d -m755 %{buildroot}/%{_pkgdocdir}
if [ -d doc ]; then cp -arf doc %{buildroot}/%{_pkgdocdir}; fi
if [ -d docs ]; then cp -arf docs %{buildroot}/%{_pkgdocdir}; fi
if [ -d example ]; then cp -arf example %{buildroot}/%{_pkgdocdir}; fi
if [ -d examples ]; then cp -arf examples %{buildroot}/%{_pkgdocdir}; fi
pushd %{buildroot}
if [ -d usr/lib ]; then
find usr/lib -type f -printf "/%h/%f\n" >> filelist.lst
fi
if [ -d usr/lib64 ]; then
find usr/lib64 -type f -printf "/%h/%f\n" >> filelist.lst
fi
if [ -d usr/bin ]; then
find usr/bin -type f -printf "/%h/%f\n" >> filelist.lst
fi
if [ -d usr/sbin ]; then
find usr/sbin -type f -printf "/%h/%f\n" >> filelist.lst
fi
touch doclist.lst
if [ -d usr/share/man ]; then
find usr/share/man -type f -printf "/%h/%f.gz\n" >> doclist.lst
fi
popd
mv %{buildroot}/filelist.lst .
mv %{buildroot}/doclist.lst .
%pyproject_install
%files -n python3-mistune -f filelist.lst
%dir %{python3_sitelib}/*
%check
cd %{_builddir}/mistune-%{version}/mistune_v1
%pytest
cd %{_builddir}/mistune-%{version}
rm -rf ./mistune_v1/tests
%pytest
%files help -f doclist.lst
%{_docdir}/*
%files -n python3-mistune
%doc LICENSE README.rst
%{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
* Mon Aug 01 2022 liqiuyu <liqiuyu@kylinos.cn> - 2.0.4-1
- Update to 2.0.4
* Fri Nov 10 2023 Dongxing Wang <dxwangk@isoftstone.com> - 2.0.4-2
- Add v1 package release
* Tue Nov 7 2023 Dongxing Wang <dxwangk@isoftstone.com> - 2.0.4-1
- Upgrade package to version 2.0.4
* Thu May 5 2022 caodongxia <caodongxia@h-partners.com> - 0.8.3-9
- Remove dependency on python-nose