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

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101
  1. Summary: Email::Valid which allows dot before at mark for Perl
  2. Name: perl-Email-Valid-Loose
  3. Version: 0.05
  4. Release: 4%{?_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.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)
  17. BuildArch: noarch
  18. Vendor: Project Vine
  19. Distribution: Vine Linux
  20. %description
  21. Email::Valid which allows dot before at mark for Perl.
  22. Email::Valid::Loose is a subclass of Email::Valid, which allows . (dot)
  23. before @ (at-mark). It is invalid in RFC822, but is commonly used in
  24. some of mobile phone addresses in Japan (like docomo.ne.jp or
  25. jp-t.ne.jp).
  26. %prep
  27. %setup -q -n Email-Valid-Loose-%{version}
  28. %build
  29. CFLAGS="$RPM_OPT_FLAGS" perl Makefile.PL INSTALLDIRS=vendor
  30. make
  31. cp %{SOURCE1} Loose.ja.pm
  32. %clean
  33. rm -rf $RPM_BUILD_ROOT
  34. %install
  35. rm -rf $RPM_BUILD_ROOT
  36. mkdir -p $RPM_BUILD_ROOT%{_prefix}
  37. make DESTDIR=$RPM_BUILD_ROOT install
  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. mkdir -p %{buildroot}%{_mandir}/ja/man3
  48. pod2man --section=3 Loose.ja.pm %{buildroot}%{_mandir}/ja/man3/Email::Valid::Loose.3pm
  49. %check
  50. make test
  51. %files -f %{name}.files
  52. %defattr(-,root,root)
  53. %doc README Changes
  54. %{_mandir}/man3/*
  55. %{_mandir}/ja/man3/*
  56. %dir %{perl_vendorlib}/Email/Valid
  57. %changelog
  58. * Tue Jul 1 2014 IWAI, Masaharu <iwaim.sub@gmail.com> 0.05-4
  59. - build with Perl 5.16
  60. - update BuildRequires and Requires
  61. * Wed Mar 30 2011 IWAI, Masaharu <iwai@alib.jp> 0.05-3vl6
  62. - build with perl 5.12.3
  63. - add Vendor and Distribution tags
  64. * Sun Feb 15 2009 Ryoichi INAGAKI <ryo1@bc.wakwak.com> 0.05-2
  65. - fixed Group tag
  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. * Sat Dec 4 2004 IWAI, Masaharu <iwai@alib.jp> 0.04-0vl2
  73. - build on perl-5.8.6-0vl1
  74. - add manpage translated into Japanese ( Source1 ) from perldoc.jp
  75. * Mon Aug 16 2004 IWAI, Masaharu <iwai@alib.jp> 0.04-0vl1
  76. - new upstream release
  77. * Thu Apr 24 2003 IWAI Masaharu <iwai@alib.jp> 0.02-0vl2
  78. - build with perl-5.8.0
  79. - add %%doc README Changes in %%files section
  80. - add test in %%build section
  81. - add perl-Email-Valid in BuildRequires
  82. * Sun Aug 25 2002 IWAI Masaharu <iwai@alib.jp> 0.02-0vl1
  83. - first build for Vine Linux