perl-MailTools-vl.spec 2.5 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192
  1. %define perl_vendorlib %(eval "`perl -V:installvendorlib`"; echo $installvendorlib)
  2. Summary: a set of perl modules related to mail applications
  3. Summary(ja): メールアプリケーション関連の Perl モジュールセット
  4. Name: perl-MailTools
  5. Version: 2.04
  6. Release: 2%{_dist_release}
  7. License: Artistic
  8. Group: Development/Libraries
  9. Source0: http://search.cpan.org/CPAN/authors/id/M/MA/MARKOV/MailTools-%{version}.tar.gz
  10. Url: http://search.cpan.org/author/MARKOV/MailTools/
  11. BuildRoot: %{_tmppath}/%{name}-%{version}-root
  12. BuildRequires: perl >= 5.8.0
  13. BuildRequires: perl-TimeDate
  14. Requires: perl >= 5.8.0
  15. Requires: perl-TimeDate
  16. BuildArch: noarch
  17. %description
  18. This is MailTools, a set of perl modules related to mail applications.
  19. %description -l ja
  20. MailTools は、メールアプリケーション関連の Perl モジュールセットです。
  21. %prep
  22. %setup -q -n MailTools-%{version}
  23. %build
  24. CFLAGS="$RPM_OPT_FLAGS" perl Makefile.PL INSTALLDIRS="vendor"
  25. make
  26. %check
  27. make test
  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. find $RPM_BUILD_ROOT%{_prefix} -type f -print |
  35. sed "s@^$RPM_BUILD_ROOT@@g" |
  36. grep -v ^%{_mandir} |
  37. grep -v perllocal.pod |
  38. grep -v "\.packlist" > %{name}.files
  39. if [ "$(cat %{name}.files)X" = "X" ] ; then
  40. echo "ERROR: EMPTY FILE LIST"
  41. exit -1
  42. fi
  43. %files -f %{name}.files
  44. %defattr(-,root,root)
  45. %doc ChangeLog README README.demos examples
  46. %{_mandir}/man3/*
  47. %dir %{perl_vendorlib}/Mail
  48. %dir %{perl_vendorlib}/Mail/Field
  49. %dir %{perl_vendorlib}/Mail/Mailer
  50. %changelog
  51. * Wed Apr 08 2009 Shu KONNO <owa@bg.wakwak.com> 2.04-2
  52. - spec in utf-8
  53. * Sat Feb 14 2009 Ryoichi INAGAKI <ryo1@bc.wakwak.com> 2.04-1
  54. - new upstream release.
  55. * Thu May 1 2008 Tomohiro 'Tomo-p' KATO <tomop@teamgedoh.net> 2.03-1
  56. - new upstream release.
  57. - built with perl-5.10.0.
  58. * Sat Jul 21 2007 Ryoichi INAGAKI <ryo1@bc.wakwak.com> 1.77-0vl1
  59. - new upstream release
  60. - changed Group to Development/Libraries
  61. * Thu Sep 15 2005 Ryoichi INAGAKI <ryo1@bc.wakwak.com> 1.67-0vl1
  62. - new upstream release
  63. - s/Copyright/License/
  64. - use vendor_perl dir
  65. * Sat Dec 4 2004 IWAI, Masaharu <iwai@alib.jp> 1.65-0vl1
  66. - new upstream release
  67. - build on perl-5.8.6-0vl1
  68. - update {Build,}Requires
  69. - add Japanese Summary and description
  70. * Thu Apr 24 2003 IWAI Masaharu <iwai@alib.jp> 1.58-0vl1
  71. - version up to 1.58
  72. - build with perl-5.8.0
  73. * Sun Aug 25 2002 IWAI Masaharu <iwai@alib.jp> 1.48-0vl1
  74. - first build for Vine Linux