2006-10-31 15:11:58 +00:00
|
|
|
%define modname Email-Find
|
|
|
|
|
Name: perl-%{modname}
|
2010-01-02 19:47:12 +00:00
|
|
|
Version: 0.10
|
|
|
|
|
Release: 1
|
2006-10-31 15:11:58 +00:00
|
|
|
Summary: Find RFC 822 email addresses in plain text
|
|
|
|
|
Requires: perl = %{perl_version} perl-Email-Valid perl-MailTools
|
|
|
|
|
BuildRequires: perl perl-Email-Valid perl-MailTools
|
|
|
|
|
License: GPL/Artistic
|
|
|
|
|
Group: Development/Libraries/Perl
|
|
|
|
|
Source: %{modname}-%{version}.tar.bz2
|
|
|
|
|
BuildRoot: %{_tmppath}/%{name}-root
|
|
|
|
|
|
|
|
|
|
%description
|
|
|
|
|
Email::Find is a module for finding a *subset* of RFC 822 email addresses in
|
|
|
|
|
arbitrary text. The addresses it finds are not guaranteed to exist or even
|
|
|
|
|
actually be email addresses at all, but they will be valid RFC 822 syntax.
|
|
|
|
|
|
|
|
|
|
Email::Find will perform some heuristics to avoid some of the more obvious red
|
|
|
|
|
herrings and false addresses, but there's only so much which can be done
|
|
|
|
|
without a human.
|
|
|
|
|
|
|
|
|
|
Authors:
|
|
|
|
|
--------
|
|
|
|
|
Tatsuhiko Miyagawa <miyagawa@bulknews.net>
|
|
|
|
|
Michael G Schwern <schwern@pobox.com>
|
|
|
|
|
|
|
|
|
|
%prep
|
|
|
|
|
%setup -q -n %{modname}-%{version}
|
|
|
|
|
|
|
|
|
|
%build
|
|
|
|
|
perl Makefile.PL OPTIMIZE="$RPM_OPT_FLAGS -Wall"
|
|
|
|
|
make
|
2010-01-02 19:47:12 +00:00
|
|
|
|
|
|
|
|
%check
|
2006-10-31 15:11:58 +00:00
|
|
|
make test
|
|
|
|
|
|
|
|
|
|
%install
|
|
|
|
|
rm -rf %{buildroot}
|
|
|
|
|
make DESTDIR=$RPM_BUILD_ROOT install_vendor
|
|
|
|
|
%perl_process_packlist
|
|
|
|
|
|
|
|
|
|
%clean
|
|
|
|
|
rm -rf %{buildroot}
|
|
|
|
|
|
|
|
|
|
%files
|
|
|
|
|
%defattr(-, root, root)
|
|
|
|
|
%doc README Changes
|
|
|
|
|
%doc %{_mandir}/man?/*
|
|
|
|
|
%{perl_vendorlib}//Email/Find
|
|
|
|
|
%{perl_vendorlib}//Email/Find.pm
|
|
|
|
|
%{perl_vendorarch}/auto/Email/Find
|
|
|
|
|
|
|
|
|
|
%changelog
|