From d4c252b33de6303760d1afbe575ec6b6fea3ba20 Mon Sep 17 00:00:00 2001 From: Jakub Bogusz Date: Thu, 8 Jan 2004 15:11:34 +0000 Subject: [PATCH] - new Changed files: perl-Mail-RFC822-Address.spec -> 1.1 --- perl-Mail-RFC822-Address.spec | 75 +++++++++++++++++++++++++++++++++++ 1 file changed, 75 insertions(+) create mode 100644 perl-Mail-RFC822-Address.spec diff --git a/perl-Mail-RFC822-Address.spec b/perl-Mail-RFC822-Address.spec new file mode 100644 index 0000000..9847be6 --- /dev/null +++ b/perl-Mail-RFC822-Address.spec @@ -0,0 +1,75 @@ +# +# Conditional build: +%bcond_without tests # do not perform "make test" +# +%include /usr/lib/rpm/macros.perl +%define pdir Mail +%define pnam RFC822-Address +Summary: Mail::RFC822::Address - validating email addresses according to RFC822 +Summary(pl): Mail::RFC822::Address - sprawdzanie poprawno¶ci adresów e-mail wg RFC822 +Name: perl-Mail-RFC822-Address +Version: 0.3 +Release: 1 +License: BSD-like +Group: Development/Languages/Perl +Source0: http://www.cpan.org/modules/by-module/%{pdir}/%{pdir}-%{pnam}-%{version}.tar.gz +# Source0-md5: 0bd88b2ffedd95a4a920053fd6d0b709 +BuildRequires: perl-devel >= 1:5.8.0 +BuildRequires: rpm-perlprov >= 4.1-13 +BuildArch: noarch +BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) + +%description +Mail::RFC822::Address validates email addresses against the grammar +described in RFC 822 using regular expressions. How to validate a user +supplied email address is a FAQ (see perlfaq9): the only sure way to +see if a supplied email address is genuine is to send an email to it +and see if the user recieves it. The one useful check that can be +performed on an address is to check that the email address is +syntactically valid. That is what this module does. + +This module is functionally equivalent to RFC::RFC822::Address, but +uses regular expressions rather than the Parse::RecDescent parser. +This means that startup time is greatly reduced making it suitable for +use in transient scripts such as CGI scripts. + +%description -l pl +Mail::RFC822::Address sprawdza poprawno¶æ adresów e-mail wg gramatyki +opisanej w RFC 822 przy u¿yciu wyra¿eñ regularnych. Sposób sprawdzenia +poprawno¶ci adresu e-mail podanego przez u¿ytkownika jest w FAQ +(perlfaq9): jedynym sposobem sprawdzenia, czy podany adres jest +prawdziwy jest wys³anie na niego wiadomo¶ci i sprawdzenie, czy +u¿ytkownik j± otrzyma. Jedyny u¿yteczny test który mo¿na wykonaæ na +adresie to sprawdzenie, czy adres jest poprawny syntaktycznie - i to +w³a¶nie robi modu³. + +Ten modu³ jest funkcjonalnie równowa¿ny RFC::RFC822::Address, ale +u¿ywa wyra¿eñ regularnych zamiast analizatora Parse::RecDescent. +Oznacza to znaczne zmniejszenie czasu ³adowania, co czyni modu³ +przydatnym do u¿ywania w skryptach np. CGI. + +%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 +%{perl_vendorlib}/Mail/RFC822 +%{_mandir}/man3/* -- 2.44.0