2012-07-23 12:54:17 +00:00
|
|
|
#
|
|
|
|
# spec file for package python-Markdown
|
|
|
|
#
|
2024-01-13 20:32:32 +00:00
|
|
|
# Copyright (c) 2024 SUSE LLC
|
2012-07-23 12:54:17 +00:00
|
|
|
#
|
|
|
|
# All modifications and additions to the file contributed by third parties
|
|
|
|
# remain the property of their copyright owners, unless otherwise agreed
|
|
|
|
# upon. The license for this file, and modifications and additions to the
|
|
|
|
# file, is the same license as for the pristine package itself (unless the
|
|
|
|
# license for the pristine package is not an Open Source License, in which
|
|
|
|
# case the license is the MIT License). An "Open Source License" is a
|
|
|
|
# license that conforms to the Open Source Definition (Version 1.9)
|
|
|
|
# published by the Open Source Initiative.
|
|
|
|
|
2019-03-15 12:22:00 +00:00
|
|
|
# Please submit bugfixes or comments via https://bugs.opensuse.org/
|
2012-11-22 14:50:52 +00:00
|
|
|
#
|
2012-07-23 12:54:17 +00:00
|
|
|
|
|
|
|
|
2023-06-20 20:48:54 +00:00
|
|
|
%{?sle15_python_module_pythons}
|
2012-07-23 12:54:17 +00:00
|
|
|
Name: python-Markdown
|
2024-01-13 20:32:32 +00:00
|
|
|
Version: 3.5.2
|
2012-07-23 12:54:17 +00:00
|
|
|
Release: 0
|
|
|
|
Summary: Python implementation of Markdown
|
2012-11-22 14:50:52 +00:00
|
|
|
License: BSD-3-Clause
|
2012-07-23 12:54:17 +00:00
|
|
|
Group: Development/Languages/Python
|
2020-02-13 20:49:11 +00:00
|
|
|
URL: https://python-markdown.github.io/
|
2016-09-26 08:23:49 +00:00
|
|
|
Source: https://files.pythonhosted.org/packages/source/M/Markdown/Markdown-%{version}.tar.gz
|
2018-10-19 19:47:18 +00:00
|
|
|
Patch0: markdown-3.0-python37.patch
|
2017-05-19 14:14:31 +00:00
|
|
|
BuildRequires: %{python_module PyYAML}
|
2023-10-08 23:15:32 +00:00
|
|
|
BuildRequires: %{python_module base >= 3.8}
|
2022-07-18 09:52:39 +00:00
|
|
|
BuildRequires: %{python_module importlib-metadata >= 4.4 if %python-base < 3.10}
|
2022-05-05 21:24:20 +00:00
|
|
|
BuildRequires: %{python_module pip}
|
2018-03-19 11:33:54 +00:00
|
|
|
BuildRequires: %{python_module setuptools}
|
2022-05-05 21:24:20 +00:00
|
|
|
BuildRequires: %{python_module wheel}
|
2017-05-19 14:14:31 +00:00
|
|
|
BuildRequires: fdupes
|
|
|
|
BuildRequires: python-rpm-macros
|
2022-07-18 09:52:39 +00:00
|
|
|
%if 0%{?python_version_nodots} < 310
|
2021-11-24 21:22:53 +00:00
|
|
|
Requires: python-importlib-metadata >= 4.4
|
2022-07-18 09:52:39 +00:00
|
|
|
%endif
|
2018-03-19 11:33:54 +00:00
|
|
|
Requires(post): update-alternatives
|
2021-11-21 11:07:06 +00:00
|
|
|
Requires(postun):update-alternatives
|
2012-07-23 12:54:17 +00:00
|
|
|
BuildArch: noarch
|
2017-05-19 14:14:31 +00:00
|
|
|
%python_subpackages
|
|
|
|
|
2012-07-23 12:54:17 +00:00
|
|
|
%description
|
2018-03-19 11:33:54 +00:00
|
|
|
This is a Python implementation of John Gruber's [Markdown][].
|
2012-07-23 12:54:17 +00:00
|
|
|
It is almost completely compliant with the reference implementation,
|
2018-03-19 11:33:54 +00:00
|
|
|
though there are a few known issues. See [Features][] for information
|
|
|
|
on what exactly is supported and what is not. Additional features are
|
2012-07-23 12:54:17 +00:00
|
|
|
supported by the [Available Extensions][].
|
|
|
|
|
|
|
|
%prep
|
2022-05-05 21:24:20 +00:00
|
|
|
%autosetup -p1 -n Markdown-%{version}
|
2012-07-23 12:54:17 +00:00
|
|
|
|
|
|
|
%build
|
2022-05-05 21:24:20 +00:00
|
|
|
%pyproject_wheel
|
2012-07-23 12:54:17 +00:00
|
|
|
|
|
|
|
%install
|
2022-05-05 21:24:20 +00:00
|
|
|
%pyproject_install
|
2018-12-10 14:41:46 +00:00
|
|
|
%python_expand %fdupes %{buildroot}%{$python_sitelib}
|
2012-07-23 12:54:17 +00:00
|
|
|
|
2017-05-19 14:14:31 +00:00
|
|
|
%python_clone -a %{buildroot}%{_bindir}/markdown_py
|
2014-07-10 23:20:55 +00:00
|
|
|
|
2012-11-22 14:50:52 +00:00
|
|
|
%check
|
2022-05-05 21:24:20 +00:00
|
|
|
%pyunittest discover -v
|
2012-07-23 12:54:17 +00:00
|
|
|
|
2014-07-10 23:20:55 +00:00
|
|
|
%post
|
2017-05-19 14:14:31 +00:00
|
|
|
%python_install_alternative markdown_py
|
2014-07-10 23:20:55 +00:00
|
|
|
|
|
|
|
%postun
|
2017-05-19 14:14:31 +00:00
|
|
|
%python_uninstall_alternative markdown_py
|
2014-07-10 23:20:55 +00:00
|
|
|
|
2017-05-19 14:14:31 +00:00
|
|
|
%files %{python_files}
|
2018-03-19 11:33:54 +00:00
|
|
|
%license LICENSE.md
|
|
|
|
%doc README.md docs/*
|
2017-05-19 14:14:31 +00:00
|
|
|
%python_alternative %{_bindir}/markdown_py
|
2022-05-05 21:24:20 +00:00
|
|
|
%{python_sitelib}/Markdown-%{version}*-info
|
2014-07-10 23:20:55 +00:00
|
|
|
%{python_sitelib}/markdown
|
2012-07-23 12:54:17 +00:00
|
|
|
|
|
|
|
%changelog
|