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