2009-06-02 07:46:21 +00:00
|
|
|
Name: perl-Email-Abstract
|
2007-09-14 18:25:01 +00:00
|
|
|
Summary: Unified Interface to Mail Representations
|
2009-06-02 07:46:21 +00:00
|
|
|
Version: 3.001
|
|
|
|
|
Release: 1
|
2010-12-01 10:12:47 +00:00
|
|
|
Requires: perl-Email-Simple perl-Module-Pluggable
|
2007-09-14 18:25:01 +00:00
|
|
|
BuildRequires: perl perl-Email-Simple perl-Module-Pluggable
|
2010-12-03 14:03:33 +00:00
|
|
|
BuildRequires: perl-macros
|
2007-09-14 18:25:01 +00:00
|
|
|
License: GPL/Artistic
|
|
|
|
|
Group: Development/Libraries/Perl
|
2009-06-02 07:46:21 +00:00
|
|
|
%define modname Email-Abstract
|
2007-09-14 18:25:01 +00:00
|
|
|
Source: %{modname}-%{version}.tar.bz2
|
|
|
|
|
BuildRoot: %{_tmppath}/%{name}-root
|
2010-12-03 14:03:33 +00:00
|
|
|
%{perl_requires}
|
2007-09-14 18:25:01 +00:00
|
|
|
|
|
|
|
|
%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.
|
|
|
|
|
|
|
|
|
|
Email::Abstract currently supports Mail::Internet, MIME::Entity, Mail::Message,
|
|
|
|
|
Email::Simple and Email::MIME. Other representations are encouraged to create
|
|
|
|
|
their own Email::Abstract::* class by copying Email::Abstract::EmailSimple. All
|
|
|
|
|
modules installed under the Email::Abstract hierarchy will be automatically
|
|
|
|
|
picked up and used.
|
|
|
|
|
|
|
|
|
|
Authors:
|
|
|
|
|
--------
|
|
|
|
|
Casey West <casey@geeknest.com>
|
|
|
|
|
Simon Cozens <simon@cpan.org>
|
|
|
|
|
Ricardo SIGNES <rjbs@cpan.org>
|
|
|
|
|
|
|
|
|
|
%prep
|
|
|
|
|
%setup -q -n %{modname}-%{version}
|
|
|
|
|
|
|
|
|
|
%build
|
|
|
|
|
perl Makefile.PL OPTIMIZE="$RPM_OPT_FLAGS -Wall"
|
2009-06-02 07:46:21 +00:00
|
|
|
make %{?jobs:-j%jobs}
|
|
|
|
|
|
|
|
|
|
%check
|
2007-09-14 18:25:01 +00:00
|
|
|
make test
|
|
|
|
|
|
|
|
|
|
%install
|
2009-06-02 07:46:21 +00:00
|
|
|
%perl_make_install
|
2007-09-14 18:25:01 +00:00
|
|
|
%perl_process_packlist
|
|
|
|
|
|
|
|
|
|
%clean
|
|
|
|
|
rm -rf %{buildroot}
|
|
|
|
|
|
|
|
|
|
%files
|
|
|
|
|
%defattr(-, root, root)
|
|
|
|
|
%doc Changes LICENSE README
|
|
|
|
|
%doc %{_mandir}/man?/*
|
|
|
|
|
%{perl_vendorlib}/Email/Abstract.pm
|
|
|
|
|
%{perl_vendorlib}/Email/Abstract
|
|
|
|
|
|
|
|
|
|
%changelog
|