]> git.pld-linux.org Git - packages/python-Levenshtein.git/blame - python-Levenshtein.spec
- release 5 (by relup.sh)
[packages/python-Levenshtein.git] / python-Levenshtein.spec
CommitLineData
8f1458fe 1%define pname Levenshtein
2Summary: Python extension computing string distances and similarities
f34cdb89 3Summary(pl.UTF-8): Rozszerzenie Pythona do obliczania odległości i podobieństw łańcuchów
8f1458fe 4Name: python-%{pname}
5Version: 0.10
b9fe8ff9 6Release: 5
076d8d9a 7License: GPL
8f1458fe 8Group: Libraries/Python
9c18fbb1 9Source0: http://trific.ath.cx/Ftp//python/levenshtein/python-Levenshtein-%{version}.tar.bz2
8f1458fe 10# Source0-md5: 88d39338fc75090da78adf43785c71b4
11URL: http://trific.ath.cx/resources/python/levenshtein/
ab83f9e0 12BuildRequires: rpmbuild(macros) >= 1.710
deef5ff3 13BuildRequires: python-devel >= 1:2.3.0
eebc01e3 14BuildRequires: python-modules
15BuildRequires: rpm-pythonprov
8f1458fe 16%pyrequires_eq python-modules
17BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
18
19%description
683061e5
JB
20Levenshtein computes Levenshtein distances, similarity ratios,
21generalized medians and set medians of Strings and Unicodes. Becuase
22it's implemented in C, it's much faster than corresponding Python
23library functions and methods.
8f1458fe 24
f3ac28c5
JR
25%description -l pl.UTF-8
26Levenshtein oblicza odległości Levenshteina, współczynniki
27podobieństwa, uogólnione mediany i mediany zbiorów dla wartości String
28i Unicode. Ponieważ jest zaimplementowany w C, jest dużo szybszy od
29odpowiadających mu funkcji bibliotecznych i metod Pythona.
8f1458fe 30
31%prep
683061e5 32%setup -q
8f1458fe 33
34%build
624d0cd5 35%py_build
8f1458fe 36
37%install
38rm -rf $RPM_BUILD_ROOT
624d0cd5 39%py_install
8f1458fe 40
41%clean
42rm -rf $RPM_BUILD_ROOT
43
44%files
45%defattr(644,root,root,755)
46%doc NEWS README
683061e5 47%attr(755,root,root) %{py_sitedir}/%{pname}.so
9c18fbb1
ER
48%if "%{py_ver}" > "2.4"
49%{py_sitedir}/python_Levenshtein-*.egg-info
50%endif
This page took 0.070834 seconds and 4 git commands to generate.