# $Id: python-Levenshtein.spec,v 1.7 2008/04/23 19:18:55 slords Exp $ # Authority: slords # Name: Shad L. Lords %define name python-Levenshtein %define version 0.10.1 %define release 1 Summary: Python extension computing string distances and similarities. Name: %{name} Version: %{version} Release: %{release}%{?dist} Source0: %{name}-%{version}.tar.gz License: GNU GPL Group: Development/Libraries BuildRoot: %{_tmppath}/%{name}-buildroot Prefix: %{_prefix} Url: http://trific.ath.cx/python/levenshtein/ BuildRequires: python-devel %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. %prep %setup %build env CFLAGS="$RPM_OPT_FLAGS" python setup.py build %install python setup.py install --root=$RPM_BUILD_ROOT --record=INSTALLED_FILES %clean rm -rf $RPM_BUILD_ROOT %files -f INSTALLED_FILES %defattr(-,root,root) %doc README COPYING NEWS