2023-03-28 08:22:15 +02:00
|
|
|
#
|
|
|
|
# spec file for package python-mkdocs-material
|
|
|
|
#
|
|
|
|
# Copyright (c) 2023 SUSE LLC
|
|
|
|
#
|
|
|
|
# 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.
|
|
|
|
|
|
|
|
# Please submit bugfixes or comments via https://bugs.opensuse.org/
|
|
|
|
#
|
|
|
|
|
|
|
|
|
2023-05-05 14:20:54 +02:00
|
|
|
%{?sle15_python_module_pythons}
|
2023-03-28 08:22:15 +02:00
|
|
|
Name: python-mkdocs-material
|
2023-12-07 16:45:27 +01:00
|
|
|
Version: 9.5.0
|
2023-03-28 08:22:15 +02:00
|
|
|
Release: 0
|
|
|
|
Summary: Material theme for mkdocs
|
|
|
|
License: MIT
|
|
|
|
URL: https://squidfunk.github.io/mkdocs-material/
|
|
|
|
Source: https://files.pythonhosted.org/packages/source/m/mkdocs_material/mkdocs_material-%{version}.tar.gz
|
2023-03-28 10:43:01 +02:00
|
|
|
# PATCH-FIX-OPENSUSE no-hatchling-requirements_txt.patch mcepl@suse.com
|
|
|
|
# Manually create project.dependencies in pyproject.toml instead of using
|
|
|
|
# hatch_requirements_txt module
|
|
|
|
# This is a brutal hack, but otherwise (see sr#1072844 for
|
|
|
|
# details) we need python-hatch_requirements_txt which pulls in
|
|
|
|
# excessive number of packages (starting with python-conincidence,
|
|
|
|
# python-whey, python-domdf-python-tools, and many others). Until
|
|
|
|
# we have these in openSUSE, we should stay with this
|
|
|
|
# hand-managed patch.
|
|
|
|
Patch0: no-hatchling-requirements_txt.patch
|
2023-03-28 08:22:15 +02:00
|
|
|
BuildRequires: %{python_module hatch_nodejs_version}
|
2023-03-28 10:43:01 +02:00
|
|
|
BuildRequires: %{python_module hatchling}
|
|
|
|
BuildRequires: %{python_module pip}
|
|
|
|
BuildRequires: %{python_module setuptools}
|
2023-10-30 19:47:10 +01:00
|
|
|
BuildRequires: %{python_module trove-classifiers >= 2023.10.18}
|
2023-09-07 12:01:07 +02:00
|
|
|
# Requirements for core
|
|
|
|
# https://github.com/squidfunk/mkdocs-material/blob/master/requirements.txt#L21
|
|
|
|
BuildRequires: %{python_module Jinja2 >= 3.1}
|
|
|
|
BuildRequires: %{python_module Markdown >= 3.4}
|
2023-09-25 09:26:03 +02:00
|
|
|
BuildRequires: %{python_module mkdocs >= 1.5.3}
|
2023-10-30 19:47:10 +01:00
|
|
|
BuildRequires: %{python_module mkdocs-material-extensions >= 1.3}
|
2023-09-07 12:01:07 +02:00
|
|
|
BuildRequires: %{python_module pygments >= 2.16}
|
|
|
|
BuildRequires: %{python_module pymdown-extensions >= 10.3}
|
|
|
|
# Requirements for plugins
|
|
|
|
# https://github.com/squidfunk/mkdocs-material/blob/master/requirements.txt#L29
|
2023-09-25 09:26:03 +02:00
|
|
|
BuildRequires: %{python_module Babel >= 2.10}
|
2023-09-07 12:01:07 +02:00
|
|
|
BuildRequires: %{python_module colorama >= 0.4}
|
2023-09-25 09:26:03 +02:00
|
|
|
BuildRequires: %{python_module paginate >= 0.5}
|
2023-09-07 12:01:07 +02:00
|
|
|
BuildRequires: %{python_module regex => 2023.8}
|
|
|
|
BuildRequires: %{python_module requests >= 2.31}
|
2023-03-28 08:22:15 +02:00
|
|
|
BuildRequires: fdupes
|
2023-03-28 10:43:01 +02:00
|
|
|
BuildRequires: python-rpm-macros
|
2023-04-05 08:46:29 +02:00
|
|
|
# Requirements for core
|
|
|
|
# https://github.com/squidfunk/mkdocs-material/blob/master/requirements.txt#L21
|
2023-09-07 12:01:07 +02:00
|
|
|
Requires: python-Jinja2 >= 3.1
|
|
|
|
Requires: python-Markdown >= 3.4
|
|
|
|
Requires: python-mkdocs >= 1.5
|
2023-03-28 08:22:15 +02:00
|
|
|
Requires: python-mkdocs-material-extensions >= 1.1
|
2023-09-07 12:01:07 +02:00
|
|
|
Requires: python-pygments >= 2.16
|
|
|
|
Requires: python-pymdown-extensions >= 10.3
|
2023-04-05 08:46:29 +02:00
|
|
|
# Requirements for plugins
|
|
|
|
# https://github.com/squidfunk/mkdocs-material/blob/master/requirements.txt#L29
|
2023-09-25 09:26:03 +02:00
|
|
|
Requires: python-Babel >= 2.10
|
2023-04-13 08:55:18 +02:00
|
|
|
Requires: python-colorama >= 0.4
|
2023-09-25 09:26:03 +02:00
|
|
|
Requires: python-paginate >= 0.5
|
2023-09-07 12:01:07 +02:00
|
|
|
Requires: python-regex => 2023.8
|
|
|
|
Requires: python-requests >= 2.31
|
2023-04-05 08:46:29 +02:00
|
|
|
|
2023-03-28 08:22:15 +02:00
|
|
|
BuildArch: noarch
|
|
|
|
%python_subpackages
|
|
|
|
|
|
|
|
%description
|
|
|
|
Material theme for mkdocs
|
|
|
|
|
|
|
|
%prep
|
2023-03-28 10:43:01 +02:00
|
|
|
%autosetup -p1 -n mkdocs_material-%{version}
|
2023-03-28 08:22:15 +02:00
|
|
|
|
|
|
|
%build
|
|
|
|
%pyproject_wheel
|
|
|
|
|
|
|
|
%install
|
|
|
|
%pyproject_install
|
|
|
|
%python_expand %fdupes %{buildroot}%{$python_sitelib}
|
|
|
|
|
|
|
|
# no tests available upstream
|
|
|
|
|
|
|
|
%files %{python_files}
|
|
|
|
%doc README.md
|
|
|
|
%license LICENSE
|
|
|
|
%{python_sitelib}/material/
|
|
|
|
%{python_sitelib}/mkdocs_material-%{version}.dist-info/
|
|
|
|
|
|
|
|
%changelog
|