]>
Commit | Line | Data |
---|---|---|
eb77cc59 | 1 | # |
2 | # Conditional build: | |
3 | %bcond_without tests # do not perform "make test" | |
798efbd7 | 4 | |
674c3072 | 5 | %define pdir Email |
6 | %define pnam Valid | |
952353f5 | 7 | Summary: Email::Valid - module determines whether an email address is valid |
f3dad31a | 8 | Summary(pl.UTF-8): Email::Valid - moduł sprawdzający poprawność adresu e-mail |
74c3f6c2 | 9 | Name: perl-Email-Valid |
08608d4c | 10 | Version: 0.187 |
b7a189dd | 11 | Release: 1 |
eb77cc59 | 12 | # same as perl |
8fdf4a52 | 13 | License: GPL v1+ or Artistic |
9584a0ec | 14 | Group: Development/Languages/Perl |
a89236a0 | 15 | Source0: http://www.cpan.org/modules/by-module/%{pdir}/%{pdir}-%{pnam}-%{version}.tar.gz |
08608d4c | 16 | # Source0-md5: 190b9293fde117c7f8ce30058c79745f |
798efbd7 | 17 | URL: http://search.cpan.org/dist/Email-Valid/ |
838d27b4 | 18 | BuildRequires: perl-devel >= 1:5.8.0 |
dab52731 | 19 | %if %{with tests} |
3d73a4f8 | 20 | BuildRequires: perl-MailTools |
af25166a | 21 | %endif |
b80c7136 | 22 | BuildRequires: rpm-perlprov >= 4.1-13 |
9584a0ec | 23 | BuildArch: noarch |
24 | BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) | |
25 | ||
26 | %description | |
be6cfd41 | 27 | This module determines whether an email address is well-formed, and |
9584a0ec | 28 | optionally, whether a mail host exists for the domain. |
29 | ||
0fdb4af4 JR |
30 | %description -l pl.UTF-8 |
31 | Ten moduł sprawdza czy adres e-mail jest poprawnie zapisany i, | |
32 | opcjonalnie, czy istnieje host przyjmujący pocztę. | |
be6cfd41 | 33 | |
9584a0ec | 34 | %prep |
35 | %setup -q -n %{pdir}-%{pnam}-%{version} | |
36 | ||
37 | %build | |
b80c7136 | 38 | %{__perl} Makefile.PL \ |
c50a4d6b | 39 | INSTALLDIRS=vendor |
9584a0ec | 40 | %{__make} |
41 | ||
eb77cc59 | 42 | %{?with_tests:%{__make} test} |
43 | ||
9584a0ec | 44 | %install |
45 | rm -rf $RPM_BUILD_ROOT | |
46 | ||
eb77cc59 | 47 | %{__make} pure_install \ |
af25166a | 48 | DESTDIR=$RPM_BUILD_ROOT |
9584a0ec | 49 | |
50 | %clean | |
51 | rm -rf $RPM_BUILD_ROOT | |
52 | ||
53 | %files | |
54 | %defattr(644,root,root,755) | |
eb77cc59 | 55 | %doc Changes README |
56 | %{perl_vendorlib}/Email/*.pm | |
9584a0ec | 57 | %{_mandir}/man3/* |