## START: Set by rpmautospec ## (rpmautospec version 0.8.1) ## RPMAUTOSPEC: autorelease, autochangelog %define autorelease(e:s:pb:n) %{?-p:0.}%{lua: release_number = 2; 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 Name: python-annotated-doc Version: 0.0.3 Release: %autorelease Summary: Document parameters, class attributes, return types, and variables inline License: MIT URL: https://github.com/fastapi/annotated-doc Source: %{url}/archive/%{version}/annotated-doc-%{version}.tar.gz # Add typing-extensions to test deps. for Python <3.9 # https://github.com/fastapi/annotated-doc/pull/12 Patch: %{url}/pull/12.patch BuildSystem: pyproject BuildOption(install): -l annotated_doc BuildArch: noarch # See requirements-tests.txt: BuildRequires: %{py3_dist pytest} >= 8.3.5 %global common_description %{expand: Document parameters, class attributes, return types, and variables inline, with Annotated.} %description %{common_description} %package -n python3-annotated-doc Summary: %{summary} %description -n python3-annotated-doc %{common_description} %prep -a # Do not upper-bound (SemVer-bound) the version of uv_build; we must work with # what we have, and compatibility across SemVer boundaries is good in practice. sed -r -i 's/"(uv_build *>= *[^:]+), *<[^"]+"/"\1"/' pyproject.toml %check -a %pytest -v %files -n python3-annotated-doc -f %{pyproject_files} %doc CITATION.cff %doc README.md %changelog ## START: Generated by rpmautospec * Mon Oct 27 2025 Benjamin A. Beasley - 0.0.3-1 - Initial package (close RHBZ#2406317) ## END: Generated by rpmautospec