Compare commits
10 Commits
13e08e593f
...
38d57b48de
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
38d57b48de | ||
|
|
5825835ba6 | ||
|
|
7c26685129 | ||
|
|
404ebae9a5 | ||
|
|
4534a37903 | ||
|
|
3e7aaa66c8 | ||
|
|
f370d76cf6 | ||
|
|
22c3f53856 | ||
|
|
6bfbaeec2a | ||
|
|
c6ab796da1 |
BIN
mistune-0.8.4.tar.gz
Normal file
BIN
mistune-0.8.4.tar.gz
Normal file
Binary file not shown.
@ -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
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user