15
0
Files
python-Levenshtein/python-Levenshtein.spec
Sascha Peilicke cb523e2d32 - Simplified macro usage
- Don't package PKG-INFO or MANIFEST, this is setuptools bloat
- Removed outdated %clean section
>>>>>>> ./python-Levenshtein.changes.r2

OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-Levenshtein?expand=0&rev=4
2012-01-31 13:36:18 +00:00

53 lines
1.5 KiB
RPMSpec

#
# 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