]> git.pld-linux.org Git - SPECS.git/blob - perl-Lingua-Stem-Snowball-Da.spec
SPECS updated Wed 28 Jul 14:48:01 CEST 2021
[SPECS.git] / perl-Lingua-Stem-Snowball-Da.spec
1 #
2 # Conditional build:
3 %bcond_without  tests   # do not perform "make test"
4
5 %define         pdir    Lingua
6 %define         pnam    Stem-Snowball-Da
7 Summary:        Lingua::Stem::Snowball::Da - Porter's stemming algorithm for Danish
8 Summary(pl.UTF-8):      Lingua::Stem::Snowball::Da - algorytm Portera określający rdzenie słów dla języka duńskiego
9 Name:           perl-Lingua-Stem-Snowball-Da
10 Version:        1.01
11 Release:        4
12 License:        GPL v2
13 Group:          Development/Languages/Perl
14 Source0:        http://www.cpan.org/modules/by-module/%{pdir}/%{pdir}-%{pnam}-%{version}.tar.gz
15 # Source0-md5:  e8d9a8285bce0c9e4bedc138cd6a1501
16 URL:            http://search.cpan.org/dist/Lingua-Stem-Snowball-Da/
17 BuildRequires:  perl-devel >= 1:5.8.0
18 BuildRequires:  rpm-perlprov >= 4.1-13
19 BuildArch:      noarch
20 BuildRoot:      %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
21
22 %description
23 The stem function takes a scalar as a parameter and stems the word
24 according to Martin Porter's Danish stemming algorithm, which can be
25 found at the Snowball website: http://snowball.tartarus.org/.
26
27 %description -l pl.UTF-8
28 Funkcja określająca rdzenie słów pobiera skalarny parametr i korzysta
29 z algorytmu dla języka duńskiego autorstwa Martina Portera. Algorytm
30 ten można znaleźć na stronie Snowballa: http://snowball.tartarus.org/.
31
32 %prep
33 %setup -q -n %{pdir}-%{pnam}-%{version}
34
35 %build
36 %{__perl} Makefile.PL \
37         INSTALLDIRS=vendor
38 %{__make}
39
40 %{?with_tests:%{__make} test}
41
42 %install
43 rm -rf $RPM_BUILD_ROOT
44 install -d $RPM_BUILD_ROOT%{_examplesdir}/%{name}-%{version}
45
46 %{__make} install \
47         DESTDIR=$RPM_BUILD_ROOT
48 cp -p stemmer.pl $RPM_BUILD_ROOT%{_examplesdir}/%{name}-%{version}
49
50 %clean
51 rm -rf $RPM_BUILD_ROOT
52
53 %files
54 %defattr(644,root,root,755)
55 %doc Changes README
56 %{perl_vendorlib}/%{pdir}/Stem/Snowball/*.pm
57 %dir %{_examplesdir}/%{name}-%{version}
58 %attr(755,root,root) %{_examplesdir}/%{name}-%{version}/*.pl
59 %{_mandir}/man3/*
This page took 0.316023 seconds and 3 git commands to generate.