Sophie

Sophie

distrib > Mandriva > 10.2 > x86_64 > by-pkgid > 9980adf494c790d3aa6ef765b8e51d4b > files > 2

perl-Text-Brew-0.01-2mdk.src.rpm

%define module	Text-Brew
%define name	perl-%{module}
%define version 0.01
%define release 2mdk

Name:		%{name}
Version:	%{version}
Release:	%{release}
Summary:	An implementation of the Brew 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 Brew edit distance that is very close to the dynamic
programming technique used for the Wagner-Fischer (and so for the Levenshtein)
edit distance. Please look at the module references below. For more information
about the Brew edit distance see:
http://ling.ohio-state.edu/~cbrew/795M/string-distance.html

%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.01-2mdk
- fix buildrequires in a backward compatible way

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