[521] | 1 | Summary: Check validity of Internet email addresses for Perl |
---|
| 2 | Name: perl-Email-Valid |
---|
[3221] | 3 | Version: 0.184 |
---|
[521] | 4 | Release: 1%{?_dist_release} |
---|
| 5 | License: Artistic and GPL |
---|
| 6 | Group: Development/Libraries |
---|
| 7 | Source0: http://search.cpan.org/CPAN/authors/id/M/MA/MAURICE/Email-Valid-%{version}.tar.gz |
---|
[3221] | 8 | # based http://cvs.sourceforge.jp/cgi-bin/viewcvs.cgi/*checkout*/perldocjp/docs/modules/Email-Valid-0.184/lib/Email/Valid.pod?rev=1.1 |
---|
| 9 | Source1: Email-Valid-0.184.pod.ja |
---|
[521] | 10 | URL: http://search.cpan.org/author/MAURICE/Email-Valid/ |
---|
| 11 | BuildRoot: %{_tmppath}/%{name}-%{version}-root |
---|
| 12 | BuildRequires: perl >= 5.004, perl-MailTools |
---|
[3221] | 13 | # for nslookup(1) in %%check |
---|
| 14 | BuildRequires(check): bind-utils |
---|
[521] | 15 | Requires: perl >= 5.004, perl-MailTools |
---|
| 16 | BuildArch: noarch |
---|
| 17 | |
---|
[3221] | 18 | Vendor: Project Vine |
---|
| 19 | Distribution: Vine Linux |
---|
| 20 | |
---|
[521] | 21 | %description |
---|
| 22 | This module determines whether an email address is well-formed, and |
---|
| 23 | optionally, whether a mail host exists for the domain. |
---|
| 24 | |
---|
| 25 | %prep |
---|
| 26 | %setup -q -n Email-Valid-%{version} |
---|
| 27 | |
---|
| 28 | %build |
---|
| 29 | CFLAGS="$RPM_OPT_FLAGS" perl Makefile.PL INSTALLDIRS=vendor |
---|
| 30 | make |
---|
| 31 | cp %{SOURCE1} Valid.ja.pm |
---|
| 32 | |
---|
| 33 | %clean |
---|
| 34 | rm -rf $RPM_BUILD_ROOT |
---|
| 35 | |
---|
| 36 | %install |
---|
| 37 | rm -rf $RPM_BUILD_ROOT |
---|
| 38 | mkdir -p $RPM_BUILD_ROOT%{_prefix} |
---|
| 39 | make DESTDIR=$RPM_BUILD_ROOT install |
---|
| 40 | mkdir -p %{buildroot}%{_mandir}/ja/man3 |
---|
| 41 | pod2man --section=3 Valid.ja.pm %{buildroot}%{_mandir}/ja/man3/Email::Valid.3pm |
---|
| 42 | |
---|
| 43 | find $RPM_BUILD_ROOT%{_prefix} -type f -print | |
---|
| 44 | sed "s@^$RPM_BUILD_ROOT@@g" | |
---|
| 45 | grep -v ^%{_mandir} | |
---|
| 46 | grep -v perllocal.pod | |
---|
| 47 | grep -v "\.packlist" > %{name}.files |
---|
| 48 | if [ "$(cat %{name}.files)X" = "X" ] ; then |
---|
| 49 | echo "ERROR: EMPTY FILE LIST" |
---|
| 50 | exit -1 |
---|
| 51 | fi |
---|
| 52 | |
---|
| 53 | %check |
---|
| 54 | make test |
---|
| 55 | |
---|
| 56 | %files -f %{name}.files |
---|
| 57 | %defattr(-,root,root) |
---|
| 58 | %doc Changes README |
---|
| 59 | %{_mandir}/man3/* |
---|
| 60 | %{_mandir}/ja/man3/* |
---|
| 61 | %dir %{perl_vendorlib}/Email |
---|
| 62 | |
---|
| 63 | %changelog |
---|
[3221] | 64 | * Wed Mar 30 2011 IWAI, Masaharu <iwai@alib.jp> 0.184-1 |
---|
| 65 | - new upstream release |
---|
| 66 | - update Japanese pod file (Source1) |
---|
| 67 | - add BuildRequires(check): bind-utils |
---|
| 68 | - add Vendor and Distribution tags |
---|
| 69 | |
---|
[521] | 70 | * Sat Feb 14 2009 Ryoichi INAGAKI <ryo1@bc.wakwak.com> 0.180-1 |
---|
| 71 | - new upstream release |
---|
| 72 | - built with perl-5.10.0 |
---|
| 73 | - installed files to vendor_perl dir |
---|
| 74 | - applied new versioning policy |
---|
| 75 | - changed Group to Development/Libraries |
---|
| 76 | |
---|
| 77 | * Sat Dec 4 2004 IWAI, Masaharu <iwai@alib.jp> 0.15-0vl2 |
---|
| 78 | - build on perl-5.8.6-0vl1 |
---|
| 79 | - add manpage translated into Japanese ( Source1 ) from perldoc.jp |
---|
| 80 | |
---|
| 81 | * Mon Aug 16 2004 IWAI, Masaharu <iwai@alib.jp> 0.15-0vl1 |
---|
| 82 | - new upstream release |
---|
| 83 | |
---|
| 84 | * Thu Apr 24 2003 IWAI Masaharu <iwai@alib.jp> 0.14-0vl2 |
---|
| 85 | - build with perl-5.8.0 |
---|
| 86 | - add test in %%build section |
---|
| 87 | - add perl-MailTools in BuildRequires |
---|
| 88 | |
---|
| 89 | * Sun Aug 25 2002 IWAI Masaharu <iwai@alib.jp> 0.14-0vl1 |
---|
| 90 | - first build for Vine Linux |
---|