# # Conditional build: %bcond_without tests # do not perform "make test" # %define pdir Email %define pnam Address Summary: Email::Address - RFC 2822 Address Parsing and Creation Summary(pl.UTF-8): Email::Address - analiza i tworzenie adresów zgodnych z RFC 2822 Name: perl-Email-Address Version: 1.912 Release: 1 # same as perl License: GPL v1+ or Artistic Group: Development/Languages/Perl Source0: http://www.cpan.org/modules/by-module/Email/%{pdir}-%{pnam}-%{version}.tar.gz # Source0-md5: 24a75497f11e8a8225cb6d99a5e6e647 URL: http://search.cpan.org/dist/Email-Address/ BuildRequires: perl-ExtUtils-MakeMaker >= 6.30 BuildRequires: perl-devel >= 1:5.8.0 BuildRequires: rpm-perlprov >= 4.1-13 %if %{with tests} BuildRequires: perl-Capture-Tiny BuildRequires: perl-Encode BuildRequires: perl-Test-Simple >= 0.96 %endif BuildArch: noarch BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) %description This class implements a complete RFC 2822 parser that locates email addresses in strings and returns a list of Email::Address objects found. Alternatley you may construct objects manually. The goal of this software is to be correct, very very fast, and API compatible with the MailTools version. Did I mention fast? %description -l pl.UTF-8 Ta klasa implementuje zgodny z RFC 2822 parser odnajdujący adresy email w ciągach znaków i zwraca listę obiektów Email::Address. Możliwe jest także tworzenie takich obiektów ręczenie. Oprogramowanie to ma być poprawne, bardzo, bardzo szybkie, i z API zgodnym z MailTools. %prep %setup -q -n %{pdir}-%{pnam}-%{version} %build %{__perl} Makefile.PL \ INSTALLDIRS=vendor %{__make} %{?with_tests:%{__make} test} %install rm -rf $RPM_BUILD_ROOT %{__make} install \ DESTDIR=$RPM_BUILD_ROOT %clean rm -rf $RPM_BUILD_ROOT %files %defattr(644,root,root,755) %doc Changes README %{perl_vendorlib}/Email/Address.pm %{_mandir}/man3/Email::Address.3pm*