3 %bcond_without tests # do not perform "make test"
6 %define pnam Address-XS
7 Summary: Email::Address::XS - Parse and format RFC 5322 email addresses and groups
8 Summary(pl.UTF-8): Email::Address::XS - analiza i formatowanie adresów zgodnych z RFC 5322
9 Name: perl-Email-Address-XS
13 License: GPL v1+ or Artistic
14 Group: Development/Languages/Perl
15 Source0: http://www.cpan.org/modules/by-module/Email/%{pdir}-%{pnam}-%{version}.tar.gz
16 # Source0-md5: e756fc09d24e2aa4fafd97f30a2fd27b
17 URL: http://search.cpan.org/dist/Email-Address-XS/
18 BuildRequires: perl-ExtUtils-MakeMaker >= 6.30
19 BuildRequires: perl-devel >= 1:5.8.0
20 BuildRequires: rpm-perlprov >= 4.1-13
23 BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
26 This module implements RFC 5322 parser and formatter of email
27 addresses and groups. It parses an input string from email headers
28 which contain a list of email addresses or a groups of email addresses
29 (like From, To, Cc, Bcc, Reply-To, Sender, ...). Also it can generate
30 a string value for those headers from a list of email addresses
31 objects. Module is backward compatible with RFC 2822 and RFC 822.
33 %description -l pl.UTF-8
34 Ten moduł implementuje parser adresów email zgodnych z RFC 5322.
35 Parsowane są dane z nagłówków email zawierające adresy lub
36 ich grupy (takie jak From, To, Cc, Bcc, Reply-To, Sender, ...).
37 Dodatkowo, potrafi generować łańcuchy znakowe z listy podanych
38 adresów. Moduł jest kompatybilny wstecznie z RFC 2822 i RFC 822.
41 %setup -q -n %{pdir}-%{pnam}-%{version}
44 %{__perl} Makefile.PL \
49 %{?with_tests:%{__make} test}
52 rm -rf $RPM_BUILD_ROOT
55 DESTDIR=$RPM_BUILD_ROOT
58 rm -rf $RPM_BUILD_ROOT
61 %defattr(644,root,root,755)
63 %{perl_vendorarch}/Email/Address/XS.pm
64 %dir %{perl_vendorarch}/auto/Email/Address/XS
65 %attr(755,root,root) %{perl_vendorarch}/auto/Email/Address/XS/XS.so
66 %{_mandir}/man3/Email::Address::XS.3pm*