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-08-01 12:51:58 +02:00
|
|
|
Version: 9.1.21
|
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
|
|
|
|
BuildRequires: %{python_module Markdown >= 3.2}
|
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}
|
2023-03-28 08:22:15 +02:00
|
|
|
BuildRequires: %{python_module jinja2 >= 3.0}
|
|
|
|
BuildRequires: %{python_module mkdocs >= 1.4.2}
|
|
|
|
BuildRequires: %{python_module mkdocs-material-extensions >= 1.1}
|
2023-03-28 10:43:01 +02:00
|
|
|
BuildRequires: %{python_module pip}
|
2023-03-28 08:22:15 +02:00
|
|
|
BuildRequires: %{python_module pygments >= 2.12}
|
|
|
|
BuildRequires: %{python_module pymdown-extensions >= 9.4}
|
2023-03-28 10:43:01 +02:00
|
|
|
BuildRequires: %{python_module setuptools}
|
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-03-28 08:22:15 +02:00
|
|
|
Requires: python-Markdown >= 3.2
|
2023-03-28 10:43:01 +02:00
|
|
|
Requires: python-jinja2 >= 3.0
|
2023-03-28 08:22:15 +02:00
|
|
|
Requires: python-mkdocs >= 1.4.2
|
|
|
|
Requires: python-mkdocs-material-extensions >= 1.1
|
|
|
|
Requires: python-pygments >= 2.14
|
|
|
|
Requires: python-pymdown-extensions >= 9.9.1
|
2023-04-05 08:46:29 +02:00
|
|
|
# Requirements for plugins
|
|
|
|
# https://github.com/squidfunk/mkdocs-material/blob/master/requirements.txt#L29
|
2023-04-13 08:55:18 +02:00
|
|
|
Requires: python-colorama >= 0.4
|
|
|
|
Requires: python-regex => 2022.4.24
|
|
|
|
Requires: python-requests >= 2.26
|
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
|