| Rev | Line | |
|---|
| [8871] | 1 | # Basic Information |
|---|
| 2 | Name: python-Levenshtein |
|---|
| 3 | Version: 0.11.2 |
|---|
| 4 | Release: 1%{?_dist_release} |
|---|
| 5 | License: GPL |
|---|
| 6 | Group: Development/Libraries |
|---|
| 7 | URL: http://github.com/ztane/python-Levenshtein |
|---|
| 8 | Source0: %{name}-%{version}.tar.gz |
|---|
| 9 | BuildRoot: %{_tmppath}/%{name}-%{version}-root |
|---|
| 10 | |
|---|
| 11 | Vendor: Project Vine |
|---|
| 12 | Distribution: Vine Linux |
|---|
| 13 | Packager: yasumichi |
|---|
| 14 | |
|---|
| 15 | Summary: Python extension for computing string edit distances and similarities. |
|---|
| 16 | Summary(ja): 文字列の編集距離と類似点を計算するための Python 拡張 |
|---|
| 17 | |
|---|
| 18 | # Dependency |
|---|
| 19 | Requires: python |
|---|
| 20 | BuildRequires: python-devel |
|---|
| 21 | BuildRequires: python-setuptools |
|---|
| 22 | |
|---|
| 23 | %description |
|---|
| 24 | The Levenshtein Python C extension module contains functions for fast |
|---|
| 25 | computation of |
|---|
| 26 | |
|---|
| 27 | * Levenshtein (edit) distance, and edit operations |
|---|
| 28 | |
|---|
| 29 | * string similarity |
|---|
| 30 | |
|---|
| 31 | * approximate median strings, and generally string averaging |
|---|
| 32 | |
|---|
| 33 | * string sequence and set similarity |
|---|
| 34 | |
|---|
| 35 | It supports both normal and Unicode strings. |
|---|
| 36 | |
|---|
| 37 | #%%description -l ja |
|---|
| 38 | |
|---|
| 39 | %prep |
|---|
| 40 | %setup -q -n python-Levenshtein-0.11.2 |
|---|
| 41 | |
|---|
| 42 | %build |
|---|
| 43 | %{__python} setup.py build |
|---|
| 44 | |
|---|
| 45 | %install |
|---|
| 46 | %{__rm} -rf ${RPM_BUILD_ROOT} |
|---|
| 47 | %{__python} setup.py install --root=${RPM_BUILD_ROOT} |
|---|
| 48 | |
|---|
| 49 | %clean |
|---|
| 50 | %{__rm} -rf ${RPM_BUILD_ROOT} |
|---|
| 51 | |
|---|
| 52 | %files |
|---|
| 53 | %defattr(-,root,root) |
|---|
| 54 | %doc COPYING NEWS |
|---|
| 55 | %{python_sitearch}/Levenshtein.so |
|---|
| 56 | %{python_sitearch}/python_Levenshtein-%{version}-py%{pyver}.egg-info |
|---|
| 57 | |
|---|
| 58 | %changelog |
|---|
| 59 | * Tue Jul 29 2014 Yasumichi Akahoshi <yasumichi@vinelinux.org> 0.11.2-1 |
|---|
| 60 | - initial build for Vine Linux |
|---|
Note: See
TracBrowser
for help on using the repository browser.