perl-MIME-tools-vl.spec 2.4 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980
  1. Summary: modules for parsing (and creating!) MIME entities with Perl
  2. Name: perl-MIME-tools
  3. Version: 5.426
  4. Release: 1%{_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. * Thu May 1 2008 Tomohiro 'Tomo-p' KATO <tomop@teamgedoh.net> 5.426-1
  51. - new upstream release.
  52. - built with perl-5.10.0.
  53. - moved files to %%{perl_vendorlib}.
  54. * Sat Dec 4 2004 IWAI, Masaharu <iwai@alib.jp> 5.415-0vl1
  55. - new upstream release
  56. - build on perl-5.8.6-0vl1
  57. - drop unnecessary patch ( Patch0 )
  58. * Sat Nov 13 2004 IWAI, Masaharu <iwai@alib.jp> 5.411a-0vl4
  59. - SECURITY FIX: add empty boundary patch ( Patch0 )
  60. - http://lists.roaringpenguin.com/pipermail/mimedefang/2004-October/024959.html
  61. * Tue Apr 29 2003 IWAI Masaharu <iwai@alib.jp> 5.411a-0vl3
  62. - build with perl-5.8.0
  63. * Sun Nov 3 2002 IWAI Masaharu <iwai@alib.jp> 5.411a-0vl2
  64. - update Summary and Description
  65. * Sun Nov 3 2002 IWAI Masaharu <iwai@alib.jp> 5.411a-0vl1
  66. - first build for Vine Linux