[521] | 1 | Summary: Email::Valid which allows dot before at mark for Perl |
---|
| 2 | Name: perl-Email-Valid-Loose |
---|
| 3 | Version: 0.05 |
---|
[8725] | 4 | Release: 4%{?_dist_release} |
---|
[521] | 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 |
---|
[8725] | 12 | BuildRequires: perl >= 5.4 |
---|
| 13 | BuildRequires: perl(Test::More) >= 0.32 |
---|
| 14 | BuildRequires: perl(Email::Valid) >= 0.17 |
---|
| 15 | Requires: perl >= 5.4 |
---|
| 16 | Requires: perl(Email::Valid) |
---|
[521] | 17 | BuildArch: noarch |
---|
| 18 | |
---|
[3222] | 19 | Vendor: Project Vine |
---|
| 20 | Distribution: Vine Linux |
---|
| 21 | |
---|
[521] | 22 | %description |
---|
| 23 | Email::Valid which allows dot before at mark for Perl. |
---|
| 24 | Email::Valid::Loose is a subclass of Email::Valid, which allows . (dot) |
---|
| 25 | before @ (at-mark). It is invalid in RFC822, but is commonly used in |
---|
| 26 | some of mobile phone addresses in Japan (like docomo.ne.jp or |
---|
| 27 | jp-t.ne.jp). |
---|
| 28 | |
---|
| 29 | %prep |
---|
| 30 | %setup -q -n Email-Valid-Loose-%{version} |
---|
| 31 | |
---|
| 32 | %build |
---|
| 33 | CFLAGS="$RPM_OPT_FLAGS" perl Makefile.PL INSTALLDIRS=vendor |
---|
| 34 | make |
---|
| 35 | cp %{SOURCE1} Loose.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 | |
---|
| 45 | find $RPM_BUILD_ROOT%{_prefix} -type f -print | |
---|
| 46 | sed "s@^$RPM_BUILD_ROOT@@g" | |
---|
| 47 | grep -v ^%{_mandir} | |
---|
| 48 | grep -v perllocal.pod | |
---|
| 49 | grep -v "\.packlist" > %{name}.files |
---|
| 50 | if [ "$(cat %{name}.files)X" = "X" ] ; then |
---|
| 51 | echo "ERROR: EMPTY FILE LIST" |
---|
| 52 | exit -1 |
---|
| 53 | fi |
---|
| 54 | |
---|
| 55 | mkdir -p %{buildroot}%{_mandir}/ja/man3 |
---|
| 56 | pod2man --section=3 Loose.ja.pm %{buildroot}%{_mandir}/ja/man3/Email::Valid::Loose.3pm |
---|
| 57 | |
---|
| 58 | %check |
---|
| 59 | make test |
---|
| 60 | |
---|
| 61 | %files -f %{name}.files |
---|
| 62 | %defattr(-,root,root) |
---|
| 63 | %doc README Changes |
---|
| 64 | %{_mandir}/man3/* |
---|
| 65 | %{_mandir}/ja/man3/* |
---|
| 66 | %dir %{perl_vendorlib}/Email/Valid |
---|
| 67 | |
---|
| 68 | %changelog |
---|
[8725] | 69 | * Tue Jul 1 2014 IWAI, Masaharu <iwaim.sub@gmail.com> 0.05-4 |
---|
| 70 | - build with Perl 5.16 |
---|
| 71 | - update BuildRequires and Requires |
---|
| 72 | |
---|
[3222] | 73 | * Wed Mar 30 2011 IWAI, Masaharu <iwai@alib.jp> 0.05-3vl6 |
---|
| 74 | - build with perl 5.12.3 |
---|
| 75 | - add Vendor and Distribution tags |
---|
| 76 | |
---|
[521] | 77 | * Sun Feb 15 2009 Ryoichi INAGAKI <ryo1@bc.wakwak.com> 0.05-2 |
---|
| 78 | - fixed Group tag |
---|
| 79 | |
---|
| 80 | * Sat Feb 14 2009 Ryoichi INAGAKI <ryo1@bc.wakwak.com> 0.05-1 |
---|
| 81 | - new upstream release |
---|
| 82 | - built with perl-5.10.0 |
---|
| 83 | - installed files to vendor_perl dir |
---|
| 84 | - applied new versioning policy |
---|
| 85 | - changed Group to Development/Libraries |
---|
| 86 | |
---|
| 87 | * Sat Dec 4 2004 IWAI, Masaharu <iwai@alib.jp> 0.04-0vl2 |
---|
| 88 | - build on perl-5.8.6-0vl1 |
---|
| 89 | - add manpage translated into Japanese ( Source1 ) from perldoc.jp |
---|
| 90 | |
---|
| 91 | * Mon Aug 16 2004 IWAI, Masaharu <iwai@alib.jp> 0.04-0vl1 |
---|
| 92 | - new upstream release |
---|
| 93 | |
---|
| 94 | * Thu Apr 24 2003 IWAI Masaharu <iwai@alib.jp> 0.02-0vl2 |
---|
| 95 | - build with perl-5.8.0 |
---|
| 96 | - add %%doc README Changes in %%files section |
---|
| 97 | - add test in %%build section |
---|
| 98 | - add perl-Email-Valid in BuildRequires |
---|
| 99 | |
---|
| 100 | * Sun Aug 25 2002 IWAI Masaharu <iwai@alib.jp> 0.02-0vl1 |
---|
| 101 | - first build for Vine Linux |
---|