From: @cherry530 Reviewed-by: @caodongxia Signed-off-by: @caodongxia
This commit is contained in:
commit
6bfbaeec2a
Binary file not shown.
@ -1,13 +1,12 @@
|
|||||||
%global _empty_manifest_terminate_build 0
|
Name: python-mistune
|
||||||
Name: python-mistune
|
Version: 0.8.3
|
||||||
Version: 2.0.4
|
Release: 9
|
||||||
Release: 1
|
Summary: A Python Markdown Parser
|
||||||
Summary: A sane Markdown parser with useful plugins and renderers
|
License: BSD
|
||||||
License: BSD-3-Clause
|
URL: https://github.com/lepture/mistune
|
||||||
URL: https://github.com/lepture/mistune
|
Source0: https://github.com/lepture/mistune/archive/v%{version}.tar.gz
|
||||||
Source0: https://files.pythonhosted.org/packages/cd/9b/0f98334812f548a5ee4399b76e33752a74fc7bb976f5efb34d962f03d585/mistune-2.0.4.tar.gz
|
|
||||||
BuildArch: noarch
|
|
||||||
|
|
||||||
|
BuildRequires: python3-Cython python3-devel python3-pytest python3-setuptools
|
||||||
|
|
||||||
%description
|
%description
|
||||||
The python-mistune package is a fast yet powerful Python Markdown
|
The python-mistune package is a fast yet powerful Python Markdown
|
||||||
@ -15,66 +14,34 @@ parser with renderers and plugins, compatible with sane CommonMark
|
|||||||
rules.
|
rules.
|
||||||
|
|
||||||
%package -n python3-mistune
|
%package -n python3-mistune
|
||||||
Summary: A Python Markdown Parser
|
Summary: A Python Markdown Parser
|
||||||
Provides: python-mistune
|
|
||||||
BuildRequires: python3-devel
|
|
||||||
BuildRequires: python3-setuptools
|
|
||||||
%description -n python3-mistune
|
%description -n python3-mistune
|
||||||
The python-mistune package is a fast yet powerful Python Markdown
|
The python-mistune package is a fast yet powerful Python Markdown
|
||||||
parser with renderers and plugins, compatible with sane CommonMark
|
parser with renderers and plugins, compatible with sane CommonMark
|
||||||
rules.
|
rules.
|
||||||
|
|
||||||
|
|
||||||
%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.
|
|
||||||
|
|
||||||
%prep
|
%prep
|
||||||
%autosetup -n mistune-%{version}
|
%autosetup -n mistune-%{version} -p1
|
||||||
|
find -name '*.py' | xargs sed -i '1s|^#!python|#!%{__python3}|'
|
||||||
|
|
||||||
%build
|
%build
|
||||||
%py3_build
|
CFLAGS="$RPM_OPT_FLAGS" %{__python3} setup.py build
|
||||||
|
|
||||||
%install
|
%install
|
||||||
%py3_install
|
%{__python3} setup.py install --skip-build --root %{buildroot}
|
||||||
install -d -m755 %{buildroot}/%{_pkgdocdir}
|
%{_fixperms} %{buildroot}/*
|
||||||
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 .
|
|
||||||
|
|
||||||
%files -n python3-mistune -f filelist.lst
|
%check
|
||||||
%dir %{python3_sitelib}/*
|
/usr/bin/pytest
|
||||||
|
|
||||||
%files help -f doclist.lst
|
%files -n python3-mistune
|
||||||
%{_docdir}/*
|
%doc LICENSE README.rst
|
||||||
|
%{python3_sitearch}/mistune.*
|
||||||
|
%{python3_sitearch}/mistune-%{version}-py%{python3_version}.egg-info
|
||||||
|
%{python3_sitearch}/__pycache__/mistune*
|
||||||
|
|
||||||
%changelog
|
%changelog
|
||||||
* Mon Aug 01 2022 liqiuyu <liqiuyu@kylinos.cn> - 2.0.4-1
|
|
||||||
- Update to 2.0.4
|
|
||||||
|
|
||||||
* Thu May 5 2022 caodongxia <caodongxia@h-partners.com> - 0.8.3-9
|
* Thu May 5 2022 caodongxia <caodongxia@h-partners.com> - 0.8.3-9
|
||||||
- Remove dependency on python-nose
|
- Remove dependency on python-nose
|
||||||
|
|
||||||
|
|||||||
BIN
v0.8.3.tar.gz
Normal file
BIN
v0.8.3.tar.gz
Normal file
Binary file not shown.
Loading…
x
Reference in New Issue
Block a user