Name: perl-Text-Levenshtein Version: 0.05 Release: 5%{?dist} Summary: Implementation of the Levenshtein edit distance License: GPL+ or Artistic Group: Development/Libraries URL: http://search.cpan.org/dist/Text-Levenshtein/ Source0: http://www.cpan.org/authors/id/J/JG/JGOLDBERG/Text-Levenshtein-%{version}.tar.gz BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n) BuildArch: noarch BuildRequires: perl(ExtUtils::MakeMaker) BuildRequires: perl(Test::More) Requires: perl(:MODULE_COMPAT_%(eval "`%{__perl} -V:version`"; echo $version)) %description This module implements the Levenshtein edit distance. The Levenshtein edit distance is a measure of the degree of proximity between two strings. This distance is the number of substitutions, deletions or insertions ("edits") needed to transform one string into the other one (and vice versa). When two strings have distance 0, they are the same. A good point to start is: %prep %setup -q -n Text-Levenshtein-%{version} %build %{__perl} Makefile.PL INSTALLDIRS=vendor make %{?_smp_mflags} %install rm -rf $RPM_BUILD_ROOT make pure_install PERL_INSTALL_ROOT=$RPM_BUILD_ROOT find $RPM_BUILD_ROOT -type f -name .packlist -exec rm -f {} \; find $RPM_BUILD_ROOT -depth -type d -exec rmdir {} 2>/dev/null \; %{_fixperms} $RPM_BUILD_ROOT/* %check make test %clean rm -rf $RPM_BUILD_ROOT %files %defattr(-,root,root,-) %doc Changes README %{perl_vendorlib}/* %{_mandir}/man3/* %changelog * Wed Jan 02 2008 Ralf Corsépius 0.05-5 - Adjust License-tag. - Add BR: perl(Test::More) (BZ 419631). * Wed Apr 18 2007 Steven Pritchard 0.05-4 - Use fixperms macro instead of our own chmod incantation. - BR ExtUtils::MakeMaker. * Mon Aug 28 2006 Steven Pritchard 0.05-3 - Improve Summary, description, and Source0 URL. - Fix find option ordering. - Don't generate license files. * Fri Sep 16 2005 Steven Pritchard 0.05-2 - Remove core module Test::More dependency. * Sat Aug 27 2005 Steven Pritchard 0.05-1 - Specfile autogenerated.