# # Conditional build: # _without_tests - do not perform "make test" # %include /usr/lib/rpm/macros.perl %define pdir Lingua %define pnam Stem Summary: Lingua::Stem - stemming of words Summary(pl): Moduł Perla Lingua::Stem - określający rdzenie słów Name: perl-%{pdir}-%{pnam} Version: 0.60 Release: 2 License: GPL or Artistic Group: Development/Languages/Perl Source0: http://www.cpan.org/modules/by-module/%{pdir}/%{pdir}-%{pnam}-%{version}.tar.gz # Source0-md5: 9fa4e866ff0b20db50b82ac7c984cfca %if 0%{!?_without_tests:1} BuildRequires: perl-Lingua-GL-Stemmer BuildRequires: perl-Lingua-PT-Stemmer BuildRequires: perl-Lingua-Stem-It BuildRequires: perl-Lingua-Stem-Snowball-Da BuildRequires: perl-Lingua-Stem-Snowball-No BuildRequires: perl-Lingua-Stem-Snowball-Se BuildRequires: perl-Text-German %endif BuildRequires: perl-devel >= 5.6 BuildRequires: rpm-perlprov >= 4.1-13 BuildArch: noarch BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) %description This routine applies stemming algorithms to its parameters, returning the stemmed words as appropriate to the selected locale. %description -l pl Ta funkcja wykonuje na swoich parametrach algorytmy określające rdzenie słów, zwracając rdzenie słów właściwe dla ustawionej lokalizacji. %prep %setup -q -n %{pdir}-%{pnam}-%{version} %build %{__perl} Makefile.PL \ INSTALLDIRS=vendor %{__make} %{!?_without_tests:%{__make} test} %install rm -rf $RPM_BUILD_ROOT %{__make} install DESTDIR=$RPM_BUILD_ROOT %clean rm -rf $RPM_BUILD_ROOT %files %defattr(644,root,root,755) %{perl_vendorlib}/%{pdir}/*.pm %{perl_vendorlib}/%{pdir}/%{pnam}/*.pm %{_mandir}/man3/*