-# ToDo:
-# - pl description
#
# Conditional build:
-%bcond_without tests # do not perform "make test"
+%bcond_without tests # do not perform "make test"
#
%include /usr/lib/rpm/macros.perl
-%define pdir Email
-%define pnam Address
+%define pdir Email
+%define pnam Address
Summary: Email::Address - RFC 2822 Address Parsing and Creation
-Summary(pl): Email::Address - Parsowanie i tworzenie adresów zgodnych z RFC 2822
+Summary(pl.UTF-8): Email::Address - Parsowanie i tworzenie adresów zgodnych z RFC 2822
Name: perl-Email-Address
-Version: 1.2
+Version: 1.892
Release: 1
# same as perl
License: GPL v1+ or Artistic
Group: Development/Languages/Perl
-Source0: http://www.cpan.org/modules/by-module/%{pdir}/%{pdir}-%{pnam}-%{version}.tar.gz
-# Source0-md5: b356b65411d4f52e02b8b0c9c0942e58
+Source0: http://www.cpan.org/modules/by-module/Email/RJBS/%{pdir}-%{pnam}-%{version}.tar.gz
+# Source0-md5: 047e982b0ab7434406a32759164bfe1e
+URL: http://search.cpan.org/dist/Email-Address/
BuildRequires: perl-devel >= 1:5.8.0
BuildRequires: rpm-perlprov >= 4.1-13
BuildArch: noarch
%description
This class implements a complete RFC 2822 parser that locates email
-addresses in strings and returns a list of C<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
+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
+%description -l pl.UTF-8
+Ta klasa implementuje zgodny z RFC 2822 parser który lokalizuje 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}
%files
%defattr(644,root,root,755)
%doc Changes README
-%{perl_vendorlib}/Email/*.pm
-%{_mandir}/man3/*
+%{perl_vendorlib}/Email/Address.pm
+%{_mandir}/man3/Email::Address.3pm*