Name: perl-CGI-Untaint-email
Version: 0.03
Release: 1%{?dist}
Summary: Validate an email address
Group: Development/Libraries
License: GPL or Artistic
URL:
http://search.cpan.org/dist/CGI-Untaint-email
Source0:
http://search.cpan.org/CPAN/authors/id/M/MI/MIYAGAWA/CGI-Untaint-email-%{version}.tar.gz
BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
BuildArch: noarch
BuildRequires: perl(Test::More) >= 0.18
BuildRequires: perl(CGI::Untaint) >= 0.07
BuildRequires: perl(Email::Valid) >= 0.13
BuildRequires: perl(Mail::Address) >= 1.40
Requires: perl(CGI::Untaint) >= 0.07
Requires: perl(Email::Valid) >= 0.13
Requires: perl(Mail::Address) >= 1.40
Requires: perl(:MODULE_COMPAT_%(eval "`%{__perl} -V:version`"; echo $version))
%description
CGI::Untaint::email input handler verifies that it is a valid RFC2822 mailbox
format. The resulting value will be a Mail::Address instance.
%prep
%setup -q -n CGI-Untaint-email-%{version}
%build
%{__perl} Makefile.PL INSTALLDIRS=vendor
make %{?_smp_mflags}
%install
rm -rf $RPM_BUILD_ROOT
make pure_install PERL_INSTALL_ROOT=$RPM_BUILD_ROOT
find $RPM_BUILD_ROOT -type f -name .packlist -exec rm -f {} ';'
find $RPM_BUILD_ROOT -type d -depth -exec rmdir {} 2>/dev/null ';'
chmod -R u+w $RPM_BUILD_ROOT/*
%check
make test
%clean
rm -rf $RPM_BUILD_ROOT
%files
%defattr(-,root,root,-)
%doc Changes
%{perl_vendorlib}/CGI/Untaint/
%{_mandir}/man3/*.3*
%changelog
* Thu Aug 3 2006 Tom "spot" Callaway <
[email protected]> 0.03-1
- initial package for Fedora Extras