## START: Set by rpmautospec ## (rpmautospec version 0.6.0) ## RPMAUTOSPEC: autorelease, autochangelog %define autorelease(e:s:pb:n) %{?-p:0.}%{lua: release_number = 5; 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 ## START: Generated by rpmautospec * Fri Jan 26 2024 Fedora Release Engineering - 0.5.3-5 - Rebuilt for https://fedoraproject.org/wiki/Fedora_40_Mass_Rebuild * Mon Jan 22 2024 Fedora Release Engineering - 0.5.3-4 - Rebuilt for https://fedoraproject.org/wiki/Fedora_40_Mass_Rebuild * Fri Jul 21 2023 Fedora Release Engineering - 0.5.3-3 - Rebuilt for https://fedoraproject.org/wiki/Fedora_39_Mass_Rebuild * Thu Jun 15 2023 Python Maint - 0.5.3-2 - Rebuilt for Python 3.12 * Sat Mar 18 2023 Michel Alexandre Salim - 0.5.3-1 - Initial Fedora package ## END: Generated by rpmautospec