14
0

Accepting request 989737 from home:benoit_monin:branches:devel:languages:python

- update to version 3.4.1
- drop requirement of python-xml, not needed by upstream
- set the minimum python version to 3.7
- require importlib-metadata only for python version < 3.10

OBS-URL: https://build.opensuse.org/request/show/989737
OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-Markdown?expand=0&rev=77
This commit is contained in:
2022-07-18 09:52:39 +00:00
committed by Git OBS Bridge
parent fc5d767997
commit a7ab06c3ab
4 changed files with 20 additions and 7 deletions

View File

@@ -20,7 +20,7 @@
%{?!python_module:%define python_module() python-%{**} python3-%{**}}
%define oldpython python
Name: python-Markdown
Version: 3.3.7
Version: 3.4.1
Release: 0
Summary: Python implementation of Markdown
License: BSD-3-Clause
@@ -29,15 +29,16 @@ URL: https://python-markdown.github.io/
Source: https://files.pythonhosted.org/packages/source/M/Markdown/Markdown-%{version}.tar.gz
Patch0: markdown-3.0-python37.patch
BuildRequires: %{python_module PyYAML}
BuildRequires: %{python_module importlib-metadata >= 4.4}
BuildRequires: %{python_module base >= 3.7}
BuildRequires: %{python_module importlib-metadata >= 4.4 if %python-base < 3.10}
BuildRequires: %{python_module pip}
BuildRequires: %{python_module setuptools}
BuildRequires: %{python_module wheel}
BuildRequires: %{python_module xml}
BuildRequires: fdupes
BuildRequires: python-rpm-macros
%if 0%{?python_version_nodots} < 310
Requires: python-importlib-metadata >= 4.4
Requires: python-xml
%endif
Requires(post): update-alternatives
Requires(postun):update-alternatives
BuildArch: noarch