From fc5d76799783d0c160f72c00794f26159dc50595f26c250fbf4ddd0349017d5c Mon Sep 17 00:00:00 2001 From: Matej Cepl Date: Thu, 5 May 2022 21:24:20 +0000 Subject: [PATCH] - Clean up the SPEC file. OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-Markdown?expand=0&rev=75 --- python-Markdown.changes | 5 +++++ python-Markdown.spec | 13 +++++++------ 2 files changed, 12 insertions(+), 6 deletions(-) diff --git a/python-Markdown.changes b/python-Markdown.changes index 0dc599c..716ab13 100644 --- a/python-Markdown.changes +++ b/python-Markdown.changes @@ -1,3 +1,8 @@ +------------------------------------------------------------------- +Thu May 5 21:23:17 UTC 2022 - Matej Cepl + +- Clean up the SPEC file. + ------------------------------------------------------------------- Thu May 5 20:08:38 UTC 2022 - BenoƮt Monin diff --git a/python-Markdown.spec b/python-Markdown.spec index b8f966b..ed683f6 100644 --- a/python-Markdown.spec +++ b/python-Markdown.spec @@ -30,7 +30,9 @@ Source: https://files.pythonhosted.org/packages/source/M/Markdown/Markdo Patch0: markdown-3.0-python37.patch BuildRequires: %{python_module PyYAML} BuildRequires: %{python_module importlib-metadata >= 4.4} +BuildRequires: %{python_module pip} BuildRequires: %{python_module setuptools} +BuildRequires: %{python_module wheel} BuildRequires: %{python_module xml} BuildRequires: fdupes BuildRequires: python-rpm-macros @@ -49,20 +51,19 @@ on what exactly is supported and what is not. Additional features are supported by the [Available Extensions][]. %prep -%setup -q -n Markdown-%{version} -%autopatch -p1 +%autosetup -p1 -n Markdown-%{version} %build -%python_build +%pyproject_wheel %install -%python_install +%pyproject_install %python_expand %fdupes %{buildroot}%{$python_sitelib} %python_clone -a %{buildroot}%{_bindir}/markdown_py %check -%python_exec -m unittest discover +%pyunittest discover -v %post %python_install_alternative markdown_py @@ -74,7 +75,7 @@ supported by the [Available Extensions][]. %license LICENSE.md %doc README.md docs/* %python_alternative %{_bindir}/markdown_py -%{python_sitelib}/Markdown-%{version}-py%{python_version}.egg-info +%{python_sitelib}/Markdown-%{version}*-info %{python_sitelib}/markdown %changelog