diff --git a/python-markdown-math.changes b/python-python-markdown-math.changes similarity index 82% rename from python-markdown-math.changes rename to python-python-markdown-math.changes index 4b0204c..bd8ff6e 100644 --- a/python-markdown-math.changes +++ b/python-python-markdown-math.changes @@ -1,3 +1,8 @@ +------------------------------------------------------------------- +Tue Nov 12 15:08:49 UTC 2024 - Matej Cepl + +- Fix the name of the package, it should be python-python-markdown-math + ------------------------------------------------------------------- Mon May 31 10:40:07 UTC 2021 - pgajdos@suse.com diff --git a/python-markdown-math.spec b/python-python-markdown-math.spec similarity index 72% rename from python-markdown-math.spec rename to python-python-markdown-math.spec index f703235..897f91e 100644 --- a/python-markdown-math.spec +++ b/python-python-markdown-math.spec @@ -1,7 +1,7 @@ # -# spec file for package python-markdown-math +# spec file for package python-python-markdown-math # -# Copyright (c) 2021 SUSE LLC +# Copyright (c) 2024 SUSE LLC # # All modifications and additions to the file contributed by third parties # remain the property of their copyright owners, unless otherwise agreed @@ -16,17 +16,18 @@ # -%{?!python_module:%define python_module() python-%{**} python3-%{**}} -%define skip_python2 1 -Name: python-markdown-math +Name: python-python-markdown-math Version: 0.8 Release: 0 Summary: Math extension for Python-Markdown License: BSD-3-Clause -Group: Development/Languages/Python +Provides: python-markdown-math = %version-%release +Obsoletes: python-markdown-math < %version-%release URL: https://github.com/mitya57/python-markdown-math Source: https://files.pythonhosted.org/packages/source/p/python-markdown-math/python-markdown-math-%{version}.tar.gz +BuildRequires: %{python_module pip} BuildRequires: %{python_module setuptools} +BuildRequires: %{python_module wheel} BuildRequires: fdupes BuildRequires: python-rpm-macros Requires: python-Markdown @@ -40,13 +41,13 @@ BuildRequires: %{python_module Markdown} This extension adds math formulas support to Python-Markdown. %prep -%setup -q +%autosetup -p1 -n python-markdown-math-%{version} %build -%python_build +%pyproject_wheel %install -%python_install +%pyproject_install %python_expand %fdupes %{buildroot}%{$python_sitelib} %check @@ -55,6 +56,8 @@ This extension adds math formulas support to Python-Markdown. %files %{python_files} %license LICENSE %doc README.md changelog -%{python_sitelib}/* +%{python_sitelib}/mdx_math.py +%pycache_only %{python_sitelib}/__pycache__/mdx_math*.pyc +%{python_sitelib}/python_markdown_math-%{version}*-info %changelog