]>
Commit | Line | Data |
---|---|---|
3e0c1727 AG |
1 | # |
2 | # Conditional build: | |
ffef6a61 | 3 | %bcond_without tests # do not perform "make test" |
3e0c1727 AG |
4 | # |
5 | %include /usr/lib/rpm/macros.perl | |
83bec5af | 6 | %define pdir Email |
7 | %define pnam Address | |
3e0c1727 | 8 | Summary: Email::Address - RFC 2822 Address Parsing and Creation |
327068ce | 9 | Summary(pl.UTF-8): Email::Address - Parsowanie i tworzenie adresów zgodnych z RFC 2822 |
3e0c1727 | 10 | Name: perl-Email-Address |
03d6329e | 11 | Version: 1.892 |
1a8d4141 | 12 | Release: 1 |
3e0c1727 AG |
13 | # same as perl |
14 | License: GPL v1+ or Artistic | |
15 | Group: Development/Languages/Perl | |
03d6329e JB |
16 | Source0: http://www.cpan.org/modules/by-module/Email/RJBS/%{pdir}-%{pnam}-%{version}.tar.gz |
17 | # Source0-md5: 047e982b0ab7434406a32759164bfe1e | |
fc6af162 | 18 | URL: http://search.cpan.org/dist/Email-Address/ |
3e0c1727 AG |
19 | BuildRequires: perl-devel >= 1:5.8.0 |
20 | BuildRequires: rpm-perlprov >= 4.1-13 | |
21 | BuildArch: noarch | |
22 | BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) | |
23 | ||
24 | %description | |
25 | This class implements a complete RFC 2822 parser that locates email | |
9c2b47b5 AG |
26 | addresses in strings and returns a list of Email::Address objects |
27 | found. Alternatley you may construct objects manually. The goal of | |
28 | this software is to be correct, very very fast, and API compatible | |
3e0c1727 AG |
29 | with the MailTools version. Did I mention fast? |
30 | ||
3dcde64b JR |
31 | %description -l pl.UTF-8 |
32 | Ta klasa implementuje zgodny z RFC 2822 parser który lokalizuje adresy | |
33 | email w ciągach znaków i zwraca listę obiektów Email::Address. Możliwe | |
34 | jest także tworzenie takich obiektów ręczenie. Oprogramowanie to ma | |
35 | być poprawne, bardzo bardzo szybkie, i z API zgodnym z MailTools. | |
3e0c1727 AG |
36 | |
37 | %prep | |
38 | %setup -q -n %{pdir}-%{pnam}-%{version} | |
39 | ||
40 | %build | |
41 | %{__perl} Makefile.PL \ | |
42 | INSTALLDIRS=vendor | |
9c2b47b5 | 43 | |
3e0c1727 AG |
44 | %{__make} |
45 | ||
46 | %{?with_tests:%{__make} test} | |
47 | ||
48 | %install | |
49 | rm -rf $RPM_BUILD_ROOT | |
50 | ||
51 | %{__make} install \ | |
52 | DESTDIR=$RPM_BUILD_ROOT | |
53 | ||
54 | %clean | |
55 | rm -rf $RPM_BUILD_ROOT | |
56 | ||
57 | %files | |
58 | %defattr(644,root,root,755) | |
59 | %doc Changes README | |
03d6329e JB |
60 | %{perl_vendorlib}/Email/Address.pm |
61 | %{_mandir}/man3/Email::Address.3pm* |