## START: Set by rpmautospec ## (rpmautospec version 0.8.4) ## RPMAUTOSPEC: autorelease, autochangelog %define autorelease(e:s:pb:n) %{?-p:0.}%{lua: release_number = 4; 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 %bcond_without tests Name: python-griffelib Version: 2.2.0 Release: %autorelease Summary: Python library to extract the structure and signatures of Python programs License: MIT and ISC URL: https://github.com/mkdocstrings/griffe Source: %{pypi_source griffelib} Patch0: 0001-tests-skip-tests-when-running-without-dependencies.patch BuildArch: noarch BuildRequires: python3-devel # To pass the git related tests BuildRequires: git-core %if %{with tests} BuildRequires: python3-pytest %endif %global _description %{expand: Griffe is a Python library that extracts the structure, frame, and skeleton of Python projects. It parses source code to compute signatures for entire Python programs, which can be used to generate API documentation or detect breaking changes in an API.} %description %_description %package -n python3-griffelib Summary: %{summary} %description -n python3-griffelib %_description %pyproject_extras_subpkg -n python3-griffelib pypi %prep %autosetup -p3 -n griffelib-%{version} %generate_buildrequires %pyproject_buildrequires -x pypi -g dev %build %pyproject_wheel %install %pyproject_install %pyproject_save_files -l griffe %check %pyproject_check_import %if %{with tests} %pytest -v %endif %files -n python3-griffelib -f %{pyproject_files} %license LICENSE %doc CHANGELOG.md %doc README.md %changelog ## START: Generated by rpmautospec * Tue Sep 01 2026 Chih-Tao Lee - 2.2.0-4 - Correct patch file name * Tue Sep 01 2026 Chih-Tao Lee - 2.2.0-3 - Remove pyp2spec comment and fix description to long * Wed Aug 26 2026 Chih-Tao Lee - 2.2.0-2 - Add BuildRequires: git-core to pass git related tests * Wed Aug 26 2026 Chih-Tao Lee - 2.2.0-1 - Initial import (fedora#2522336). ## END: Generated by rpmautospec