## START: Set by rpmautospec ## (rpmautospec version 0.8.4) ## RPMAUTOSPEC: autorelease, autochangelog %define autorelease(e:s:pb:n) %{?-p:0.}%{lua: release_number = 3; base_release_number = tonumber(rpm.expand("%{?-b*}%{!?-b:1}")); print(release_number + base_release_number - 1); }%{?-e:.%{-e*}}%{?-s:.%{-s*}}%{!?-n:%{?dist}} ## END: Set by rpmautospec # Tests hit the network (PyPI) and depend on d2/material rendering; # unreliable in a build root. Enable with --with tests. %bcond_with tests %global forgeurl https://github.com/fralau/mkdocs-macros-plugin Name: python-mkdocs-macros-plugin Version: 1.5.0 Release: %autorelease Summary: Unleash the power of MkDocs with macros and variables License: MIT URL: https://mkdocs-macros-plugin.readthedocs.io # PyPI tarball is missing test artifacts Source: %{forgeurl}/archive/v%{version}/mkdocs-macros-plugin-%{version}.tar.gz # Drop shebang from library module (fixes rpmlint non-executable-script). Patch: mkdocs-macros-plugin-no-shebang-util.patch BuildArch: noarch BuildRequires: python3-devel BuildRequires: python3-hjson BuildRequires: python3-jinja2 BuildRequires: python3-requests BuildRequires: python3-termcolor BuildRequires: mkdocs %if %{with tests} BuildRequires: d2 BuildRequires: mkdocs BuildRequires: mkdocs-material BuildRequires: python3-mkdocs-d2-plugin BuildRequires: python3-mkdocs-include-markdown-plugin BuildRequires: python3-mkdocs-macros-test BuildRequires: python3-mkdocs-test BuildRequires: python3-pytest %endif %global _description %{expand: mkdocs-macros-plugin is a plugin that makes it easier for contributors of an MkDocs website to produce richer and more beautiful pages. It transforms the markdown pages into jinja2 templates that use variables, calls to macros and custom filters.} %description %_description %package -n python3-mkdocs-macros-plugin Summary: %{summary} %description -n python3-mkdocs-macros-plugin %_description %prep %autosetup -p1 -n mkdocs-macros-plugin-%{version} %generate_buildrequires %if %{with tests} %pyproject_buildrequires -x test %else %pyproject_buildrequires %endif %build %pyproject_wheel %install %pyproject_install %pyproject_save_files -l mkdocs_macros # We don't want to install the test package rm -r %{buildroot}%{python3_sitelib}/test/ %check %if %{with tests} # Disable broken tests that need further investigation %pytest -v \ --deselect=test/module/test_site.py::test_pages \ --deselect=test/opt_in/test_site.py::test_opt_in \ --deselect=test/register_macros/test_doc.py::test_pages \ --deselect=test/simple/test_site.py::test_pages \ %{nil} %else %pyproject_check_import %endif %files -n python3-mkdocs-macros-plugin -f %{pyproject_files} %doc README.md CHANGELOG.md %changelog ## START: Generated by rpmautospec * Wed Nov 04 2026 Filipe Rosset - 1.5.0-3 - fix BuildRequires * Wed Nov 04 2026 Filipe Rosset - 1.5.0-2 - use latest super-collections * Wed Nov 04 2026 Filipe Rosset - 1.5.0-1 - Update to 1.5.0 rhbz#2566666 * Thu Aug 06 2026 Python Maint - 1.3.7-3 - Rebuilt for Python 3.15 * Thu Jul 16 2026 Fedora Release Engineering - 1.3.7-2 - Rebuilt for https://fedoraproject.org/wiki/Fedora_45_Mass_Rebuild * Thu Mar 05 2026 Davide Cavalca - 1.3.7-1 - Initial import; Fixes :RHBZ#2333293 ## END: Generated by rpmautospec