2012-01-27 11:29:37 +00:00
|
|
|
#
|
|
|
|
|
# spec file for package python-Levenshtein
|
|
|
|
|
#
|
|
|
|
|
# Copyright (c) 2012 SUSE LINUX Products GmbH, Nuernberg, Germany.
|
2012-01-31 13:36:18 +00:00
|
|
|
#
|
2012-01-27 11:29:37 +00:00
|
|
|
# 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/
|
|
|
|
|
#
|
|
|
|
|
|
2012-01-31 13:36:18 +00:00
|
|
|
Name: python-Levenshtein
|
2012-01-27 11:29:37 +00:00
|
|
|
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
|
2012-01-31 13:36:18 +00:00
|
|
|
Source0: python-Levenshtein-%{version}.tar.bz2
|
2012-01-27 11:29:37 +00:00
|
|
|
BuildRequires: python-devel
|
2012-01-31 12:28:56 +00:00
|
|
|
BuildRequires: python-distribute
|
|
|
|
|
BuildRoot: %{_tmppath}/%{name}-%{version}-build
|
2012-01-31 13:36:18 +00:00
|
|
|
%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
|
2010-11-29 15:31:40 +00:00
|
|
|
|
2012-01-27 11:29:37 +00:00
|
|
|
%description
|
2010-11-29 15:31:40 +00:00
|
|
|
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
|
2012-01-31 13:36:18 +00:00
|
|
|
%setup -q
|
2010-11-29 15:31:40 +00:00
|
|
|
|
|
|
|
|
%build
|
2012-01-31 13:36:18 +00:00
|
|
|
python setup.py build
|
2010-11-29 15:31:40 +00:00
|
|
|
|
|
|
|
|
%install
|
2012-01-31 13:36:18 +00:00
|
|
|
python setup.py install --prefix="%{_prefix}" --root=%{buildroot}
|
2010-11-29 15:31:40 +00:00
|
|
|
|
2012-01-27 11:29:37 +00:00
|
|
|
%files
|
2010-11-29 15:31:40 +00:00
|
|
|
%defattr(-,root,root)
|
2012-01-31 13:36:18 +00:00
|
|
|
%doc COPYING HISTORY.txt README.rst NEWS
|
|
|
|
|
%{python_sitearch}/*
|
2010-11-29 15:31:40 +00:00
|
|
|
|
|
|
|
|
%changelog
|