3 %bcond_without tests # do not perform "make test"
6 %define pnam RFC822-Address
7 Summary: Mail::RFC822::Address - validating email addresses according to RFC822
8 Summary(pl.UTF-8): Mail::RFC822::Address - sprawdzanie poprawności adresów e-mail wg RFC822
9 Name: perl-Mail-RFC822-Address
13 Group: Development/Languages/Perl
14 Source0: http://www.cpan.org/modules/by-module/%{pdir}/%{pdir}-%{pnam}-%{version}.tar.gz
15 # Source0-md5: 0bd88b2ffedd95a4a920053fd6d0b709
16 URL: http://search.cpan.org/dist/Mail-RFC822-Address/
17 BuildRequires: perl-devel >= 1:5.8.0
18 BuildRequires: rpm-perlprov >= 4.1-13
20 BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
23 Mail::RFC822::Address validates email addresses against the grammar
24 described in RFC 822 using regular expressions. How to validate a user
25 supplied email address is a FAQ (see perlfaq9): the only sure way to
26 see if a supplied email address is genuine is to send an email to it
27 and see if the user recieves it. The one useful check that can be
28 performed on an address is to check that the email address is
29 syntactically valid. That is what this module does.
31 This module is functionally equivalent to RFC::RFC822::Address, but
32 uses regular expressions rather than the Parse::RecDescent parser.
33 This means that startup time is greatly reduced making it suitable for
34 use in transient scripts such as CGI scripts.
36 %description -l pl.UTF-8
37 Mail::RFC822::Address sprawdza poprawność adresów e-mail wg gramatyki
38 opisanej w RFC 822 przy użyciu wyrażeń regularnych. Sposób sprawdzenia
39 poprawności adresu e-mail podanego przez użytkownika jest w FAQ
40 (perlfaq9): jedynym sposobem sprawdzenia, czy podany adres jest
41 prawdziwy jest wysłanie na niego wiadomości i sprawdzenie, czy
42 użytkownik ją otrzyma. Jedyny użyteczny test który można wykonać na
43 adresie to sprawdzenie, czy adres jest poprawny syntaktycznie - i to
46 Ten moduł jest funkcjonalnie równoważny RFC::RFC822::Address, ale
47 używa wyrażeń regularnych zamiast analizatora Parse::RecDescent.
48 Oznacza to znaczne zmniejszenie czasu ładowania, co czyni moduł
49 przydatnym do używania w skryptach np. CGI.
52 %setup -q -n %{pdir}-%{pnam}-%{version}
55 %{__perl} Makefile.PL \
60 %{?with_tests:%{__make} test}
63 rm -rf $RPM_BUILD_ROOT
66 DESTDIR=$RPM_BUILD_ROOT
69 rm -rf $RPM_BUILD_ROOT
72 %defattr(644,root,root,755)
74 %{perl_vendorlib}/Mail/RFC822