3 # _without_tests - do not perform "make test"
5 %include /usr/lib/rpm/macros.perl
8 Summary: Lingua::Stem - stemming of words
9 Summary(pl): Modu³ Perla Lingua::Stem - okre¶laj±cy rdzenie s³ów
10 Name: perl-%{pdir}-%{pnam}
13 License: GPL or Artistic
14 Group: Development/Languages/Perl
15 Source0: http://www.cpan.org/modules/by-module/%{pdir}/%{pdir}-%{pnam}-%{version}.tar.gz
16 # Source0-md5: 9fa4e866ff0b20db50b82ac7c984cfca
17 %if 0%{!?_without_tests:1}
18 BuildRequires: perl-Lingua-GL-Stemmer
19 BuildRequires: perl-Lingua-PT-Stemmer
20 BuildRequires: perl-Lingua-Stem-It
21 BuildRequires: perl-Lingua-Stem-Snowball-Da
22 BuildRequires: perl-Lingua-Stem-Snowball-No
23 BuildRequires: perl-Lingua-Stem-Snowball-Se
24 BuildRequires: perl-Text-German
26 BuildRequires: perl-devel >= 5.6
27 BuildRequires: rpm-perlprov >= 4.1-13
29 BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
32 This routine applies stemming algorithms to its parameters, returning
33 the stemmed words as appropriate to the selected locale.
36 Ta funkcja wykonuje na swoich parametrach algorytmy okre¶laj±ce
37 rdzenie s³ów, zwracaj±c rdzenie s³ów w³a¶ciwe dla ustawionej
41 %setup -q -n %{pdir}-%{pnam}-%{version}
44 %{__perl} Makefile.PL \
47 %{!?_without_tests:%{__make} test}
50 rm -rf $RPM_BUILD_ROOT
52 %{__make} install DESTDIR=$RPM_BUILD_ROOT
55 rm -rf $RPM_BUILD_ROOT
58 %defattr(644,root,root,755)
59 %{perl_vendorlib}/%{pdir}/*.pm
60 %{perl_vendorlib}/%{pdir}/%{pnam}/*.pm