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