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