## START: Set by rpmautospec ## (rpmautospec version 0.7.3) ## RPMAUTOSPEC: autorelease, autochangelog %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 # Created by pyp2rpm-3.3.10 %global srcname sphinx-autoapi %global srcname_ sphinx_autoapi Name: python-%{srcname} Version: 3.2.1 Release: %autorelease Summary: Sphinx API documentation generator License: MIT URL: https://github.com/readthedocs/sphinx-autoapi Source: %pypi_source %{srcname_} # https://github.com/readthedocs/sphinx-autoapi/pull/462 Patch: 0001-Mark-tests-that-use-the-network.patch BuildArch: noarch BuildRequires: python3-devel BuildRequires: python3dist(beautifulsoup4) BuildRequires: python3dist(pytest) %global _description %{expand: Sphinx AutoAPI is a Sphinx extension for generating complete API documentation without needing to load, run, or import the project being documented. In contrast to the traditional Sphinx autodoc, which requires manual authoring and uses code imports, AutoAPI finds and generates documentation by parsing source code.} %description %{_description} %package -n python3-%{srcname} Summary: %{summary} %description -n python3-%{srcname} %{_description} %prep %autosetup -n %{srcname_}-%{version} -p1 %generate_buildrequires %pyproject_buildrequires %build %pyproject_wheel %install %pyproject_install %pyproject_save_files -l autoapi %check %{pytest} -m 'not network' %files -n python3-%{srcname} -f %{pyproject_files} %doc README.rst %changelog ## START: Generated by rpmautospec * Tue Aug 20 2024 Elliott Sales de Andrade - 3.2.1-1 - import rhbz#2296242 ## END: Generated by rpmautospec