perl-Email-Valid-vl.spec 2.5 KB

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