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