[521] | 1 | Summary: Email::Valid which allows dot before at mark for Perl |
---|
| 2 | Name: perl-Email-Valid-Loose |
---|
| 3 | Version: 0.05 |
---|
| 4 | Release: 2%{?_dist_release} |
---|
| 5 | License: Artistic and GPL |
---|
| 6 | Group: Development/Libraries |
---|
| 7 | Source0: http://search.cpan.org/CPAN/authors/id/M/MI/MIYAGAWA/Email-Valid-Loose-%{version}.tar.gz |
---|
| 8 | # based http://cvs.sourceforge.jp/cgi-bin/viewcvs.cgi/*checkout*/perldocjp/docs/modules/Email-Valid-Loose-0.04/Email/Valid/Loose.pod?rev=1.2 |
---|
| 9 | Source1: Email-Valid-Loose-0.04.pod.ja |
---|
| 10 | URL: http://search.cpan.org/author/MIYAGAWA/Email-Valid-Loose/ |
---|
| 11 | BuildRoot: %{_tmppath}/%{name}-%{version}-root |
---|
| 12 | BuildRequires: perl >= 5.004, perl-Email-Valid |
---|
| 13 | Requires: perl >= 5.004, perl-Email-Valid |
---|
| 14 | BuildArch: noarch |
---|
| 15 | |
---|
| 16 | %description |
---|
| 17 | Email::Valid which allows dot before at mark for Perl. |
---|
| 18 | Email::Valid::Loose is a subclass of Email::Valid, which allows . (dot) |
---|
| 19 | before @ (at-mark). It is invalid in RFC822, but is commonly used in |
---|
| 20 | some of mobile phone addresses in Japan (like docomo.ne.jp or |
---|
| 21 | jp-t.ne.jp). |
---|
| 22 | |
---|
| 23 | %prep |
---|
| 24 | %setup -q -n Email-Valid-Loose-%{version} |
---|
| 25 | |
---|
| 26 | %build |
---|
| 27 | CFLAGS="$RPM_OPT_FLAGS" perl Makefile.PL INSTALLDIRS=vendor |
---|
| 28 | make |
---|
| 29 | cp %{SOURCE1} Loose.ja.pm |
---|
| 30 | |
---|
| 31 | %clean |
---|
| 32 | rm -rf $RPM_BUILD_ROOT |
---|
| 33 | |
---|
| 34 | %install |
---|
| 35 | rm -rf $RPM_BUILD_ROOT |
---|
| 36 | mkdir -p $RPM_BUILD_ROOT%{_prefix} |
---|
| 37 | make DESTDIR=$RPM_BUILD_ROOT install |
---|
| 38 | |
---|
| 39 | find $RPM_BUILD_ROOT%{_prefix} -type f -print | |
---|
| 40 | sed "s@^$RPM_BUILD_ROOT@@g" | |
---|
| 41 | grep -v ^%{_mandir} | |
---|
| 42 | grep -v perllocal.pod | |
---|
| 43 | grep -v "\.packlist" > %{name}.files |
---|
| 44 | if [ "$(cat %{name}.files)X" = "X" ] ; then |
---|
| 45 | echo "ERROR: EMPTY FILE LIST" |
---|
| 46 | exit -1 |
---|
| 47 | fi |
---|
| 48 | |
---|
| 49 | mkdir -p %{buildroot}%{_mandir}/ja/man3 |
---|
| 50 | pod2man --section=3 Loose.ja.pm %{buildroot}%{_mandir}/ja/man3/Email::Valid::Loose.3pm |
---|
| 51 | |
---|
| 52 | %check |
---|
| 53 | make test |
---|
| 54 | |
---|
| 55 | %files -f %{name}.files |
---|
| 56 | %defattr(-,root,root) |
---|
| 57 | %doc README Changes |
---|
| 58 | %{_mandir}/man3/* |
---|
| 59 | %{_mandir}/ja/man3/* |
---|
| 60 | %dir %{perl_vendorlib}/Email/Valid |
---|
| 61 | |
---|
| 62 | %changelog |
---|
| 63 | * Sun Feb 15 2009 Ryoichi INAGAKI <ryo1@bc.wakwak.com> 0.05-2 |
---|
| 64 | - fixed Group tag |
---|
| 65 | |
---|
| 66 | * Sat Feb 14 2009 Ryoichi INAGAKI <ryo1@bc.wakwak.com> 0.05-1 |
---|
| 67 | - new upstream release |
---|
| 68 | - built with perl-5.10.0 |
---|
| 69 | - installed files to vendor_perl dir |
---|
| 70 | - applied new versioning policy |
---|
| 71 | - changed Group to Development/Libraries |
---|
| 72 | |
---|
| 73 | * Sat Dec 4 2004 IWAI, Masaharu <iwai@alib.jp> 0.04-0vl2 |
---|
| 74 | - build on perl-5.8.6-0vl1 |
---|
| 75 | - add manpage translated into Japanese ( Source1 ) from perldoc.jp |
---|
| 76 | |
---|
| 77 | * Mon Aug 16 2004 IWAI, Masaharu <iwai@alib.jp> 0.04-0vl1 |
---|
| 78 | - new upstream release |
---|
| 79 | |
---|
| 80 | * Thu Apr 24 2003 IWAI Masaharu <iwai@alib.jp> 0.02-0vl2 |
---|
| 81 | - build with perl-5.8.0 |
---|
| 82 | - add %%doc README Changes in %%files section |
---|
| 83 | - add test in %%build section |
---|
| 84 | - add perl-Email-Valid in BuildRequires |
---|
| 85 | |
---|
| 86 | * Sun Aug 25 2002 IWAI Masaharu <iwai@alib.jp> 0.02-0vl1 |
---|
| 87 | - first build for Vine Linux |
---|