commit abc17401e5c68bea6f310bec7a452252f9f1115d Author: Ralf Corsépius <corsepiu@xxxxxxxxxxxxxxxxx> Date: Tue Jan 21 16:28:47 2014 +0100 Initial import .gitignore | 1 + perl-Lingua-EN-Sentence.spec | 52 ++++++++++++++++++++++++++++++++++++++++++ sources | 1 + 3 files changed, 54 insertions(+), 0 deletions(-) --- diff --git a/.gitignore b/.gitignore index e69de29..d368aaf 100644 --- a/.gitignore +++ b/.gitignore @@ -0,0 +1 @@ +/Lingua-EN-Sentence-0.25.tar.gz diff --git a/perl-Lingua-EN-Sentence.spec b/perl-Lingua-EN-Sentence.spec new file mode 100644 index 0000000..536a868 --- /dev/null +++ b/perl-Lingua-EN-Sentence.spec @@ -0,0 +1,52 @@ +Name: perl-Lingua-EN-Sentence +Version: 0.25 +Release: 1%{?dist} +Summary: Module for splitting text into sentences +# "same as perl", cf. lib/Lingua/EN/Sentence.pm +License: GPL+ or Artistic +Group: Development/Libraries +URL: http://search.cpan.org/dist/Lingua-EN-Sentence/ +Source0: http://www.cpan.org/authors/id/S/SH/SHLOMOY/Lingua-EN-Sentence-%{version}.tar.gz +BuildArch: noarch +BuildRequires: perl(ExtUtils::MakeMaker) +BuildRequires: perl(Carp) +BuildRequires: perl(Exporter) +BuildRequires: perl(POSIX) +BuildRequires: perl(locale) +BuildRequires: perl(strict) +BuildRequires: perl(vars) + +Requires: perl(:MODULE_COMPAT_%(eval "`%{__perl} -V:version`"; echo $version)) + +%description +The Lingua::EN::Sentence module contains the function get_sentences, which +splits text into its constituent sentences, based on a regular expression +and a list of abbreviations (built in and given). + +%prep +%setup -q -n Lingua-EN-Sentence-%{version} +iconv -f ISO-8859-1 -t utf-8 Changes > Changes~ +mv Changes~ Changes + +%build +%{__perl} Makefile.PL INSTALLDIRS=vendor +make %{?_smp_mflags} + +%install +make pure_install PERL_INSTALL_ROOT=$RPM_BUILD_ROOT + +find $RPM_BUILD_ROOT -type f -name .packlist -exec rm -f {} \; + +%{_fixperms} $RPM_BUILD_ROOT/* + +%check +make test + +%files +%doc Changes +%{perl_vendorlib}/* +%{_mandir}/man3/* + +%changelog +* Fri Jan 17 2014 Ralf Corsépius <corsepiu@xxxxxxxxxxxxxxxxx> 0.25-1 +- Specfile autogenerated by cpanspec 1.78. diff --git a/sources b/sources index e69de29..4a30970 100644 --- a/sources +++ b/sources @@ -0,0 +1 @@ +4a846acfcb6eedd1c1557fc7f79f034d Lingua-EN-Sentence-0.25.tar.gz -- Fedora Extras Perl SIG http://www.fedoraproject.org/wiki/Extras/SIGs/Perl perl-devel mailing list perl-devel@xxxxxxxxxxxxxxxxxxxxxxx https://admin.fedoraproject.org/mailman/listinfo/perl-devel