%include /usr/lib/rpm/macros.perl %define pdir Email %define pnam Valid Summary: This module determines whether an email address is valid Summary(pl): Moduł sprawdzający poprawność adresu e-mail Name: perl-%{pdir}-%{pnam} Version: 0.14 Release: 1 License: GPL Group: Development/Languages/Perl Source0: http://www.cpan.org/modules/by-module/%{pdir}/%{pdir}-%{pnam}-%{version}.tar.gz BuildRequires: perl >= 5.6 BuildRequires: perl-MailTools BuildRequires: rpm-perlprov >= 3.0.3-16 BuildArch: noarch BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) %description This module determines whether an email address is well-formed, and optionally, whether a mail host exists for the domain. %description -l pl Ten moduł sprawdza czy adres e-mail jest poprawnie zapisany i, opcjonalnie, czy istnieje host przyjmujący pocztę. %prep %setup -q -n %{pdir}-%{pnam}-%{version} %build perl Makefile.PL %{__make} %install rm -rf $RPM_BUILD_ROOT %{__make} install DESTDIR=$RPM_BUILD_ROOT find $RPM_BUILD_ROOT -name .packlist | xargs -r rm -f %clean rm -rf $RPM_BUILD_ROOT %files %defattr(644,root,root,755) %doc README Changes %{perl_sitelib}/Email %{_mandir}/man3/*