]> git.pld-linux.org Git - packages/perl-Lingua-Stem.git/blob - perl-Lingua-Stem.spec
- massive: unfold macros in name/summary & other unifications
[packages/perl-Lingua-Stem.git] / perl-Lingua-Stem.spec
1 #
2 # Conditional build:
3 %bcond_without  tests   # do not perform "make test"
4 #
5 %include        /usr/lib/rpm/macros.perl
6 %define pdir    Lingua
7 %define pnam    Stem
8 Summary:        Lingua::Stem Perl module - stemming of words
9 Summary(pl):    Modu³ Perla Lingua::Stem - okre¶lanie rdzeni s³ów
10 Name:           perl-Lingua-Stem
11 Version:        0.70
12 Release:        1
13 # same as perl
14 License:        GPL v1+ or Artistic
15 Group:          Development/Languages/Perl
16 Source0:        http://www.cpan.org/modules/by-module/%{pdir}/%{pdir}-%{pnam}-%{version}.tar.gz
17 # Source0-md5:  95f120129265bd6d4835f7403ceb8a12
18 %if %{with tests}
19 BuildRequires:  perl-Lingua-GL-Stemmer
20 BuildRequires:  perl-Lingua-PT-Stemmer
21 BuildRequires:  perl-Lingua-Stem-Fr >= 0.02
22 BuildRequires:  perl-Lingua-Stem-It
23 BuildRequires:  perl-Lingua-Stem-Snowball-Da >= 1.01
24 BuildRequires:  perl-Lingua-Stem-Snowball-No >= 1.00
25 BuildRequires:  perl-Lingua-Stem-Snowball-Se >= 1.01
26 BuildRequires:  perl-Text-German
27 %endif
28 BuildRequires:  perl-devel >= 1:5.8.0
29 BuildRequires:  rpm-perlprov >= 4.1-13
30 BuildArch:      noarch
31 BuildRoot:      %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
32
33 %description
34 This routine applies stemming algorithms to its parameters, returning
35 the stemmed words as appropriate to the selected locale.
36
37 %description -l pl
38 Ta funkcja wykonuje na swoich parametrach algorytmy okre¶laj±ce
39 rdzenie s³ów, zwracaj±c rdzenie s³ów w³a¶ciwe dla ustawionej
40 lokalizacji.
41
42 %prep
43 %setup -q -n %{pdir}-%{pnam}-%{version}
44
45 %build
46 %{__perl} Makefile.PL \
47         INSTALLDIRS=vendor
48 %{__make}
49
50 %{?with_tests:%{__make} test}
51
52 %install
53 rm -rf $RPM_BUILD_ROOT
54
55 %{__make} install \
56         DESTDIR=$RPM_BUILD_ROOT
57
58 %clean
59 rm -rf $RPM_BUILD_ROOT
60
61 %files
62 %defattr(644,root,root,755)
63 %{perl_vendorlib}/%{pdir}/*.pm
64 %{perl_vendorlib}/%{pdir}/%{pnam}/*.pm
65 %{_mandir}/man3/*
This page took 0.111086 seconds and 4 git commands to generate.