2012-07-23 14:54:17 +02:00
|
|
|
#
|
|
|
|
# spec file for package python-Markdown
|
|
|
|
#
|
2023-03-26 18:47:40 +02:00
|
|
|
# Copyright (c) 2023 SUSE LLC
|
2012-07-23 14:54:17 +02: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 13:22:00 +01:00
|
|
|
# Please submit bugfixes or comments via https://bugs.opensuse.org/
|
2012-11-22 15:50:52 +01:00
|
|
|
#
|
2012-07-23 14:54:17 +02:00
|
|
|
|
|
|
|
|
2023-06-20 22:48:54 +02:00
|
|
|
%{?sle15_python_module_pythons}
|
2012-07-23 14:54:17 +02:00
|
|
|
Name: python-Markdown
|
2023-11-02 08:54:03 +01:00
|
|
|
Version: 3.5.1
|
2012-07-23 14:54:17 +02:00
|
|
|
Release: 0
|
|
|
|
Summary: Python implementation of Markdown
|
2012-11-22 15:50:52 +01:00
|
|
|
License: BSD-3-Clause
|
2012-07-23 14:54:17 +02:00
|
|
|
Group: Development/Languages/Python
|
2020-02-13 21:49:11 +01:00
|
|
|
URL: https://python-markdown.github.io/
|
2016-09-26 10:23:49 +02:00
|
|
|
Source: https://files.pythonhosted.org/packages/source/M/Markdown/Markdown-%{version}.tar.gz
|
2018-10-19 21:47:18 +02:00
|
|
|
Patch0: markdown-3.0-python37.patch
|
2017-05-19 16:14:31 +02:00
|
|
|
BuildRequires: %{python_module PyYAML}
|
2023-10-09 01:15:32 +02:00
|
|
|
BuildRequires: %{python_module base >= 3.8}
|
2022-07-18 11:52:39 +02:00
|
|
|
BuildRequires: %{python_module importlib-metadata >= 4.4 if %python-base < 3.10}
|
2022-05-05 23:24:20 +02:00
|
|
|
BuildRequires: %{python_module pip}
|
2018-03-19 12:33:54 +01:00
|
|
|
BuildRequires: %{python_module setuptools}
|
2022-05-05 23:24:20 +02:00
|
|
|
BuildRequires: %{python_module wheel}
|
2017-05-19 16:14:31 +02:00
|
|
|
BuildRequires: fdupes
|
|
|
|
BuildRequires: python-rpm-macros
|
2022-07-18 11:52:39 +02:00
|
|
|
%if 0%{?python_version_nodots} < 310
|
2021-11-24 22:22:53 +01:00
|
|
|
Requires: python-importlib-metadata >= 4.4
|
2022-07-18 11:52:39 +02:00
|
|
|
%endif
|
2018-03-19 12:33:54 +01:00
|
|
|
Requires(post): update-alternatives
|
2021-11-21 12:07:06 +01:00
|
|
|
Requires(postun):update-alternatives
|
2012-07-23 14:54:17 +02:00
|
|
|
BuildArch: noarch
|
2017-05-19 16:14:31 +02:00
|
|
|
%python_subpackages
|
|
|
|
|
2012-07-23 14:54:17 +02:00
|
|
|
%description
|
2018-03-19 12:33:54 +01:00
|
|
|
This is a Python implementation of John Gruber's [Markdown][].
|
2012-07-23 14:54:17 +02:00
|
|
|
It is almost completely compliant with the reference implementation,
|
2018-03-19 12:33:54 +01: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 14:54:17 +02:00
|
|
|
supported by the [Available Extensions][].
|
|
|
|
|
|
|
|
%prep
|
2022-05-05 23:24:20 +02:00
|
|
|
%autosetup -p1 -n Markdown-%{version}
|
2012-07-23 14:54:17 +02:00
|
|
|
|
|
|
|
%build
|
2022-05-05 23:24:20 +02:00
|
|
|
%pyproject_wheel
|
2012-07-23 14:54:17 +02:00
|
|
|
|
|
|
|
%install
|
2022-05-05 23:24:20 +02:00
|
|
|
%pyproject_install
|
2018-12-10 15:41:46 +01:00
|
|
|
%python_expand %fdupes %{buildroot}%{$python_sitelib}
|
2012-07-23 14:54:17 +02:00
|
|
|
|
2017-05-19 16:14:31 +02:00
|
|
|
%python_clone -a %{buildroot}%{_bindir}/markdown_py
|
2014-07-11 01:20:55 +02:00
|
|
|
|
2012-11-22 15:50:52 +01:00
|
|
|
%check
|
2022-05-05 23:24:20 +02:00
|
|
|
%pyunittest discover -v
|
2012-07-23 14:54:17 +02:00
|
|
|
|
2014-07-11 01:20:55 +02:00
|
|
|
%post
|
2017-05-19 16:14:31 +02:00
|
|
|
%python_install_alternative markdown_py
|
2014-07-11 01:20:55 +02:00
|
|
|
|
|
|
|
%postun
|
2017-05-19 16:14:31 +02:00
|
|
|
%python_uninstall_alternative markdown_py
|
2014-07-11 01:20:55 +02:00
|
|
|
|
2017-05-19 16:14:31 +02:00
|
|
|
%files %{python_files}
|
2018-03-19 12:33:54 +01:00
|
|
|
%license LICENSE.md
|
|
|
|
%doc README.md docs/*
|
2017-05-19 16:14:31 +02:00
|
|
|
%python_alternative %{_bindir}/markdown_py
|
2022-05-05 23:24:20 +02:00
|
|
|
%{python_sitelib}/Markdown-%{version}*-info
|
2014-07-11 01:20:55 +02:00
|
|
|
%{python_sitelib}/markdown
|
2012-07-23 14:54:17 +02:00
|
|
|
|
|
|
|
%changelog
|