%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 temat słów Name: perl-%{pdir}-%{pnam} Version: 0.50 Release: 3 License: GPL/Artistic Group: Development/Languages/Perl Source0: http://www.cpan.org/modules/by-module/%{pdir}/%{pdir}-%{pnam}-%{version}.tar.gz 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 temat słowa, zwracając tematy 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} %{_mandir}/man3/*