]>
Commit | Line | Data |
---|---|---|
05d4db33 | 1 | %include /usr/lib/rpm/macros.perl |
2 | %define pdir Lingua | |
3 | %define pnam Stem | |
4 | Summary: Lingua::Stem -- Stemming of words | |
5 | #Summary(pl): | |
6 | Name: perl-%{pdir}-%{pnam} | |
7 | Version: 0.50 | |
8 | Release: 1 | |
9 | License: GPL/Artistic | |
10 | Group: Development/Languages/Perl | |
11 | Source0: ftp://ftp.cpan.org/pub/CPAN/modules/by-module/%{pdir}/%{pdir}-%{pnam}-%{version}.tar.gz | |
12 | BuildRequires: perl >= 5.6 | |
13 | BuildRequires: rpm-perlprov >= 3.0.3-26 | |
14 | BuildArch: noarch | |
15 | BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) | |
16 | ||
17 | %description | |
18 | This routine applies stemming algorithms to its parameters, returning | |
19 | the stemmed words as appropriate to the selected locale. | |
20 | ||
21 | # %description -l pl | |
22 | # TODO | |
23 | ||
24 | %prep | |
25 | %setup -q -n %{pdir}-%{pnam}-%{version} | |
26 | ||
27 | %build | |
28 | perl Makefile.PL | |
29 | %{__make} | |
30 | %{!?_without_tests:%{__make} test} | |
31 | ||
32 | %install | |
33 | rm -rf $RPM_BUILD_ROOT | |
34 | ||
35 | %{__make} install DESTDIR=$RPM_BUILD_ROOT | |
36 | ||
37 | %clean | |
38 | rm -rf $RPM_BUILD_ROOT | |
39 | ||
40 | %files | |
41 | %defattr(644,root,root,755) | |
42 | %{perl_sitelib}/%{pdir}/*.pm | |
43 | %{perl_sitelib}/%{pdir}/%{pnam} | |
44 | %{_mandir}/man3/* |