]> git.pld-linux.org Git - packages/python-Levenshtein.git/commitdiff
- new spec
authorjpc <jpc@pld-linux.org>
Fri, 24 Sep 2004 16:43:38 +0000 (16:43 +0000)
committercvs2git <feedback@pld-linux.org>
Sun, 24 Jun 2012 12:13:13 +0000 (12:13 +0000)
Changed files:
    python-Levenshtein.spec -> 1.1

python-Levenshtein.spec [new file with mode: 0644]

diff --git a/python-Levenshtein.spec b/python-Levenshtein.spec
new file mode 100644 (file)
index 0000000..55af701
--- /dev/null
@@ -0,0 +1,43 @@
+%define                pname Levenshtein
+Summary:       Python extension computing string distances and similarities
+#Summary(pl):  -
+Name:          python-%{pname}
+Version:       0.10
+Release:       0.1
+License:       LGPL
+Group:         Libraries/Python
+Source0:       http://trific.ath.cx/Ftp//python/levenshtein/python-Levenshtein-0.10.tar.bz2
+# Source0-md5: 88d39338fc75090da78adf43785c71b4
+URL:           http://trific.ath.cx/resources/python/levenshtein/
+BuildRequires: python-devel >= 2.3.0
+BuildRequires: rpm-pythonprov
+%pyrequires_eq python-modules
+BuildRoot:     %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
+
+%description
+Levenshtein computes Levenshtein distances, similarity ratios, generalized
+medians and set medians of Strings and Unicodes.  Becuase it's implemented
+in C, it's much faster than corresponding Python library functions and
+methods.
+
+#description -l pl
+
+%prep
+%setup -qn %{name}-%{version}
+
+%build
+export CFLAGS="%{rpmcflags}"
+python setup.py build
+
+%install
+rm -rf $RPM_BUILD_ROOT
+
+python setup.py install --optimize=2 --root=$RPM_BUILD_ROOT
+
+%clean
+rm -rf $RPM_BUILD_ROOT
+
+%files
+%defattr(644,root,root,755)
+%doc NEWS README
+%{py_sitedir}/%{pname}.so
This page took 0.096711 seconds and 4 git commands to generate.