54 lines
1.4 KiB
RPMSpec
54 lines
1.4 KiB
RPMSpec
%global srcname Levenshtein
|
|
|
|
Name: python-Levenshtein
|
|
Summary: Python extension computing string distances and similarities
|
|
Version: 0.12.0
|
|
Release: %autorelease
|
|
|
|
License: GPL-2.0-or-later
|
|
|
|
# The original site: http://trific.ath.cx/python/levenshtein/
|
|
# no longer exists so pointing to the pypi listing instead.
|
|
URL: http://pypi.python.org/pypi/%{name}/
|
|
|
|
Source: https://files.pythonhosted.org/packages/source/p/%{name}/%{name}-%{version}.tar.gz
|
|
|
|
BuildRequires: gcc
|
|
|
|
BuildRequires: python3-devel
|
|
BuildRequires: python3-setuptools
|
|
|
|
%description
|
|
Levenshtein computes Levenshtein distances, similarity ratios, generalized
|
|
medians and set medians of Strings and Unicodes. Because it's implemented
|
|
in C, it's much faster than corresponding Python library functions and
|
|
methods.
|
|
|
|
%package -n python3-%{srcname}
|
|
Summary: %{summary}
|
|
%{?python_provide:%python_provide python3-%{srcname}}
|
|
|
|
%description -n python3-%{srcname}
|
|
Levenshtein computes Levenshtein distances, similarity ratios, generalized
|
|
medians and set medians of Strings and Unicodes. Because it's implemented
|
|
in C, it's much faster than corresponding Python 3 library functions and
|
|
methods.
|
|
|
|
%prep
|
|
%setup -qn %{name}-%{version}
|
|
|
|
%build
|
|
%py3_build
|
|
|
|
%install
|
|
%py3_install
|
|
|
|
%files -n python3-%{srcname}
|
|
%doc README.rst NEWS
|
|
%license COPYING
|
|
%{python3_sitearch}/%{srcname}/
|
|
%{python3_sitearch}/python_%{srcname}-%{version}-py%{python3_version}.egg-info/
|
|
|
|
|
|
%changelog
|
|
%autochangelog
|