# Created by pyp2rpm-3.3.7 %global pypi_name ukkonen Name: python-%{pypi_name} Version: 1.0.1 Release: 2%{?dist} Summary: Implementation of bounded Levenshtein distance (Ukkonen) License: MIT URL: https://www.github.com/asottile/ukkonen Source0: %{url}/archive/v%{version}/ukkonen-%{version}.tar.gz BuildRequires: gcc-c++ BuildRequires: python3-devel BuildRequires: python3dist(cffi) >= 1 BuildRequires: python3dist(setuptools) BuildRequires: python3dist(pytest) %description Implementation of bounded Levenshtein distance (Ukkonen) port %package -n python3-%{pypi_name} Summary: %{summary} %description -n python3-%{pypi_name} Implementation of bounded Levenshtein distance (Ukkonen) port %prep %autosetup -n %{pypi_name}-%{version} # Remove bundled egg-info rm -rf %{pypi_name}.egg-info cp -p licenses/LICENSE LICENSE-upstream %build %py3_build %install %py3_install %check %pytest %files -n python3-%{pypi_name} %license LICENSE-upstream LICENSE %doc README.md %{python3_sitearch}/__pycache__/* %{python3_sitearch}/%{pypi_name}.py %{python3_sitearch}/%{pypi_name}-%{version}-py%{python3_version}.egg-info %{python3_sitearch}/_ukkonen.abi3.so %changelog * Tue Nov 30 2021 Gwyn Ciesla - 1.0.1-2 - Review fixes. * Fri Nov 19 2021 Gwyn Ciesla - 1.0.1-1 - Initial package.