]>
Commit | Line | Data |
---|---|---|
8f1458fe | 1 | %define pname Levenshtein |
2 | Summary: Python extension computing string distances and similarities | |
f3ac28c5 | 3 | Summary(pl.UTF-8): Rozszerzenie Pythona do obliczania odległości i podobieństw łańcuchów |
8f1458fe | 4 | Name: python-%{pname} |
5 | Version: 0.10 | |
6 | Release: 0.1 | |
076d8d9a | 7 | License: GPL |
8f1458fe | 8 | Group: Libraries/Python |
9 | Source0: http://trific.ath.cx/Ftp//python/levenshtein/python-Levenshtein-0.10.tar.bz2 | |
10 | # Source0-md5: 88d39338fc75090da78adf43785c71b4 | |
11 | URL: http://trific.ath.cx/resources/python/levenshtein/ | |
deef5ff3 | 12 | BuildRequires: python-devel >= 1:2.3.0 |
8f1458fe | 13 | %pyrequires_eq python-modules |
14 | BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) | |
15 | ||
16 | %description | |
683061e5 JB |
17 | Levenshtein computes Levenshtein distances, similarity ratios, |
18 | generalized medians and set medians of Strings and Unicodes. Becuase | |
19 | it's implemented in C, it's much faster than corresponding Python | |
20 | library functions and methods. | |
8f1458fe | 21 | |
f3ac28c5 JR |
22 | %description -l pl.UTF-8 |
23 | Levenshtein oblicza odległości Levenshteina, współczynniki | |
24 | podobieństwa, uogólnione mediany i mediany zbiorów dla wartości String | |
25 | i Unicode. Ponieważ jest zaimplementowany w C, jest dużo szybszy od | |
26 | odpowiadających mu funkcji bibliotecznych i metod Pythona. | |
8f1458fe | 27 | |
28 | %prep | |
683061e5 | 29 | %setup -q |
8f1458fe | 30 | |
31 | %build | |
32 | export CFLAGS="%{rpmcflags}" | |
33 | python setup.py build | |
34 | ||
35 | %install | |
36 | rm -rf $RPM_BUILD_ROOT | |
37 | ||
38 | python setup.py install --optimize=2 --root=$RPM_BUILD_ROOT | |
39 | ||
40 | %clean | |
41 | rm -rf $RPM_BUILD_ROOT | |
42 | ||
43 | %files | |
44 | %defattr(644,root,root,755) | |
45 | %doc NEWS README | |
683061e5 | 46 | %attr(755,root,root) %{py_sitedir}/%{pname}.so |