3 %bcond_without tests # do not perform "make test"
5 %include /usr/lib/rpm/macros.perl
7 %define pnam RFC822-Address
8 Summary: Mail::RFC822::Address - validating email addresses according to RFC822
9 Summary(pl): Mail::RFC822::Address - sprawdzanie poprawno¶ci adresów e-mail wg RFC822
10 Name: perl-Mail-RFC822-Address
14 Group: Development/Languages/Perl
15 Source0: http://www.cpan.org/modules/by-module/%{pdir}/%{pdir}-%{pnam}-%{version}.tar.gz
16 # Source0-md5: 0bd88b2ffedd95a4a920053fd6d0b709
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.
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