%global pypi_name docrep Name: python-%{pypi_name} Version: 0.3.2 Release: 1%{?dist} Summary: Reuse parameter sections of Python docstrings License: Apache-2.0 URL: https://github.com/Chilipp/docrep Source0: %{pypi_source %{pypi_name}} BuildArch: noarch BuildRequires: python3-devel BuildRequires: pyproject-rpm-macros BuildRequires: python3dist(pytest) %global _description %{expand: docrep extracts sections (Parameters, Returns, Notes and so on) from numpydoc docstrings and substitutes them into the docstrings of other functions, so a parameter documented once can be reused by every function that takes it.} %description %_description %package -n python3-%{pypi_name} Summary: %{summary} %description -n python3-%{pypi_name} %_description %prep %autosetup -n %{pypi_name}-%{version} # data_files=[("", ["LICENSE"])] would install /usr/LICENSE. sed -i '/data_files=\[("", \["LICENSE"\])\],/d' setup.py ! grep -q data_files setup.py %generate_buildrequires %pyproject_buildrequires %build %pyproject_wheel %install %pyproject_install %pyproject_save_files %{pypi_name} %check %pyproject_check_import # Python 3.13 strips the common indentation of docstrings at compile time, so # with_indent's output no longer matches the indented reference text; the # substitution itself still works (the other 40 tests). %pytest -v tests -k 'not test_with_indent' %files -n python3-%{pypi_name} -f %{pyproject_files} %license LICENSE %doc README.rst CHANGELOG.rst %changelog * Fri Oct 16 2026 Morgan Hough - 0.3.2-1 - Initial package (immlib dependency, pyAFQ chain).