Name: perl-Email-Abstract Version: 2.132 Release: 5 Summary: Unified interface to mail representations Group: Development/Libraries License: GPL+ or Artistic URL: http://search.cpan.org/dist/Email-Abstract/ Source0: http://search.cpan.org/CPAN/authors/id/R/RJ/RJBS/Email-Abstract-%{version}.tar.gz BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n) BuildRequires: perl(ExtUtils::MakeMaker), perl(Test::More), perl(Class::ISA), perl(Email::Simple) BuildRequires: perl(MIME::Entity), perl(Module::Pluggable) BuildRequires: perl(Email::MIME), perl(Test::Pod), perl(Test::Pod::Coverage), perl(Test::More) #BuildRequires: perl(Mail::Message) BuildArch: noarch Requires: perl(:MODULE_COMPAT_%(eval "`%{__perl} -V:version`"; echo $version)) %description "Email::Abstract" provides module writers with the ability to write representation-independent mail handling code. For instance, in the cases of "Mail::Thread" or "Mail::ListDetector", a key part of the code involves reading the headers from a mail object. Where previously one would either have to specify the mail class required, or to build a new object from scratch, "Email::Abstract" can be used to perform certain simple operations on an object regardless of its underlying representation. %prep %setup -q -n Email-Abstract-%{version} %build sed -i '/LICENSE/ d' Makefile.PL %{__perl} Makefile.PL INSTALLDIRS=vendor make %install rm -rf $RPM_BUILD_ROOT _docs make pure_install PERL_INSTALL_ROOT=$RPM_BUILD_ROOT find $RPM_BUILD_ROOT -type f -name .packlist -exec rm -f {} ';' find $RPM_BUILD_ROOT -depth -type d -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 README LICENSE %{perl_vendorlib}/Email/ %{_mandir}/man3/*.3* %changelog * Wed Nov 21 2007 Tom "spot" Callaway - 2.132-4.2 - re-enable Mail::Message dep (aren't dep loops fun?) * Wed Nov 21 2007 Tom "spot" Callaway - 2.132-4.1 - remove Mail::Message dep * Fri Aug 24 2007 Tom "spot" Callaway - 2.132-4 - license fix * Mon Apr 16 2007 Tom "spot" Callaway - 2.132-3 - add missing BR Email::MIME, Test::Pod, Test::Pod::Coverage * Mon Apr 2 2007 Tom "spot" Callaway - 2.132-2 - remove LICENSE line from Makefile.PL - add BR Module::Pluggable, Mail::Message * Sun Apr 1 2007 Tom "spot" Callaway - 2.132-1 - Initial package for Fedora