3 %bcond_without tests # do not perform "make test"
6 %define pnam Stem-Snowball-Da
7 Summary: Lingua::Stem::Snowball::Da - Porter's stemming algorithm for Danish
8 Summary(pl.UTF-8): Lingua::Stem::Snowball::Da - algorytm Portera określający rdzenie słów dla języka duńskiego
9 Name: perl-Lingua-Stem-Snowball-Da
13 Group: Development/Languages/Perl
14 Source0: http://www.cpan.org/modules/by-module/%{pdir}/%{pdir}-%{pnam}-%{version}.tar.gz
15 # Source0-md5: e8d9a8285bce0c9e4bedc138cd6a1501
16 URL: http://search.cpan.org/dist/Lingua-Stem-Snowball-Da/
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 Danish 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 duńskiego autorstwa Martina Portera. Algorytm
30 ten można znaleźć na stronie Snowballa: http://snowball.tartarus.org/.
33 %setup -q -n %{pdir}-%{pnam}-%{version}
36 %{__perl} Makefile.PL \
40 %{?with_tests:%{__make} test}
43 rm -rf $RPM_BUILD_ROOT
44 install -d $RPM_BUILD_ROOT%{_examplesdir}/%{name}-%{version}
47 DESTDIR=$RPM_BUILD_ROOT
48 cp -p stemmer.pl $RPM_BUILD_ROOT%{_examplesdir}/%{name}-%{version}
51 rm -rf $RPM_BUILD_ROOT
54 %defattr(644,root,root,755)
56 %{perl_vendorlib}/%{pdir}/Stem/Snowball/*.pm
57 %dir %{_examplesdir}/%{name}-%{version}
58 %attr(755,root,root) %{_examplesdir}/%{name}-%{version}/*.pl