]> git.pld-linux.org Git - packages/perl-Email-Abstract.git/blame - perl-Email-Abstract.spec
- release 2
[packages/perl-Email-Abstract.git] / perl-Email-Abstract.spec
CommitLineData
5e47a3fa
AG
1#
2# Conditional build:
3%bcond_without tests # do not perform "make test"
4#
5%include /usr/lib/rpm/macros.perl
494165e2 6%define pdir Email
7%define pnam Abstract
5e47a3fa 8Summary: Unified interface to mail representations
07885cd3 9Summary(pl.UTF-8): Zunifikiowany interfejs do reprezentacji listów
e43b85ae 10Name: perl-Email-Abstract
f6d335a9 11Version: 2.134
840c9ed7 12Release: 2
b732c73b 13# same as perl
ff3a13d2 14License: GPL v1+ or Artistic
5e47a3fa
AG
15Group: Development/Languages/Perl
16Source0: http://www.cpan.org/modules/by-module/%{pdir}/%{pdir}-%{pnam}-%{version}.tar.gz
f6d335a9 17# Source0-md5: 40d578efaf2457960f657420130db926
432c725f 18URL: http://search.cpan.org/dist/Email-Abstract/
5e22dad1 19BuildRequires: perl-Email-Simple >= 1:1.91
48f89220 20BuildRequires: perl-Module-Pluggable >= 1.5
5e47a3fa
AG
21BuildRequires: perl-devel >= 1:5.8.0
22BuildRequires: rpm-perlprov >= 4.1-13
23BuildArch: noarch
24BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
25
5e47a3fa
AG
26%description
27Email::Abstract provides module writers with the ability to write
28representation-independent mail handling code. For instance, in the
29cases of Mail::Thread or Mail::ListDetector, a key part of the code
30involves reading the headers from a mail object. Where previously one
31would either have to specify the mail class required, or to build a
32new object from scratch, Email::Abstract can be used to perform
33certain simple operations on an object regardless of its underlying
34representation.
35
36Email::Abstract currently supports Mail::Internet, MIME::Entity,
37Mail::Message, Email::Simple and Email::MIME. Other representations
38are encouraged to create their own Email::Abstract::* class by copying
39Email::Abstract::EmailSimple. All modules installed under the
40Email::Abstract hierarchy will be automatically picked up and used.
41
99704691
JR
42%description -l pl.UTF-8
43Email::Abstract dostarcza piszącym moduły możliwość pisania kodu
44obsługującego listy elektroniczne niezależnie od reprezentacji. Na
45przykład w przypadku Mail::Thread lub Mail::ListDetector znacząca
46część kodu dotyczy czytania nagłówków z obiektu listu. Tam, gdzie
47poprzednio trzeba było podać wymaganą nazwę klasy lub zbudować nowy
48obiekt od początku, można użyć Email::Abstract do wykonania pewnych
49prostych operacji na obiekcie niezależnie od jego reprezentacji.
b732c73b 50
99704691 51Email::Abstract aktualnie obsługuje Mail::Internet, MIME::Entity,
b732c73b 52Mail::Message, Email::Simple oraz Email::MIME. Dla innych
99704691
JR
53reprezentacji zaleca się stworzyć własną klasę Email::Abstract::*
54poprzez skopiowanie Email::Abstract::EmailSimple. Wszystkie moduły
55zainstalowane w hierarchii Email::Abstract są automatycznie używane.
5e47a3fa
AG
56
57%prep
58%setup -q -n %{pdir}-%{pnam}-%{version}
59
60%build
5e47a3fa
AG
61%{__perl} Makefile.PL \
62 INSTALLDIRS=vendor
63
64%{__make}
5e47a3fa
AG
65
66%{?with_tests:%{__make} test}
67
68%install
69rm -rf $RPM_BUILD_ROOT
70
71%{__make} install \
72 DESTDIR=$RPM_BUILD_ROOT
73
74%clean
75rm -rf $RPM_BUILD_ROOT
76
77%files
78%defattr(644,root,root,755)
79%doc Changes README
5e47a3fa
AG
80%{perl_vendorlib}/Email/Abstract.pm
81%{perl_vendorlib}/Email/Abstract
82%{_mandir}/man3/*
This page took 0.042022 seconds and 4 git commands to generate.