3 %bcond_without tests # do not perform "make test"
6 %define pnam EN-Sentence
7 Summary: Lingua::EN::Sentence Perl module - splitting text into sentences
8 Summary(pl.UTF-8): Moduł Perla Lingua::EN::Sentence - podział tekstu na zdania
9 Name: perl-Lingua-EN-Sentence
13 License: GPL v1+ or Artistic
14 Group: Development/Languages/Perl
15 Source0: http://www.cpan.org/modules/by-module/Lingua/%{pdir}-%{pnam}-%{version}.tar.gz
16 # Source0-md5: 70e2450db477106e98d1634e4e26429f
17 URL: http://search.cpan.org/dist/Lingua-EN-Sentence/
18 BuildRequires: perl-devel >= 1:5.8.0
19 BuildRequires: rpm-perlprov >= 4.1-13
21 BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
24 The Lingua::EN::Sentence Perl module contains the function
25 get_sentences, which splits text into its constituent sentences, based
26 on a regular expression and a list of abbreviations (built in and
29 %description -l pl.UTF-8
30 Moduł Perla Lingua::EN::Sentence zawiera funkcję get_sentences,
31 dzielącą tekst na zdania składowe, w oparciu o wyrażenie regularne i
32 listę skrótów (wbudowaną oraz podaną).
35 %setup -q -n %{pdir}-%{pnam}-%{version}
38 %{__perl} Makefile.PL \
42 %{?with_tests:%{__make} test}
45 rm -rf $RPM_BUILD_ROOT
48 DESTDIR=$RPM_BUILD_ROOT
51 rm -rf $RPM_BUILD_ROOT
54 %defattr(644,root,root,755)
56 %{perl_vendorlib}/Lingua/EN/Sentence.pm
57 %{_mandir}/man3/Lingua::EN::Sentence.3pm*