commit a7678f2ba524b6b8bdfa837a20204a9a5fb98017 Author: Mathieu Bridon <bochecha@xxxxxxxxxxxxxxxxx> Date: Mon Feb 4 13:04:10 2013 +0800 Initial package for Fedora This was submitted on Mon Feb 04 2013: https://bugzilla.redhat.com/show_bug.cgi?id=907309#c0 perl-Text-ExtractWords.spec | 58 +++++++++++++++++++++++++++++++++++++++++++ 1 files changed, 58 insertions(+), 0 deletions(-) --- diff --git a/perl-Text-ExtractWords.spec b/perl-Text-ExtractWords.spec new file mode 100644 index 0000000..08b28d4 --- /dev/null +++ b/perl-Text-ExtractWords.spec @@ -0,0 +1,58 @@ +Name: perl-Text-ExtractWords +Summary: Perl extension for extract words from strings +Version: 0.08 +Release: 1%{?dist} +License: GPL+ or Artistic +URL: http://search.cpan.org/dist/Text-ExtractWords/ +Source0: http://www.cpan.org/authors/id/H/HD/HDIAS/Text-ExtractWords-%{version}.tar.gz + +BuildRequires: perl(AutoLoader) +BuildRequires: perl(DynaLoader) +BuildRequires: perl(Exporter) +BuildRequires: perl(ExtUtils::MakeMaker) +BuildRequires: perl(vars) + +Requires: perl(:MODULE_COMPAT_%(eval "`%{__perl} -V:version`"; echo $version)) + +%{?perl_default_filter} + +%description +The aim of this module is to extract the words from the texts or mails to +identify spam. But it can be used for another purpose. + + +%prep +%setup -q -n Text-ExtractWords-%{version} + +# Remove executable bit on examples +chmod -x examples/* + + +%build +%{__perl} Makefile.PL INSTALLDIRS=vendor OPTIMIZE="%{optflags}" +make %{?_smp_mflags} + + +%install +make pure_install PERL_INSTALL_ROOT=%{buildroot} + +find %{buildroot} -type f -name .packlist -exec rm -f {} \; +find %{buildroot} -type f -name '*.bs' -size 0 -exec rm -f {} \; + +%{_fixperms} %{buildroot}/* + + +%check +make test + + +%files +%doc Changes README examples +%{perl_vendorarch}/auto/Text +%{perl_vendorarch}/Text +%{_mandir}/man3/Text::ExtractWords.3pm* + + +%changelog +* Mon Feb 04 2013 Mathieu Bridon <bochecha@xxxxxxxxxxxxxxxxx> - 0.08-1 +- Initial package for Fedora, with help from cpanspec. -- 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