]>
Commit | Line | Data |
---|---|---|
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 | 7 | Summary: Unified interface to mail representations |
07885cd3 | 8 | Summary(pl.UTF-8): Zunifikiowany interfejs do reprezentacji listów |
e43b85ae | 9 | Name: perl-Email-Abstract |
cf5ffb5d | 10 | Version: 3.008 |
cd01b73c | 11 | Release: 1 |
b732c73b | 12 | # same as perl |
ff3a13d2 | 13 | License: GPL v1+ or Artistic |
5e47a3fa AG |
14 | Group: Development/Languages/Perl |
15 | Source0: http://www.cpan.org/modules/by-module/%{pdir}/%{pdir}-%{pnam}-%{version}.tar.gz | |
cf5ffb5d | 16 | # Source0-md5: dbfc069ffb5f8c96989bf62f0df5d756 |
432c725f | 17 | URL: http://search.cpan.org/dist/Email-Abstract/ |
5e22dad1 | 18 | BuildRequires: perl-Email-Simple >= 1:1.91 |
48f89220 | 19 | BuildRequires: perl-Module-Pluggable >= 1.5 |
5e47a3fa AG |
20 | BuildRequires: perl-devel >= 1:5.8.0 |
21 | BuildRequires: rpm-perlprov >= 4.1-13 | |
22 | BuildArch: noarch | |
23 | BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) | |
24 | ||
5e47a3fa AG |
25 | %description |
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 | |
33 | representation. | |
34 | ||
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. | |
40 | ||
99704691 JR |
41 | %description -l pl.UTF-8 |
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ć nowy | |
47 | obiekt od początku, można użyć Email::Abstract do wykonania pewnych | |
48 | prostych operacji na obiekcie niezależnie od jego reprezentacji. | |
b732c73b | 49 | |
99704691 | 50 | Email::Abstract aktualnie obsługuje Mail::Internet, MIME::Entity, |
b732c73b | 51 | Mail::Message, Email::Simple oraz Email::MIME. Dla innych |
99704691 JR |
52 | reprezentacji zaleca się stworzyć własną klasę Email::Abstract::* |
53 | poprzez skopiowanie Email::Abstract::EmailSimple. Wszystkie moduły | |
54 | zainstalowane 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 | |
68 | rm -rf $RPM_BUILD_ROOT | |
69 | ||
70 | %{__make} install \ | |
71 | DESTDIR=$RPM_BUILD_ROOT | |
72 | ||
73 | %clean | |
74 | rm -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/* |