]> git.pld-linux.org Git - packages/perl-Lingua-Stem.git/blob - perl-Lingua-Stem.spec
- up to 0.60, BRs for tests, cosmetics (from RA-branch), release 2
[packages/perl-Lingua-Stem.git] / perl-Lingua-Stem.spec
1 #
2 # Conditional build:
3 # _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 - stemming of words
9 Summary(pl):    Modu³ Perla Lingua::Stem - okre¶laj±cy rdzenie s³ów
10 Name:           perl-%{pdir}-%{pnam}
11 Version:        0.60
12 Release:        2
13 License:        GPL or Artistic
14 Group:          Development/Languages/Perl
15 Source0:        http://www.cpan.org/modules/by-module/%{pdir}/%{pdir}-%{pnam}-%{version}.tar.gz
16 # Source0-md5:  9fa4e866ff0b20db50b82ac7c984cfca
17 %if 0%{!?_without_tests:1}
18 BuildRequires:  perl-Lingua-GL-Stemmer
19 BuildRequires:  perl-Lingua-PT-Stemmer
20 BuildRequires:  perl-Lingua-Stem-It
21 BuildRequires:  perl-Lingua-Stem-Snowball-Da
22 BuildRequires:  perl-Lingua-Stem-Snowball-No
23 BuildRequires:  perl-Lingua-Stem-Snowball-Se
24 BuildRequires:  perl-Text-German
25 %endif
26 BuildRequires:  perl-devel >= 5.6
27 BuildRequires:  rpm-perlprov >= 4.1-13
28 BuildArch:      noarch
29 BuildRoot:      %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
30
31 %description
32 This routine applies stemming algorithms to its parameters, returning
33 the stemmed words as appropriate to the selected locale.
34
35 %description -l pl
36 Ta funkcja wykonuje na swoich parametrach algorytmy okre¶laj±ce
37 rdzenie s³ów, zwracaj±c rdzenie s³ów w³a¶ciwe dla ustawionej
38 lokalizacji.
39
40 %prep
41 %setup -q -n %{pdir}-%{pnam}-%{version}
42
43 %build
44 %{__perl} Makefile.PL \
45         INSTALLDIRS=vendor 
46 %{__make}
47 %{!?_without_tests:%{__make} test}
48
49 %install
50 rm -rf $RPM_BUILD_ROOT
51
52 %{__make} install DESTDIR=$RPM_BUILD_ROOT
53
54 %clean
55 rm -rf $RPM_BUILD_ROOT
56
57 %files
58 %defattr(644,root,root,755)
59 %{perl_vendorlib}/%{pdir}/*.pm
60 %{perl_vendorlib}/%{pdir}/%{pnam}/*.pm
61 %{_mandir}/man3/*
This page took 0.062678 seconds and 3 git commands to generate.