3 %bcond_without tests # do not perform "make test"
5 %include /usr/lib/rpm/macros.perl
8 Summary: Unified interface to mail representations
9 Summary(pl): Zunifikiowany interfejs do reprezentacji listów
10 Name: perl-%{pdir}-%{pnam}
14 License: GPL v1+ or Artistic
15 Group: Development/Languages/Perl
16 Source0: http://www.cpan.org/modules/by-module/%{pdir}/%{pdir}-%{pnam}-%{version}.tar.gz
17 # Source0-md5: ed5f792c40511b23356cefeea22b0703
18 BuildRequires: perl-Email-Simple
19 BuildRequires: perl-Module-Pluggable
20 BuildRequires: perl-devel >= 1:5.8.0
21 BuildRequires: rpm-perlprov >= 4.1-13
23 BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
26 Email::Abstract provides module writers with the ability to write
27 representation-independent mail handling code. For instance, in the
28 cases of Mail::Thread or Mail::ListDetector, a key part of the code
29 involves reading the headers from a mail object. Where previously one
30 would either have to specify the mail class required, or to build a
31 new object from scratch, Email::Abstract can be used to perform
32 certain simple operations on an object regardless of its underlying
35 Email::Abstract currently supports Mail::Internet, MIME::Entity,
36 Mail::Message, Email::Simple and Email::MIME. Other representations
37 are encouraged to create their own Email::Abstract::* class by copying
38 Email::Abstract::EmailSimple. All modules installed under the
39 Email::Abstract hierarchy will be automatically picked up and used.
42 Email::Abstract dostarcza pisz±cym modu³y mo¿liwo¶æ pisania kodu
43 obs³uguj±cego listy elektroniczne niezale¿nie od reprezentacji. Na
44 przyk³ad w przypadku Mail::Thread lub Mail::ListDetector znacz±ca
45 czê¶æ kodu dotyczy czytania nag³ówków z obiektu listu. Tam, gdzie
46 poprzednio trzeba by³o podaæ wymagan± nazwê klasy lub zbudowaæ
47 nowy obiekt od pocz±tku, mo¿na u¿yæ Email::Abstract do wykonania
48 pewnych prostych operacji na obiekcie niezale¿nie od jego
51 Email::Abstract aktualnie obs³uguje Mail::Internet, MIME::Entity,
52 Mail::Message, Email::Simple oraz Email::MIME. Dla innych
53 reprezentacji zaleca siê stworzyæ w³asn± klasê Email::Abstract::*
54 poprzez skopiowanie Email::Abstract::EmailSimple. Wszystkie modu³y
55 zainstalowane w hierarchii Email::Abstract s± automatycznie u¿ywane.
58 %setup -q -n %{pdir}-%{pnam}-%{version}
61 %{__perl} Makefile.PL \
66 %{?with_tests:%{__make} test}
69 rm -rf $RPM_BUILD_ROOT
72 DESTDIR=$RPM_BUILD_ROOT
75 rm -rf $RPM_BUILD_ROOT
78 %defattr(644,root,root,755)
80 %{perl_vendorlib}/Email/Abstract.pm
81 %{perl_vendorlib}/Email/Abstract