perl-MIME-tools-vl.spec 2.6 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687
  1. Summary: modules for parsing (and creating!) MIME entities with Perl
  2. Name: perl-MIME-tools
  3. Version: 5.505
  4. Release: 1%{_dist_release}
  5. License: Artistic
  6. Group: Development/Languages
  7. Source0:http://search.cpan.org/CPAN/authors/id/E/ER/ERYQ/MIME-tools-%{version}.tar.gz
  8. Url: http://search.cpan.org/author/ERYQ/MIME-tools/
  9. BuildRoot: %{_tmppath}/%{name}-%{version}-root
  10. BuildRequires: perl >= 5.004 perl-IO-stringy perl-MailTools
  11. #BuildRequires: perl(Test::Deep)
  12. Requires: perl >= 5.004 perl-IO-stringy perl-MailTools
  13. Vendor: Project Vine
  14. Distribution: Vine Linux
  15. BuildArch: noarch
  16. %description
  17. MIME-tools is a collection of Perl5 MIME:: modules for parsing,
  18. decoding, *and generating* single- or multipart (even nested multipart)
  19. MIME messages. (Yes, kids, that means you can send messages with
  20. attached GIF files).
  21. %prep
  22. %setup -q -n MIME-tools-%{version}
  23. %build
  24. CFLAGS="$RPM_OPT_FLAGS" perl Makefile.PL PREFIX=%{buildroot}%{_prefix} INSTALLDIRS=vendor
  25. make %{?_smp_mflags}
  26. make test
  27. %clean
  28. rm -rf $RPM_BUILD_ROOT
  29. %install
  30. rm -rf $RPM_BUILD_ROOT
  31. mkdir -p $RPM_BUILD_ROOT%{_prefix}
  32. make PREFIX=$RPM_BUILD_ROOT%{_prefix} install
  33. find $RPM_BUILD_ROOT%{_prefix} -type f -print |
  34. sed "s@^$RPM_BUILD_ROOT@@g" |
  35. grep -v ^%{_mandir} |
  36. grep -v perllocal.pod |
  37. grep -v "\.packlist" > %{name}.files
  38. if [ "$(cat %{name}.files)X" = "X" ] ; then
  39. echo "ERROR: EMPTY FILE LIST"
  40. exit -1
  41. fi
  42. %files -f %{name}.files
  43. %defattr(-,root,root)
  44. %doc COPYING ChangeLog MANIFEST README README.system examples
  45. %{_mandir}/*/*
  46. %dir %{perl_vendorlib}/MIME
  47. %dir %{perl_vendorlib}/MIME/Parser
  48. %dir %{perl_vendorlib}/MIME/Decoder
  49. %dir %{perl_vendorlib}/MIME/Field
  50. %changelog
  51. * Tue Jul 1 2014 Tomohiro "Tomo-p" KATO <tomop@teamgedoh.net> 5.505-1
  52. - new upstream release.
  53. * Sat Apr 30 2011 Yoji TOYODA <bsyamato@sea.plala.or.jp> 5.426-2
  54. - build with perl-5.12.3
  55. * Thu May 1 2008 Tomohiro 'Tomo-p' KATO <tomop@teamgedoh.net> 5.426-1
  56. - new upstream release.
  57. - built with perl-5.10.0.
  58. - moved files to %%{perl_vendorlib}.
  59. * Sat Dec 4 2004 IWAI, Masaharu <iwai@alib.jp> 5.415-0vl1
  60. - new upstream release
  61. - build on perl-5.8.6-0vl1
  62. - drop unnecessary patch ( Patch0 )
  63. * Sat Nov 13 2004 IWAI, Masaharu <iwai@alib.jp> 5.411a-0vl4
  64. - SECURITY FIX: add empty boundary patch ( Patch0 )
  65. - http://lists.roaringpenguin.com/pipermail/mimedefang/2004-October/024959.html
  66. * Tue Apr 29 2003 IWAI Masaharu <iwai@alib.jp> 5.411a-0vl3
  67. - build with perl-5.8.0
  68. * Sun Nov 3 2002 IWAI Masaharu <iwai@alib.jp> 5.411a-0vl2
  69. - update Summary and Description
  70. * Sun Nov 3 2002 IWAI Masaharu <iwai@alib.jp> 5.411a-0vl1
  71. - first build for Vine Linux