3 %bcond_without tests # do not perform "make test"
5 %include /usr/lib/rpm/macros.perl
7 %define pnam Snowball-Swedish
8 Summary: Lingua::Stem::Snowball::Se - Porter's stemming algorithm for Sweedish
9 Summary(pl.UTF-8): Lingua::Stem::Snowball::Se - algorytm Portera określający rdzenie słów dla języka szwedzkiego
10 Name: perl-Lingua-Stem-Snowball-Se
14 Group: Development/Languages/Perl
15 Source0: http://www.cpan.org/modules/by-module/%{pdir}/%{pnam}-%{version}.tar.gz
16 # Source0-md5: e2ed0f5c2a9fc7e500c61553c4c1e9c9
17 BuildRequires: perl-devel >= 1:5.8.0
18 BuildRequires: rpm-perlprov >= 4.1-13
20 BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
23 The stem function takes a scalar as a parameter and stems the word
24 according to Martin Porter's Swedish stemming algorithm, which can be
25 found at the Snowball website: http://snowball.tartarus.org/.
27 %description -l pl.UTF-8
28 Funkcja określająca rdzenie słów pobiera skalarny parametr i korzysta
29 z algorytmu dla języka szwedzkiego autorstwa Martina Portera. Algorytm
30 ten można znaleźć na stronie Snowballa: http://snowball.tartarus.org/.
33 %setup -q -n %{pnam}-%{version}
36 %{__perl} Makefile.PL \
40 %{?with_tests:%{__make} test}
43 rm -rf $RPM_BUILD_ROOT
46 DESTDIR=$RPM_BUILD_ROOT
49 rm -rf $RPM_BUILD_ROOT
52 %defattr(644,root,root,755)
54 %attr(755,root,root) %{_bindir}/stemmer-se.pl
55 %{perl_vendorlib}/Lingua/Stem/Snowball/*.pm