Matej Cepl 2022-05-05 21:24:20 +00:00 committed by Git OBS Bridge
parent 5e93865b1b
commit fc5d767997
2 changed files with 12 additions and 6 deletions

View File

@ -1,3 +1,8 @@
-------------------------------------------------------------------
Thu May 5 21:23:17 UTC 2022 - Matej Cepl <mcepl@suse.com>
- Clean up the SPEC file.
-------------------------------------------------------------------
Thu May 5 20:08:38 UTC 2022 - Benoît Monin <benoit.monin@gmx.fr>

View File

@ -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