2019-11-29 10:03:30 +08:00
|
|
|
|
%{!?python3_version: %global python3_version %(%{__python3} -c "import sys; sys.stdout.write(sys.version[:3])")}
|
|
|
|
|
|
|
|
|
|
|
|
Name: python-markdown
|
2024-01-08 11:22:27 +08:00
|
|
|
|
Version: 3.5.1
|
2023-05-31 15:38:05 +08:00
|
|
|
|
Release: 1
|
2019-11-29 10:03:30 +08:00
|
|
|
|
Summary: A Python implementation of John Gruber’s Markdown
|
2022-05-10 17:25:02 +08:00
|
|
|
|
License: BSD-3-Clause
|
2019-11-29 10:03:30 +08:00
|
|
|
|
URL: https://pypi.org/project/Markdown/
|
2023-05-31 15:38:05 +08:00
|
|
|
|
Source0: %{pypi_source Markdown}
|
2023-01-16 19:25:47 +08:00
|
|
|
|
|
2019-11-29 10:03:30 +08:00
|
|
|
|
BuildArch: noarch
|
|
|
|
|
|
|
2024-01-08 11:22:27 +08:00
|
|
|
|
BuildRequires: python3-devel >= 3.1 python3-nose2 python3-pyyaml python3-pip python3-wheel
|
2019-11-29 10:03:30 +08:00
|
|
|
|
|
|
|
|
|
|
%description
|
|
|
|
|
|
This is a Python implementation of John Gruber’s Markdown.
|
|
|
|
|
|
It is almost completely compliant with the reference implementation,
|
|
|
|
|
|
though there are a few known issues.
|
|
|
|
|
|
|
|
|
|
|
|
%package -n python3-markdown
|
|
|
|
|
|
Summary: Markdown implementation in Python
|
|
|
|
|
|
Requires: python3 >= 3.1
|
2021-09-27 16:34:39 +08:00
|
|
|
|
%{?python_provide:%python_provide python3-markdown}
|
2019-11-29 10:03:30 +08:00
|
|
|
|
|
|
|
|
|
|
%description -n python3-markdown
|
|
|
|
|
|
This is a Python implementation of John Gruber’s Markdown.
|
|
|
|
|
|
It is almost completely compliant with the reference implementation,
|
|
|
|
|
|
though there are a few known issues.
|
|
|
|
|
|
|
|
|
|
|
|
%prep
|
|
|
|
|
|
%autosetup -n Markdown-%{version} -p1
|
|
|
|
|
|
|
|
|
|
|
|
%build
|
2024-01-08 11:22:27 +08:00
|
|
|
|
%pyproject_build
|
2019-11-29 10:03:30 +08:00
|
|
|
|
|
|
|
|
|
|
%install
|
2024-01-08 11:22:27 +08:00
|
|
|
|
%pyproject_install
|
|
|
|
|
|
|
|
|
|
|
|
PYTHONPATH=%{buildroot}%{python3_sitelib} \
|
|
|
|
|
|
%{buildroot}%{_bindir}/markdown_py \
|
|
|
|
|
|
LICENSE.md > LICENSE.html
|
2019-11-29 10:03:30 +08:00
|
|
|
|
|
|
|
|
|
|
%check
|
2020-10-15 04:52:48 -04:00
|
|
|
|
%{__python3} -m unittest discover tests
|
2019-11-29 10:03:30 +08:00
|
|
|
|
|
|
|
|
|
|
%files -n python3-markdown
|
2024-01-08 11:22:27 +08:00
|
|
|
|
%license LICENSE.html LICENSE.md
|
2019-11-29 10:03:30 +08:00
|
|
|
|
%{python3_sitelib}/*
|
2020-10-15 04:52:48 -04:00
|
|
|
|
%{_bindir}/markdown_py
|
2019-11-29 10:03:30 +08:00
|
|
|
|
|
|
|
|
|
|
%changelog
|
2024-01-08 11:22:27 +08:00
|
|
|
|
* Mon Jan 8 2024 liyanan <liyanan61@h-partners.com> - 3.5.1-1
|
|
|
|
|
|
- Upgrade to 3.5.1
|
|
|
|
|
|
|
2023-05-31 15:38:05 +08:00
|
|
|
|
* Wed May 31 2023 chenchen <chen_aka_jan@163.com> - 3.4.1-1
|
|
|
|
|
|
- Upgrade to 3.4.1
|
|
|
|
|
|
|
2023-01-16 19:25:47 +08:00
|
|
|
|
* Tue Jan 17 2023 caofei <caofei@xfusion.com> - 3.3.7-2
|
|
|
|
|
|
- Update th/td to use style attribute
|
|
|
|
|
|
|
2022-06-13 16:44:43 +08:00
|
|
|
|
* Thu Jun 09 2022 SimpleUpdate Robot <tc@openeuler.org> - 3.3.7-1
|
|
|
|
|
|
- Upgrade to version 3.3.7
|
|
|
|
|
|
|
2022-05-10 17:25:02 +08:00
|
|
|
|
* Tue May 10 2022 Ge Wang <wangge20@h-partner.com> - 3.3.1-5
|
|
|
|
|
|
- License compliance rectification
|
|
|
|
|
|
|
2022-01-05 17:24:28 +08:00
|
|
|
|
* Wed Jan 05 2022 Ge Wang <wangge20@huawei.com> - 3.3.1-4
|
|
|
|
|
|
- Change BuildRequires from python3-nose to python3-nose2 due to python3-nose is abandoned
|
|
|
|
|
|
|
2021-09-27 16:34:39 +08:00
|
|
|
|
* Mon Sep 27 2021 lingsheng <lingsheng@huawei.com> - 3.3.1-3
|
|
|
|
|
|
- Provide python-markdown
|
|
|
|
|
|
|
2020-10-29 11:47:45 +08:00
|
|
|
|
* Tue Oct 27 2020 wangxiao <wangxiao65@huawei.com> - 3.3.1-2
|
2020-10-29 17:13:24 +08:00
|
|
|
|
- remove python2 buildrequires
|
2020-10-29 11:47:45 +08:00
|
|
|
|
|
2020-10-15 04:52:48 -04:00
|
|
|
|
* Thu Oct 15 2020 Zhipeng Xie <xiezhipeng1@huawei.com> - 3.3.1-1
|
|
|
|
|
|
- upgrade to 3.3.1
|
|
|
|
|
|
|
2020-09-29 10:11:54 +08:00
|
|
|
|
* Tue Sep 29 2020 liuweibo <liuweibo10@huawei.com> - 2.4.1-14
|
|
|
|
|
|
- Fix Source0
|
|
|
|
|
|
|
|
|
|
|
|
* Tue Nov 26 2019 openEuler Buildteam <buildteam@openeuler.org> - 2.4.1-13
|
2019-11-29 10:03:30 +08:00
|
|
|
|
- Package init
|