Files
perl-Email-Find/perl-Email-Find.spec

54 lines
1.4 KiB
RPMSpec
Raw Normal View History

%define modname Email-Find
Name: perl-%{modname}
Version: 0.10
Release: 1
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
%check
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