8
0
Files
perl-Email-Abstract/perl-Email-Abstract.spec

61 lines
1.8 KiB
RPMSpec
Raw Normal View History

Name: perl-Email-Abstract
Summary: Unified Interface to Mail Representations
Version: 3.001
Release: 1
Requires: perl-Email-Simple perl-Module-Pluggable
BuildRequires: perl perl-Email-Simple perl-Module-Pluggable
BuildRequires: perl-macros
License: GPL/Artistic
Group: Development/Libraries/Perl
%define modname Email-Abstract
Source: %{modname}-%{version}.tar.bz2
BuildRoot: %{_tmppath}/%{name}-root
%{perl_requires}
%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"
make %{?jobs:-j%jobs}
%check
make test
%install
%perl_make_install
%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