perl-MailTools-vl.spec 2.8 KB

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