forked from pool/python-markdown-it-py
- Convert to libalternatives on SLE-16-based and newer systems only
OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-markdown-it-py?expand=0&rev=13
This commit is contained in:
@@ -1,3 +1,8 @@
|
|||||||
|
-------------------------------------------------------------------
|
||||||
|
Thu Aug 21 09:29:32 UTC 2025 - Markéta Machová <mmachova@suse.com>
|
||||||
|
|
||||||
|
- Convert to libalternatives on SLE-16-based and newer systems only
|
||||||
|
|
||||||
-------------------------------------------------------------------
|
-------------------------------------------------------------------
|
||||||
Fri Jul 11 10:44:45 UTC 2025 - Markéta Machová <mmachova@suse.com>
|
Fri Jul 11 10:44:45 UTC 2025 - Markéta Machová <mmachova@suse.com>
|
||||||
|
|
||||||
|
@@ -16,7 +16,11 @@
|
|||||||
#
|
#
|
||||||
|
|
||||||
|
|
||||||
|
%if 0%{?suse_version} > 1500
|
||||||
%bcond_without libalternatives
|
%bcond_without libalternatives
|
||||||
|
%else
|
||||||
|
%bcond_with libalternatives
|
||||||
|
%endif
|
||||||
%{?sle15_python_module_pythons}
|
%{?sle15_python_module_pythons}
|
||||||
Name: python-markdown-it-py
|
Name: python-markdown-it-py
|
||||||
Version: 3.0.0
|
Version: 3.0.0
|
||||||
@@ -29,13 +33,18 @@ BuildRequires: %{python_module flit-core}
|
|||||||
BuildRequires: %{python_module mdurl}
|
BuildRequires: %{python_module mdurl}
|
||||||
BuildRequires: %{python_module pip}
|
BuildRequires: %{python_module pip}
|
||||||
BuildRequires: %{python_module wheel}
|
BuildRequires: %{python_module wheel}
|
||||||
BuildRequires: alts
|
|
||||||
BuildRequires: fdupes
|
BuildRequires: fdupes
|
||||||
BuildRequires: python-rpm-macros
|
BuildRequires: python-rpm-macros
|
||||||
Requires: alts
|
|
||||||
Requires: python-mdurl
|
Requires: python-mdurl
|
||||||
Suggests: python-mdit-py-plugins
|
Suggests: python-mdit-py-plugins
|
||||||
BuildArch: noarch
|
BuildArch: noarch
|
||||||
|
%if %{with libalternatives}
|
||||||
|
BuildRequires: alts
|
||||||
|
Requires: alts
|
||||||
|
%else
|
||||||
|
Requires(post): update-alternatives
|
||||||
|
Requires(postun): update-alternatives
|
||||||
|
%endif
|
||||||
# SECTION tests
|
# SECTION tests
|
||||||
BuildRequires: %{python_module linkify-it-py}
|
BuildRequires: %{python_module linkify-it-py}
|
||||||
BuildRequires: %{python_module pytest-regressions}
|
BuildRequires: %{python_module pytest-regressions}
|
||||||
@@ -63,6 +72,12 @@ sed -i '1{/\/usr\/bin\/env python*/d;}' markdown_it/cli/parse.py
|
|||||||
%check
|
%check
|
||||||
%pytest tests
|
%pytest tests
|
||||||
|
|
||||||
|
%post
|
||||||
|
%python_install_alternative markdown-it
|
||||||
|
|
||||||
|
%postun
|
||||||
|
%python_uninstall_alternative markdown-it
|
||||||
|
|
||||||
%pre
|
%pre
|
||||||
%python_libalternatives_reset_alternative markdown-it
|
%python_libalternatives_reset_alternative markdown-it
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user