perl-Email-Valid-Loose-vl.spec 2.6 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687
  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. %description
  16. Email::Valid which allows dot before at mark for Perl.
  17. Email::Valid::Loose is a subclass of Email::Valid, which allows . (dot)
  18. before @ (at-mark). It is invalid in RFC822, but is commonly used in
  19. some of mobile phone addresses in Japan (like docomo.ne.jp or
  20. jp-t.ne.jp).
  21. %prep
  22. %setup -q -n Email-Valid-Loose-%{version}
  23. %build
  24. CFLAGS="$RPM_OPT_FLAGS" perl Makefile.PL INSTALLDIRS=vendor
  25. make
  26. cp %{SOURCE1} Loose.ja.pm
  27. %clean
  28. rm -rf $RPM_BUILD_ROOT
  29. %install
  30. rm -rf $RPM_BUILD_ROOT
  31. mkdir -p $RPM_BUILD_ROOT%{_prefix}
  32. make DESTDIR=$RPM_BUILD_ROOT install
  33. find $RPM_BUILD_ROOT%{_prefix} -type f -print |
  34. sed "s@^$RPM_BUILD_ROOT@@g" |
  35. grep -v ^%{_mandir} |
  36. grep -v perllocal.pod |
  37. grep -v "\.packlist" > %{name}.files
  38. if [ "$(cat %{name}.files)X" = "X" ] ; then
  39. echo "ERROR: EMPTY FILE LIST"
  40. exit -1
  41. fi
  42. mkdir -p %{buildroot}%{_mandir}/ja/man3
  43. pod2man --section=3 Loose.ja.pm %{buildroot}%{_mandir}/ja/man3/Email::Valid::Loose.3pm
  44. %check
  45. make test
  46. %files -f %{name}.files
  47. %defattr(-,root,root)
  48. %doc README Changes
  49. %{_mandir}/man3/*
  50. %{_mandir}/ja/man3/*
  51. %dir %{perl_vendorlib}/Email/Valid
  52. %changelog
  53. * Sun Feb 15 2009 Ryoichi INAGAKI <ryo1@bc.wakwak.com> 0.05-2
  54. - fixed Group tag
  55. * Sat Feb 14 2009 Ryoichi INAGAKI <ryo1@bc.wakwak.com> 0.05-1
  56. - new upstream release
  57. - built with perl-5.10.0
  58. - installed files to vendor_perl dir
  59. - applied new versioning policy
  60. - changed Group to Development/Libraries
  61. * Sat Dec 4 2004 IWAI, Masaharu <iwai@alib.jp> 0.04-0vl2
  62. - build on perl-5.8.6-0vl1
  63. - add manpage translated into Japanese ( Source1 ) from perldoc.jp
  64. * Mon Aug 16 2004 IWAI, Masaharu <iwai@alib.jp> 0.04-0vl1
  65. - new upstream release
  66. * Thu Apr 24 2003 IWAI Masaharu <iwai@alib.jp> 0.02-0vl2
  67. - build with perl-5.8.0
  68. - add %%doc README Changes in %%files section
  69. - add test in %%build section
  70. - add perl-Email-Valid in BuildRequires
  71. * Sun Aug 25 2002 IWAI Masaharu <iwai@alib.jp> 0.02-0vl1
  72. - first build for Vine Linux