## START: Set by rpmautospec ## (rpmautospec version 0.3.0) %define autorelease(e:s:pb:n) %{?-p:0.}%{lua: release_number = 1; 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 %global srcname sphinx_mdinclude %global distname sphinx-mdinclude %global _description %{expand: sphinx-mdinclude is a simple Sphinx extension that enables including Markdown documents from within reStructuredText. It provides the `.. mdinclude::` directive, and automatically converts the content of Markdown documents to reStructuredText format.} Name: python-%{distname} Version: 0.5.3 Release: %autorelease Summary: Markdown extension for Sphinx License: MIT URL: https://github.com/omnilib/sphinx-mdinclude Source: %{pypi_source} BuildArch: noarch BuildRequires: python3-devel BuildRequires: python3dist(pytest) %description %{_description} %package -n python3-%{distname} Summary: %{summary} Requires: python3dist(sphinx) %description -n python3-%{distname} %{_description} %prep %autosetup -n %{srcname}-%{version} # this is only for mistune 0.8.4, and won't import if 2.x is installed rm %{srcname}/legacy.py %generate_buildrequires %pyproject_buildrequires %build %pyproject_wheel %install %pyproject_install %pyproject_save_files %{srcname} %check %pyproject_check_import %pytest -v %files -n python3-%{distname} -f %{pyproject_files} %license LICENSE %doc README.md %changelog * Sat Mar 18 2023 Michel Alexandre Salim 0.5.3-1 - Initial Fedora package