python-markdown/python-markdown.spec
wang--ge 35841b43e3 fix unresolvable problem
(cherry picked from commit becb1a484e6858576e3b31467d2fef8d78d13d01)
2022-04-29 09:15:50 +08:00

67 lines
2.0 KiB
RPMSpec
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

%{!?python3_version: %global python3_version %(%{__python3} -c "import sys; sys.stdout.write(sys.version[:3])")}
Name: python-markdown
Version: 3.3.1
Release: 4
Summary: A Python implementation of John Grubers Markdown
License: BSD
URL: https://pypi.org/project/Markdown/
Source0: https://pypi.python.org/packages/source/M/Markdown/Markdown-%{version}.tar.gz
BuildArch: noarch
BuildRequires: python3-devel >= 3.1 python3-nose2 python3-pyyaml
%description
This is a Python implementation of John Grubers 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
%{?python_provide:%python_provide python3-markdown}
%description -n python3-markdown
This is a Python implementation of John Grubers Markdown.
It is almost completely compliant with the reference implementation,
though there are a few known issues.
%prep
%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
%{__python3} setup.py build
%install
%{__python3} setup.py install -O1 --skip-build --root %{buildroot}
%check
%{__python3} -m unittest discover tests
%files -n python3-markdown
%{python3_sitelib}/*
%{_bindir}/markdown_py
%changelog
* 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
* Mon Sep 27 2021 lingsheng <lingsheng@huawei.com> - 3.3.1-3
- Provide python-markdown
* Tue Oct 27 2020 wangxiao <wangxiao65@huawei.com> - 3.3.1-2
- remove python2 buildrequires
* Thu Oct 15 2020 Zhipeng Xie <xiezhipeng1@huawei.com> - 3.3.1-1
- upgrade to 3.3.1
* 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
- Package init