- Clean up the SPEC file.
OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-Markdown?expand=0&rev=75
This commit is contained in:
parent
5e93865b1b
commit
fc5d767997
@ -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>
|
||||
|
||||
|
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user