## 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 cid %global common_description %{expand: Self-describing content-addressed identifiers for distributed systems implementation in Python.} Name: python-%{pypi_name} Version: 0.3.0 Release: %autorelease BuildArch: noarch Summary: Self-describing content-addressed identifiers License: MIT URL: https://github.com/ipld/py-cid Source0: %{pypi_source py-%{pypi_name}} Patch1: python-cid-0001-Relax-dependencies.patch BuildRequires: python3-devel BuildRequires: python3-hypothesis BuildRequires: python3-pytest %description %{common_description} %package -n python3-%{pypi_name} Summary: %{summary} %description -n python3-%{pypi_name} %{common_description} %prep %autosetup -p1 -n py-%{pypi_name}-%{version} %generate_buildrequires %pyproject_buildrequires %build %pyproject_wheel %install %pyproject_install %pyproject_save_files -l %{pypi_name} %check %pytest %files -n python3-%{pypi_name} -f %{pyproject_files} %doc AUTHORS.rst HISTORY.rst README.rst %changelog ## START: Generated by rpmautospec * Tue Aug 20 2024 Peter Lemenkov - 0.3.0-1 - Initial package ## END: Generated by rpmautospec