File python-Levenshtein.spec of Package python-Levenshtein

# spec file for package python-Levenshtein
# Copyright (c) 2012 SUSE LINUX Products GmbH, Nuernberg, Germany.
# This file and all modifications and additions to this
# package are under the same license as the package itself.
# Please submit bugfixes or comments via

Name:           python-Levenshtein
Version:        0.10.2
Release:        0
License:        GPL-2.0+
Summary:        Python extension computing string distances and similarities
Group:          Development/Libraries/Python
Source0:        python-Levenshtein-%{version}.tar.bz2
BuildRequires:  python-devel
BuildRequires:  python-distribute
BuildRoot:      %{_tmppath}/%{name}-%{version}-build
%if 0%{?suse_version} && 0%{?suse_version} <= 1110
%{!?python_sitearch: %global python_sitearch %(python -c "from distutils.sysconfig import get_python_lib; print get_python_lib(1)")}

The Levenshtein Python C extension module contains functions for fast
computation of

 * Levenshtein (edit) distance, and edit operations
 * string similarity
 * approximate median strings, and generally string averaging
 * string sequence and set similarity

It supports both normal and Unicode strings.

%setup -q

python build

python install --prefix="%{_prefix}" --root=%{buildroot}


openSUSE Build Service is sponsored by