From 7b49a44132045dead9f963eec586b189c1b703ff Mon Sep 17 00:00:00 2001 From: Thomas Moschny Date: Sat, 27 Feb 2021 09:30:14 +0100 Subject: [PATCH] Apply PR6 by Igor Raits : Support for building on EPEL8 + upstream tests invocation. Remove unused BR on python3-tidy (we'd need pytidylib instead, which doesn't seem to be packaged). --- python-markdown.spec | 15 ++++++++++++--- 1 file changed, 12 insertions(+), 3 deletions(-) diff --git a/python-markdown.spec b/python-markdown.spec index 6ec8f10..fce0b0f 100644 --- a/python-markdown.spec +++ b/python-markdown.spec @@ -3,7 +3,7 @@ Name: python-%{pkgname} Version: 3.3.4 -Release: 1%{?dist} +Release: 2%{?dist} Summary: Markdown implementation in Python License: BSD URL: https://python-markdown.github.io/ @@ -20,8 +20,11 @@ there are a few very minor differences. Summary: Markdown implementation in Python BuildRequires: python%{python3_pkgversion}-devel BuildRequires: python%{python3_pkgversion}-PyYAML -BuildRequires: python%{python3_pkgversion}-tidy BuildRequires: python%{python3_pkgversion}-setuptools +%if 0%{?rhel} && 0%{?rhel} < 9 +BuildRequires: python%{python3_pkgversion}-importlib-metadata +Requires: python%{python3_pkgversion}-importlib-metadata +%endif Conflicts: python2-%{pkgname} < 3.1-2 %{?python_provide:%python_provide python%{python3_pkgversion}-%{pkgname}} @@ -49,7 +52,7 @@ PYTHONPATH=%{buildroot}%{python3_sitelib} \ %check -%{__python3} ./setup.py test +%python3 -m unittest discover tests %files -n python%{python3_pkgversion}-%{pkgname} @@ -62,6 +65,12 @@ PYTHONPATH=%{buildroot}%{python3_sitelib} \ %changelog +* Sat Feb 27 2021 Thomas Moschny - 3.3.4-2 +- Apply PR6 by Igor Raits : Support + for building on EPEL8 + upstream tests invocation. +- Remove unused BR on python3-tidy (we'd need pytidylib instead, which + doesn't seem to be packaged). + * Sat Feb 27 2021 Thomas Moschny - 3.3.4-1 - Update to 3.3.4.