1 |
%define upstream_name perlindex |
2 |
%define upstream_version 1.605 |
3 |
|
4 |
Name: perl-%{upstream_name} |
5 |
Version: %perl_convert_version %{upstream_version} |
6 |
Release: %mkrel 2 |
7 |
|
8 |
Summary: English language stemming |
9 |
License: GPL+ or Artistic |
10 |
Group: Development/Perl |
11 |
Url: http://search.cpan.org/dist/%{upstream_name} |
12 |
Source0: http://www.cpan.org/modules/by-module/Text/%{upstream_name}-%{upstream_version}.tar.gz |
13 |
|
14 |
|
15 |
BuildArch: noarch |
16 |
BuildRoot: %{_tmppath}/%{name}-%{version}-%{release} |
17 |
|
18 |
%description |
19 |
This routine applies the Porter Stemming Algorithm to its parameters, |
20 |
returning the stemmed words. It is derived from the C program "stemmer.c" |
21 |
as found in freewais and elsewhere, which contains these notes: |
22 |
|
23 |
Purpose: Implementation of the Porter stemming algorithm documented |
24 |
in: Porter, M.F., "An Algorithm For Suffix Stripping," |
25 |
Program 14 (3), July 1980, pp. 130-137. |
26 |
Provenance: Written by B. Frakes and C. Cox, 1986. |
27 |
|
28 |
I have re-interpreted areas that use Frakes and Cox's "WordSize" function. |
29 |
My version may misbehave on short words starting with "y", but I can't |
30 |
think of any examples. |
31 |
|
32 |
%prep |
33 |
%setup -q -n %{upstream_name}-%{upstream_version} |
34 |
|
35 |
%build |
36 |
%{__perl} Makefile.PL INSTALLDIRS=vendor |
37 |
|
38 |
%make |
39 |
|
40 |
%check |
41 |
%make test |
42 |
|
43 |
%install |
44 |
rm -rf %buildroot |
45 |
%makeinstall_std |
46 |
|
47 |
%clean |
48 |
rm -rf %buildroot |
49 |
|
50 |
%files |
51 |
%defattr(-,root,root) |
52 |
%doc ChangeLog META.yml README |
53 |
%{_bindir}/perlindex |
54 |
%{_mandir}/man1/* |
55 |
%{_mandir}/man3/* |
56 |
%perl_vendorlib/* |
57 |
|
58 |
|
59 |
|