## 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 %global pypi_name iterable-io %global pypi_version 1.0.0 Name: python-%{pypi_name} Version: %{pypi_version} Release: %autorelease Summary: Adapt generators and other iterables to a file-like interface License: LGPL-3.0-only URL: https://github.com/pR0Ps/iterable-io Source0: %{pypi_source} BuildArch: noarch BuildRequires: python3-devel BuildRequires: python3dist(pytest) %description iterable-io [![Status]( [![Version]( ![Python]( is a small Python library that provides an adapter so that it's possible to read from [iterable]( objects in the same way as [file-like]( objects.It is primarily useful as "glue" between two incompatible interfaces. As an example, in the case %package -n python3-%{pypi_name} Summary: %{summary} %{?python_provide:%python_provide python3-%{pypi_name}} %description -n python3-%{pypi_name} iterable-io [![Status]( [![Version]( ![Python]( is a small Python library that provides an adapter so that it's possible to read from [iterable]( objects in the same way as [file-like]( objects.It is primarily useful as "glue" between two incompatible interfaces. As an example, in the case %prep %autosetup -n %{pypi_name}-%{pypi_version} # Remove bundled egg-info rm -rf %{pypi_name}.egg-info %generate_buildrequires %pyproject_buildrequires %build %pyproject_wheel %install %pyproject_install %pyproject_save_files iterableio %check %pytest %files -n python3-%{pypi_name} -f %{pyproject_files} %doc README.md %changelog ## START: Generated by rpmautospec * Thu Nov 21 2024 John Doe - 1.0.0-1 - Uncommitted changes ## END: Generated by rpmautospec