%define module Lingua-Stem-Snowball-Da %define name perl-%{module} %define version 1.01 %define release %mkrel 5 Name: %{name} Version: %{version} Release: %{release} Summary: Porters stemming algorithm for Denmark License: GPL or Artistic Group: Development/Perl Source0: http://search.cpan.org/CPAN/authors/id/C/CI/CINE/%{module}-%{version}.tar.bz2 Url: http://search.cpan.org/dist/%{module}/ %if %{mdkversion} < 1010 BuildRequires: perl-devel %endif Requires: locales-da BuildArch: noarch BuildRoot: %{_tmppath}/%{name}-%{version} %description The stem function takes a scalar as a parameter and stems the word according to Martin Porters Danish stemming algorithm, which can be found at the Snowball website: http://snowball.tartarus.org/. %prep %setup -q -n %{module}-%{version} %build %{__perl} Makefile.PL INSTALLDIRS=vendor %make %check %{__make} test %install rm -rf %{buildroot} %makeinstall_std mv %{buildroot}%{perl_vendorlib}/Lingua/Stem/Snowball/stemmer.pl \ %{buildroot}%{perl_vendorlib}/Lingua/Stem/Snowball/stemmer-Da.pl %clean rm -rf %{buildroot} %files %defattr(-,root,root) %doc Changes README %{perl_vendorlib}/Lingua %{_mandir}/man3*/* %changelog * Thu Aug 31 2006 Guillaume Rousse <guillomovitch@mandriva.org> 1.01-5mdv2007.0 - Rebuild * Wed Nov 30 2005 Guillaume Rousse <guillomovitch@mandriva.org> 1.01-4mdk - spec cleanup - fix directory ownership - %%mkrel - rpmbuildupdate aware - better summary - better description - better url * Fri Oct 15 2004 Oden Eriksson <oeriksson@mandrakesoft.com> 1.01-3mdk - fix deps * Thu Jun 26 2003 Oden Eriksson <oden.eriksson@kvikkjokk.net> 1.01-2mdk - require locales-da - fix conflicting name on the stemmer.pl file * Thu Jun 26 2003 Oden Eriksson <oden.eriksson@kvikkjokk.net> 1.01-1mdk - initial cooker contrib.