diff --git a/editdistance-0.6.0.tar.gz b/editdistance-0.6.0.tar.gz new file mode 100644 index 0000000000000000000000000000000000000000..605fd74c2eb00ca10f75f86c83916f5c94ea3fa6 Binary files /dev/null and b/editdistance-0.6.0.tar.gz differ diff --git a/python-editdistance.spec b/python-editdistance.spec new file mode 100644 index 0000000000000000000000000000000000000000..b5aed0eecac1bfbf1ab78ad9eba6b83648f73f7d --- /dev/null +++ b/python-editdistance.spec @@ -0,0 +1,51 @@ +%global pypi_name editdistance +%global pypi_version 0.6.0 + +Name: python-%{pypi_name} +Version: %{pypi_version} +Release: 1 +Summary: Fast implementation of the edit distance(Levenshtein distance) + +License: MIT +URL: https://www.github.com/roy-ht/editdistance +Source0: https://files.pythonhosted.org/packages/source/%/%{pypi_name}/%{pypi_name}-%{version}.tar.gz + +BuildRequires: python3-devel +BuildRequires: python3-setuptools + +%description +editdistance Fast implementation of the edit distance +(Levenshteindistance). + +%package -n python3-%{pypi_name} +Summary: %{summary} +%{?python_provide:%python_provide python3-%{pypi_name}} + +%description -n python3-%{pypi_name} +editdistance Fast implementation of the edit distance +(Levenshteindistance). + + +%prep +%autosetup -n %{pypi_name}-%{pypi_version} +# Remove bundled egg-info +rm -rf %{pypi_name}.egg-info + +%build +%py3_build + +%install +%py3_install + +%check +%{__python3} setup.py test + +%files -n python3-%{pypi_name} +%license LICENSE +%doc README.rst +%{python3_sitearch}/%{pypi_name} +%{python3_sitearch}/%{pypi_name}-%{pypi_version}-py%{python3_version}.egg-info + +%changelog +* Fri Jan 28 2022 zhangkea - 0.6.0-1 +- Initial package. \ No newline at end of file