Summary(pl.UTF-8): Rozszerzenie Pythona do obliczania odległości i podobieństw łańcuchów
Name: python-%{pname}
Version: 0.10
-Release: 0.1
+Release: 1
License: GPL
Group: Libraries/Python
-Source0: http://trific.ath.cx/Ftp//python/levenshtein/python-Levenshtein-0.10.tar.bz2
+Source0: http://trific.ath.cx/Ftp//python/levenshtein/python-Levenshtein-%{version}.tar.bz2
# Source0-md5: 88d39338fc75090da78adf43785c71b4
URL: http://trific.ath.cx/resources/python/levenshtein/
BuildRequires: python-devel >= 1:2.3.0
%build
export CFLAGS="%{rpmcflags}"
-python setup.py build
+%{__python} setup.py build
%install
rm -rf $RPM_BUILD_ROOT
-
-python setup.py install --optimize=2 --root=$RPM_BUILD_ROOT
+%{__python} setup.py install \
+ --optimize=2 \
+ --root=$RPM_BUILD_ROOT
%clean
rm -rf $RPM_BUILD_ROOT
%defattr(644,root,root,755)
%doc NEWS README
%attr(755,root,root) %{py_sitedir}/%{pname}.so
+%if "%{py_ver}" > "2.4"
+%{py_sitedir}/python_Levenshtein-*.egg-info
+%endif