forked from pool/python-myst-parser
Compare commits
1 Commits
| Author | SHA256 | Date | |
|---|---|---|---|
| 6faeea7f31 |
@@ -1,3 +1,13 @@
|
|||||||
|
-------------------------------------------------------------------
|
||||||
|
Thu Aug 21 09:47:54 UTC 2025 - Markéta Machová <mmachova@suse.com>
|
||||||
|
|
||||||
|
- Convert to libalternatives on SLE-16-based and newer systems only
|
||||||
|
|
||||||
|
-------------------------------------------------------------------
|
||||||
|
Wed Jul 16 08:50:54 UTC 2025 - Markéta Machová <mmachova@suse.com>
|
||||||
|
|
||||||
|
- Convert to libalternatives
|
||||||
|
|
||||||
-------------------------------------------------------------------
|
-------------------------------------------------------------------
|
||||||
Thu May 9 08:37:35 UTC 2024 - Dirk Müller <dmueller@suse.com>
|
Thu May 9 08:37:35 UTC 2024 - Dirk Müller <dmueller@suse.com>
|
||||||
|
|
||||||
|
|||||||
@@ -1,7 +1,7 @@
|
|||||||
#
|
#
|
||||||
# spec file for package python-myst-parser
|
# spec file for package python-myst-parser
|
||||||
#
|
#
|
||||||
# Copyright (c) 2024 SUSE LLC
|
# Copyright (c) 2025 SUSE LLC
|
||||||
#
|
#
|
||||||
# All modifications and additions to the file contributed by third parties
|
# All modifications and additions to the file contributed by third parties
|
||||||
# remain the property of their copyright owners, unless otherwise agreed
|
# remain the property of their copyright owners, unless otherwise agreed
|
||||||
@@ -16,6 +16,11 @@
|
|||||||
#
|
#
|
||||||
|
|
||||||
|
|
||||||
|
%if 0%{?suse_version} > 1500
|
||||||
|
%bcond_without libalternatives
|
||||||
|
%else
|
||||||
|
%bcond_with libalternatives
|
||||||
|
%endif
|
||||||
%{?sle15_python_module_pythons}
|
%{?sle15_python_module_pythons}
|
||||||
Name: python-myst-parser
|
Name: python-myst-parser
|
||||||
Version: 3.0.1
|
Version: 3.0.1
|
||||||
@@ -26,24 +31,37 @@ URL: https://myst-parser.readthedocs.io/
|
|||||||
Source: https://github.com/executablebooks/MyST-Parser/archive/refs/tags/v%{version}.tar.gz#/%{name}-%{version}.tar.gz
|
Source: https://github.com/executablebooks/MyST-Parser/archive/refs/tags/v%{version}.tar.gz#/%{name}-%{version}.tar.gz
|
||||||
# PyPI tarball does not contain tests
|
# PyPI tarball does not contain tests
|
||||||
#Source: https://files.pythonhosted.org/packages/source/m/myst-parser/myst-parser-%%{version}.tar.gz
|
#Source: https://files.pythonhosted.org/packages/source/m/myst-parser/myst-parser-%%{version}.tar.gz
|
||||||
BuildRequires: %{python_module flit-core}
|
|
||||||
BuildRequires: %{python_module Jinja2}
|
BuildRequires: %{python_module Jinja2}
|
||||||
BuildRequires: %{python_module PyYAML}
|
BuildRequires: %{python_module PyYAML}
|
||||||
BuildRequires: %{python_module Sphinx}
|
BuildRequires: %{python_module Sphinx}
|
||||||
BuildRequires: %{python_module docutils >= 0.18 with %python-docutils < 0.22}
|
BuildRequires: %{python_module docutils >= 0.18 with %python-docutils < 0.22}
|
||||||
BuildRequires: %{python_module markdown-it-py}
|
BuildRequires: %{python_module flit-core}
|
||||||
BuildRequires: %{python_module markdown-it-py}
|
BuildRequires: %{python_module markdown-it-py}
|
||||||
BuildRequires: %{python_module mdit-py-plugins}
|
BuildRequires: %{python_module mdit-py-plugins}
|
||||||
BuildRequires: %{python_module pip}
|
BuildRequires: %{python_module pip}
|
||||||
BuildRequires: %{python_module wheel}
|
BuildRequires: %{python_module wheel}
|
||||||
|
|
||||||
BuildRequires: fdupes
|
BuildRequires: fdupes
|
||||||
BuildRequires: python-rpm-macros
|
BuildRequires: python-rpm-macros
|
||||||
|
Requires: python-Jinja2
|
||||||
|
Requires: python-PyYAML
|
||||||
|
Requires: python-Sphinx
|
||||||
|
Requires: python-docutils >= 0.18
|
||||||
|
Requires: python-markdown-it-py
|
||||||
|
Requires: python-mdit-py-plugins
|
||||||
|
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 beautifulsoup4}
|
BuildRequires: %{python_module beautifulsoup4}
|
||||||
BuildRequires: %{python_module pygments}
|
BuildRequires: %{python_module pygments}
|
||||||
BuildRequires: %{python_module pytest-regressions}
|
BuildRequires: %{python_module pytest-regressions}
|
||||||
BuildRequires: %{python_module pytest}
|
BuildRequires: %{python_module pytest}
|
||||||
|
# /SECTION
|
||||||
# SECTION docs
|
# SECTION docs
|
||||||
#BuildRequires: python3-Sphinx
|
#BuildRequires: python3-Sphinx
|
||||||
#BuildRequires: python3-Jinja2
|
#BuildRequires: python3-Jinja2
|
||||||
@@ -53,15 +71,6 @@ BuildRequires: %{python_module pytest}
|
|||||||
#BuildRequires: python3-markdown-it-py >= 1
|
#BuildRequires: python3-markdown-it-py >= 1
|
||||||
#BuildRequires: python3-mdit-py-plugins < 0.4
|
#BuildRequires: python3-mdit-py-plugins < 0.4
|
||||||
# /SECTION
|
# /SECTION
|
||||||
Requires: python-Jinja2
|
|
||||||
Requires: python-PyYAML
|
|
||||||
Requires: python-Sphinx
|
|
||||||
Requires: python-docutils >= 0.18
|
|
||||||
Requires: python-markdown-it-py
|
|
||||||
Requires: python-mdit-py-plugins
|
|
||||||
Requires(post): update-alternatives
|
|
||||||
Requires(postun): update-alternatives
|
|
||||||
BuildArch: noarch
|
|
||||||
%python_subpackages
|
%python_subpackages
|
||||||
|
|
||||||
%description
|
%description
|
||||||
@@ -91,6 +100,7 @@ rm docs/.gitignore
|
|||||||
%python_clone -a %{buildroot}%{_bindir}/myst-docutils-xml
|
%python_clone -a %{buildroot}%{_bindir}/myst-docutils-xml
|
||||||
%python_clone -a %{buildroot}%{_bindir}/myst-docutils-demo
|
%python_clone -a %{buildroot}%{_bindir}/myst-docutils-demo
|
||||||
%python_clone -a %{buildroot}%{_bindir}/myst-inv
|
%python_clone -a %{buildroot}%{_bindir}/myst-inv
|
||||||
|
%python_group_libalternatives myst-anchors myst-docutils-html myst-docutils-html5 myst-docutils-latex myst-docutils-pseudoxml myst-docutils-xml myst-docutils-demo myst-inv
|
||||||
%python_expand %fdupes %{buildroot}%{$python_sitelib}
|
%python_expand %fdupes %{buildroot}%{$python_sitelib}
|
||||||
|
|
||||||
%check
|
%check
|
||||||
@@ -106,8 +116,11 @@ donttest="test_parsing or test_errors or test_render or test_html_to_nodes or te
|
|||||||
|
|
||||||
%pytest $ignore -k "not ($donttest)"
|
%pytest $ignore -k "not ($donttest)"
|
||||||
|
|
||||||
|
%pre
|
||||||
|
%python_libalternatives_reset_alternative myst-anchors
|
||||||
|
|
||||||
%post
|
%post
|
||||||
%{python_install_alternative myst-anchors myst-docutils-html myst-docutils-html5 myst-docutils-latex myst-docutils-pseudoxml myst-docutils-xml myst-docutils-demo myst-inv}
|
%python_install_alternative myst-anchors myst-docutils-html myst-docutils-html5 myst-docutils-latex myst-docutils-pseudoxml myst-docutils-xml myst-docutils-demo myst-inv
|
||||||
|
|
||||||
%postun
|
%postun
|
||||||
%python_uninstall_alternative myst-anchors
|
%python_uninstall_alternative myst-anchors
|
||||||
|
|||||||
Reference in New Issue
Block a user