]> git.pld-linux.org Git - packages/perl-Email-Valid.git/blame - perl-Email-Valid.spec
- drop obsolete and outdated manual inclusion of rpm macros
[packages/perl-Email-Valid.git] / perl-Email-Valid.spec
CommitLineData
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 7Summary: Email::Valid - module determines whether an email address is valid
f3dad31a 8Summary(pl.UTF-8): Email::Valid - moduł sprawdzający poprawność adresu e-mail
74c3f6c2 9Name: perl-Email-Valid
08608d4c 10Version: 0.187
b7a189dd 11Release: 1
eb77cc59 12# same as perl
8fdf4a52 13License: GPL v1+ or Artistic
9584a0ec 14Group: Development/Languages/Perl
a89236a0 15Source0: http://www.cpan.org/modules/by-module/%{pdir}/%{pdir}-%{pnam}-%{version}.tar.gz
08608d4c 16# Source0-md5: 190b9293fde117c7f8ce30058c79745f
798efbd7 17URL: http://search.cpan.org/dist/Email-Valid/
838d27b4 18BuildRequires: perl-devel >= 1:5.8.0
dab52731 19%if %{with tests}
3d73a4f8 20BuildRequires: perl-MailTools
af25166a 21%endif
b80c7136 22BuildRequires: rpm-perlprov >= 4.1-13
9584a0ec 23BuildArch: noarch
24BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
25
26%description
be6cfd41 27This module determines whether an email address is well-formed, and
9584a0ec 28optionally, whether a mail host exists for the domain.
29
0fdb4af4
JR
30%description -l pl.UTF-8
31Ten moduł sprawdza czy adres e-mail jest poprawnie zapisany i,
32opcjonalnie, 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
45rm -rf $RPM_BUILD_ROOT
46
eb77cc59 47%{__make} pure_install \
af25166a 48 DESTDIR=$RPM_BUILD_ROOT
9584a0ec 49
50%clean
51rm -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/*
This page took 0.111796 seconds and 5 git commands to generate.