%global pypi_name fastbencode %global pypi_version 0.0.7 Name: python-%{pypi_name} Version: %{pypi_version} Release: 1%{?dist} Summary: Implementation of bencode with optional fast C extensions License: GPLv2+ URL: https://github.com/breezy-team/fastbencode Source0: %{pypi_source} BuildRequires: python3-devel BuildRequires: python3dist(cython) >= 0.29 BuildRequires: python3dist(setuptools) BuildRequires: gcc %global _description %{expand: fastbencode is an implementation of the bencode serialization format originally used by BitTorrent. The package includes both a pure-Python version and an optional C extension based on Cython. Both provide the same functionality, but the C extension provides significantly better performance. } %description %_description %package -n python3-%{pypi_name} Summary: %{summary} %description -n python3-%{pypi_name} %_description %prep %autosetup -n %{pypi_name}-%{pypi_version} %build %py3_build %install %py3_install %check %{python3} setup.py test %files -n python3-%{pypi_name} %doc README.md %{python3_sitearch}/%{pypi_name}/ %{python3_sitearch}/%{pypi_name}-%{pypi_version}-py%{python3_version}.egg-info/ %changelog * Mon May 16 2022 Ondřej Pohořelský - 0.0.7-1 - Initial package.