# # Conditional build: %bcond_without tests # do not perform "make test" # %include /usr/lib/rpm/macros.perl %define pdir Lingua %define pnam Stem Summary: Lingua::Stem Perl module - stemming of words Summary(pl): Moduł Perla Lingua::Stem - określanie rdzeni słów Name: perl-%{pdir}-%{pnam} Version: 0.61 Release: 1 License: GPL or Artistic Group: Development/Languages/Perl Source0: http://www.cpan.org/modules/by-module/%{pdir}/%{pdir}-%{pnam}-%{version}.tar.gz # Source0-md5: ca99b08aa82fcbcd749d4903b205fcec %if %{with tests} 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} %{?with_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/*