%define module Snowball-Swedish %define name perl-%{module} %define version 1.2 %define release %mkrel 1 Name: %{name} Version: %{version} Release: %{release} Summary: Porters stemming algorithm for Swedish License: GPL or Artistic Group: Development/Perl Url: http://search.cpan.org/dist/%{module}/ Source: http://search.cpan.org/CPAN/authors/id/A/AS/ASKSH/%{module}-%{version}.tar.bz2 %if %{mdkversion} < 1010 BuildRequires: perl-devel %endif Requires: locales-sv Obsoletes: perl-Lingua-Stem-Snowball-Se Provides: perl-Lingua-Stem-Snowball-Se BuildArch: noarch BuildRoot: %{_tmppath}/%{name}-%{version} %description The stem function takes a scalar as a parameter and stems the word according to Martin Porters Swedish 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 %clean rm -rf %{buildroot} %files %defattr(-,root,root) %doc Changes README %{perl_vendorlib}/Lingua %{_bindir}/stemmer-se.pl %{_mandir}/man3*/* %changelog * Thu Jul 26 2007 Guillaume Rousse <guillomovitch@mandriva.org> 1.2-1mdv2008.0 + Revision: 56111 - new version * Fri Dec 01 2006 Oden Eriksson <oeriksson@mandriva.com> 1.01-3mdv2007.0 + Revision: 89753 - Import perl-Snowball-Swedish * Wed Nov 30 2005 Guillaume Rousse <guillomovitch@mandriva.org> 1.01-3mdk - changed name - spec cleanup - fix directory ownership - %%mkrel - rpmbuildupdate aware - better summary - better description - better url * Sat Oct 16 2004 Oden Eriksson <oeriksson@mandrakesoft.com> 1.01-2mdk - fix deps