perl-Email-Valid-vl.spec 2.2 KB

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