!35 Upgrade to 3.5.1
From: @lyn1001 Reviewed-by: @caodongxia Signed-off-by: @caodongxia
This commit is contained in:
commit
f200b4b1a7
Binary file not shown.
BIN
Markdown-3.5.1.tar.gz
Normal file
BIN
Markdown-3.5.1.tar.gz
Normal file
Binary file not shown.
@ -1,7 +1,7 @@
|
|||||||
%{!?python3_version: %global python3_version %(%{__python3} -c "import sys; sys.stdout.write(sys.version[:3])")}
|
%{!?python3_version: %global python3_version %(%{__python3} -c "import sys; sys.stdout.write(sys.version[:3])")}
|
||||||
|
|
||||||
Name: python-markdown
|
Name: python-markdown
|
||||||
Version: 3.4.1
|
Version: 3.5.1
|
||||||
Release: 1
|
Release: 1
|
||||||
Summary: A Python implementation of John Gruber’s Markdown
|
Summary: A Python implementation of John Gruber’s Markdown
|
||||||
License: BSD-3-Clause
|
License: BSD-3-Clause
|
||||||
@ -10,7 +10,7 @@ Source0: %{pypi_source Markdown}
|
|||||||
|
|
||||||
BuildArch: noarch
|
BuildArch: noarch
|
||||||
|
|
||||||
BuildRequires: python3-devel >= 3.1 python3-nose2 python3-pyyaml
|
BuildRequires: python3-devel >= 3.1 python3-nose2 python3-pyyaml python3-pip python3-wheel
|
||||||
|
|
||||||
%description
|
%description
|
||||||
This is a Python implementation of John Gruber’s Markdown.
|
This is a Python implementation of John Gruber’s Markdown.
|
||||||
@ -30,23 +30,28 @@ though there are a few known issues.
|
|||||||
%prep
|
%prep
|
||||||
%autosetup -n Markdown-%{version} -p1
|
%autosetup -n Markdown-%{version} -p1
|
||||||
|
|
||||||
find markdown -type f -name '*.py' -exec sed -i -e '/^#!/{1D}' {} \;
|
|
||||||
find docs -type f -exec sed -i 's/\r//' {} \;
|
|
||||||
|
|
||||||
%build
|
%build
|
||||||
%{__python3} setup.py build
|
%pyproject_build
|
||||||
|
|
||||||
%install
|
%install
|
||||||
%{__python3} setup.py install -O1 --skip-build --root %{buildroot}
|
%pyproject_install
|
||||||
|
|
||||||
|
PYTHONPATH=%{buildroot}%{python3_sitelib} \
|
||||||
|
%{buildroot}%{_bindir}/markdown_py \
|
||||||
|
LICENSE.md > LICENSE.html
|
||||||
|
|
||||||
%check
|
%check
|
||||||
%{__python3} -m unittest discover tests
|
%{__python3} -m unittest discover tests
|
||||||
|
|
||||||
%files -n python3-markdown
|
%files -n python3-markdown
|
||||||
|
%license LICENSE.html LICENSE.md
|
||||||
%{python3_sitelib}/*
|
%{python3_sitelib}/*
|
||||||
%{_bindir}/markdown_py
|
%{_bindir}/markdown_py
|
||||||
|
|
||||||
%changelog
|
%changelog
|
||||||
|
* Mon Jan 8 2024 liyanan <liyanan61@h-partners.com> - 3.5.1-1
|
||||||
|
- Upgrade to 3.5.1
|
||||||
|
|
||||||
* Wed May 31 2023 chenchen <chen_aka_jan@163.com> - 3.4.1-1
|
* Wed May 31 2023 chenchen <chen_aka_jan@163.com> - 3.4.1-1
|
||||||
- Upgrade to 3.4.1
|
- Upgrade to 3.4.1
|
||||||
|
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user