perl-MIME-tools-vl.spec 2.4 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283
  1. Summary: modules for parsing (and creating!) MIME entities with Perl
  2. Name: perl-MIME-tools
  3. Version: 5.426
  4. Release: 2%{_dist_release}
  5. License: Perl's
  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. Requires: perl >= 5.004 perl-IO-stringy perl-MailTools
  12. Vendor: Project Vine
  13. Distribution: Vine Linux
  14. BuildArch: noarch
  15. %description
  16. MIME-tools is a collection of Perl5 MIME:: modules for parsing,
  17. decoding, *and generating* single- or multipart (even nested multipart)
  18. MIME messages. (Yes, kids, that means you can send messages with
  19. attached GIF files).
  20. %prep
  21. %setup -q -n MIME-tools-%{version}
  22. %build
  23. CFLAGS="$RPM_OPT_FLAGS" perl Makefile.PL PREFIX=%{buildroot}%{_prefix} INSTALLDIRS=vendor
  24. make %{?_smp_mflags}
  25. make test
  26. %clean
  27. rm -rf $RPM_BUILD_ROOT
  28. %install
  29. rm -rf $RPM_BUILD_ROOT
  30. mkdir -p $RPM_BUILD_ROOT%{_prefix}
  31. make PREFIX=$RPM_BUILD_ROOT%{_prefix} install
  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. %files -f %{name}.files
  42. %defattr(-,root,root)
  43. %doc COPYING ChangeLog MANIFEST README README-OR-DIE README.system examples
  44. %{_mandir}/*/*
  45. %dir %{perl_vendorlib}/MIME
  46. %dir %{perl_vendorlib}/MIME/Parser
  47. %dir %{perl_vendorlib}/MIME/Decoder
  48. %dir %{perl_vendorlib}/MIME/Field
  49. %changelog
  50. * Sat Apr 30 2011 Yoji TOYODA <bsyamato@sea.plala.or.jp> 5.426-2
  51. - build with perl-5.12.3
  52. * Thu May 1 2008 Tomohiro 'Tomo-p' KATO <tomop@teamgedoh.net> 5.426-1
  53. - new upstream release.
  54. - built with perl-5.10.0.
  55. - moved files to %%{perl_vendorlib}.
  56. * Sat Dec 4 2004 IWAI, Masaharu <iwai@alib.jp> 5.415-0vl1
  57. - new upstream release
  58. - build on perl-5.8.6-0vl1
  59. - drop unnecessary patch ( Patch0 )
  60. * Sat Nov 13 2004 IWAI, Masaharu <iwai@alib.jp> 5.411a-0vl4
  61. - SECURITY FIX: add empty boundary patch ( Patch0 )
  62. - http://lists.roaringpenguin.com/pipermail/mimedefang/2004-October/024959.html
  63. * Tue Apr 29 2003 IWAI Masaharu <iwai@alib.jp> 5.411a-0vl3
  64. - build with perl-5.8.0
  65. * Sun Nov 3 2002 IWAI Masaharu <iwai@alib.jp> 5.411a-0vl2
  66. - update Summary and Description
  67. * Sun Nov 3 2002 IWAI Masaharu <iwai@alib.jp> 5.411a-0vl1
  68. - first build for Vine Linux