source: projects/specs/trunk/p/python-Levenshtein/python-Levenshtein-vl.spec @ 8871

Revision 8871, 1.4 KB checked in by yasumichi, 10 years ago (diff)

new package

Line 
1# Basic Information
2Name:           python-Levenshtein
3Version:        0.11.2
4Release:        1%{?_dist_release}
5License:        GPL
6Group:          Development/Libraries
7URL:            http://github.com/ztane/python-Levenshtein
8Source0:        %{name}-%{version}.tar.gz
9BuildRoot:      %{_tmppath}/%{name}-%{version}-root
10
11Vendor:         Project Vine
12Distribution:   Vine Linux
13Packager:       yasumichi
14
15Summary:        Python extension for computing string edit distances and similarities.
16Summary(ja):    文字列の編集距離と類似点を計算するための Python 拡張
17
18# Dependency
19Requires:       python
20BuildRequires:  python-devel
21BuildRequires:  python-setuptools
22
23%description
24The Levenshtein Python C extension module contains functions for fast
25computation 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
35It 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.