]> git.pld-linux.org Git - packages/perl-Lingua-Stem.git/blob - perl-Lingua-Stem.spec
- ported to new bconds
[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-%{pdir}-%{pnam}
11 Version:        0.61
12 Release:        1
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:  ca99b08aa82fcbcd749d4903b205fcec
17 %if %{with tests}
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
48 %{?with_tests:%{__make} test}
49
50 %install
51 rm -rf $RPM_BUILD_ROOT
52
53 %{__make} install DESTDIR=$RPM_BUILD_ROOT
54
55 %clean
56 rm -rf $RPM_BUILD_ROOT
57
58 %files
59 %defattr(644,root,root,755)
60 %{perl_vendorlib}/%{pdir}/*.pm
61 %{perl_vendorlib}/%{pdir}/%{pnam}/*.pm
62 %{_mandir}/man3/*
This page took 0.055422 seconds and 3 git commands to generate.