Sophie

Sophie

distrib > Mandriva > 10.2 > i586 > by-pkgid > e3e204b36f58b0d238fd3807b372b095 > files > 2

perl-Text-WagnerFischer-0.04-2mdk.src.rpm

%define module	Text-WagnerFischer
%define name	perl-%{module}
%define version 0.04
%define release 2mdk

Name:		%{name}
Version:	%{version}
Release:	%{release}
Summary:	An implementation of the Wagner-Fischer edit distance
License:	GPL or Artistic
Group:		Development/Perl
Source:		http://cpan.uwinnipeg.ca/cpan/authors/id/D/DR/DREE/%{module}-%{version}.tar.bz2
Url:		http://www.cpan.org
%if %{mdkversion} < 1010
BuildRequires:	perl-devel
%endif
BuildArch:	noarch
BuildRoot:	%{_tmppath}/%{name}-root

%description
This module implements the Wagner-Fischer dynamic programming technique, used
here to calculate the edit distance of two strings. The edit distance is a
measure of the degree of proximity between two strings, based on ``edits'': the
operations of substitutions, deletions or insertions needed to transform the
string into the other one (and vice versa).

%prep
%setup -q -n %{module}-%{version}

%build
%{__perl} Makefile.PL INSTALLDIRS=vendor
%make
%make test

%clean 
rm -rf $RPM_BUILD_ROOT

%install
rm -rf $RPM_BUILD_ROOT
%makeinstall_std

%files
%defattr(-,root,root)
%doc Changes README
%{perl_vendorlib}/*
%{_mandir}/*/*

%changelog
* Mon Dec 20 2004 Guillaume Rousse <guillomovitch@mandrake.org> 0.04-2mdk
- fix buildrequires in a backward compatible way

* Thu Jun 24 2004 Guillaume Rousse <guillomovitch@mandrake.org> 0.04-1mdk 
- first mdk release