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 http://bugs.opensuse.org/
#
Name: python-Levenshtein
Version: 0.10.2
Release: 0
License: GPL-2.0+
Summary: Python extension computing string distances and similarities
Url: http://github.com/miohtama/python-Levenshtein
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)")}
%endif
%description
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.
%prep
%setup -q
%build
python setup.py build
%install
python setup.py install --prefix="%{_prefix}" --root=%{buildroot}
%files
%defattr(-,root,root)
%doc COPYING HISTORY.txt README.rst NEWS
%{python_sitearch}/*
%changelog