From: Elan Ruusamäe Date: Mon, 10 May 2010 15:24:32 +0000 (+0000) Subject: - release 1 X-Git-Tag: auto/th/python-Levenshtein-0_10-1 X-Git-Url: https://git.pld-linux.org/?p=packages%2Fpython-Levenshtein.git;a=commitdiff_plain;h=9c18fbb1d27979cde2861477d904fd505d600996 - release 1 Changed files: python-Levenshtein.spec -> 1.8 --- diff --git a/python-Levenshtein.spec b/python-Levenshtein.spec index c799f57..5a63c6f 100644 --- a/python-Levenshtein.spec +++ b/python-Levenshtein.spec @@ -3,10 +3,10 @@ Summary: Python extension computing string distances and similarities 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 @@ -30,12 +30,13 @@ odpowiadających mu funkcji bibliotecznych i metod Pythona. %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 @@ -44,3 +45,6 @@ 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