From: @cherry530 Reviewed-by: @caodongxia Signed-off-by: @caodongxia
This commit is contained in:
commit
4534a37903
Binary file not shown.
@ -1,20 +1,12 @@
|
|||||||
%global _empty_manifest_terminate_build 0
|
Name: python-mistune
|
||||||
%global pypi_name mistune
|
Version: 0.8.3
|
||||||
|
Release: 9
|
||||||
Name: python-%{pypi_name}
|
|
||||||
Version: 3.0.1
|
|
||||||
Release: 1
|
|
||||||
Summary: A Python Markdown Parser
|
Summary: A Python Markdown Parser
|
||||||
License: BSD
|
License: BSD
|
||||||
URL: https://github.com/lepture/mistune
|
URL: https://github.com/lepture/mistune
|
||||||
Source0: %{url}/archive/%{version}/%{pypi_name}-%{version}.tar.gz
|
Source0: https://github.com/lepture/mistune/archive/v%{version}.tar.gz
|
||||||
|
|
||||||
BuildRequires: python3-Cython
|
BuildRequires: python3-Cython python3-devel python3-pytest python3-setuptools
|
||||||
BuildRequires: python3-pip
|
|
||||||
BuildRequires: python3-devel
|
|
||||||
BuildRequires: python3-setuptools
|
|
||||||
BuildRequires: python3-setuptools_scm
|
|
||||||
BuildRequires: python3-wheel
|
|
||||||
|
|
||||||
%description
|
%description
|
||||||
The python-mistune package is a fast yet powerful Python Markdown
|
The python-mistune package is a fast yet powerful Python Markdown
|
||||||
@ -34,24 +26,22 @@ rules.
|
|||||||
find -name '*.py' | xargs sed -i '1s|^#!python|#!%{__python3}|'
|
find -name '*.py' | xargs sed -i '1s|^#!python|#!%{__python3}|'
|
||||||
|
|
||||||
%build
|
%build
|
||||||
%pyproject_build
|
CFLAGS="$RPM_OPT_FLAGS" %{__python3} setup.py build
|
||||||
|
|
||||||
%install
|
%install
|
||||||
%pyproject_install
|
%{__python3} setup.py install --skip-build --root %{buildroot}
|
||||||
|
%{_fixperms} %{buildroot}/*
|
||||||
|
|
||||||
%check
|
%check
|
||||||
%{__python3} setup.py test
|
/usr/bin/pytest
|
||||||
|
|
||||||
%files -n python3-mistune
|
%files -n python3-mistune
|
||||||
%doc README.rst
|
%doc LICENSE README.rst
|
||||||
%license LICENSE
|
%{python3_sitearch}/mistune.*
|
||||||
%{python3_sitelib}/mistune-*.dist-info/
|
%{python3_sitearch}/mistune-%{version}-py%{python3_version}.egg-info
|
||||||
%{python3_sitelib}/mistune/
|
%{python3_sitearch}/__pycache__/mistune*
|
||||||
|
|
||||||
%changelog
|
%changelog
|
||||||
* Thu Jul 13 2023 li-miaomiao_zhr <mmlidc@isoftstone.com> - 3.0.1-1
|
|
||||||
- Update package python-mistune to version 3.0.1
|
|
||||||
|
|
||||||
* 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