f13f21d
Name:           perl-Email-Find
f13f21d
Version:        0.10
f13f21d
Release:        2%{?dist}
f13f21d
Summary:        Find RFC 822 email addresses in plain text
f13f21d
f13f21d
Group:          Development/Libraries
f13f21d
License:        GPL+ or Artistic
f13f21d
URL:            http://search.cpan.org/dist/Email-Find/
f13f21d
Source0:        http://search.cpan.org/CPAN/authors/id/M/MI/MIYAGAWA/Email-Find-%{version}.tar.gz
f13f21d
BuildRoot:      %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
f13f21d
f13f21d
BuildArch:      noarch
f13f21d
BuildRequires:  perl(ExtUtils::MakeMaker)
f13f21d
BuildRequires:  perl(Email::Valid)
f13f21d
BuildRequires:  perl(Test::More)
f13f21d
Requires:  perl(:MODULE_COMPAT_%(eval "`%{__perl} -V:version`"; echo $version))
f13f21d
f13f21d
%description
f13f21d
Email::Find is a module for finding a *subset* of RFC 822 email
f13f21d
addresses in arbitrary text (see the section on "CAVEATS"). The
f13f21d
addresses it finds are not guaranteed to exist or even actually be email
f13f21d
addresses at all (see the section on "CAVEATS"), but they will be valid
f13f21d
RFC 822 syntax.
f13f21d
f13f21d
%prep
f13f21d
%setup -q -n Email-Find-%{version}
f13f21d
f13f21d
f13f21d
%build
f13f21d
%{__perl} Makefile.PL INSTALLDIRS=vendor
f13f21d
make %{?_smp_mflags}
f13f21d
f13f21d
f13f21d
%install
f13f21d
rm -rf $RPM_BUILD_ROOT
f13f21d
make pure_install PERL_INSTALL_ROOT=$RPM_BUILD_ROOT
f13f21d
find $RPM_BUILD_ROOT -type f -name .packlist -exec rm -f {} ';'
f13f21d
f13f21d
f13f21d
%check
f13f21d
make test
f13f21d
f13f21d
f13f21d
%clean
f13f21d
rm -rf $RPM_BUILD_ROOT
f13f21d
f13f21d
f13f21d
%files
f13f21d
%defattr(-,root,root,-)
f13f21d
%doc Changes README
f13f21d
%{perl_vendorlib}/*
f13f21d
%{_mandir}/man3/*.3*
f13f21d
f13f21d
f13f21d
%changelog
f13f21d
* Sat Aug  9 2008 kwizart < kwizart at gmail.com > - 0.10-2
f13f21d
- Add BR perl(Test:More)
f13f21d
f13f21d
* Thu Jul 31 2008 kwizart < kwizart at gmail.com > - 0.10-1
f13f21d
- Initial package for Fedora